Automatically-mounting-veracrypt-volume-at-boot: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

27 May 2025

  • curprev 23:2823:28, 27 May 2025Admin talk contribs 575 bytes +575 Created page with " This script automatically opens a truecrypt volume using veracrypt. Requires the 'veracrypt' binary to be installed. <pre> #!/bin/bash # mount a truecrypt volume VC=/usr/bin/veracrypt CONTAINER=/mnt/usb/truecrypt-volume.tc MOUNTPOINT=/mnt/data VC_PASS=<yourpassword> DMASK=0022 FMASK=0133 # veracrypt syntax: if echo "$VC_PASS" | $VC -tc -t -k "" --protect-hidden=no "$CONTAINER" "$MOUNTPOINT" --fs-options="users,gid=100000,dmask=$DMASK,fmask=$FMASK" then echo "$CO..."