Last active
May 11, 2024 20:39
-
-
Save mdenzel/00aa49c0867e7f790f68809412ebcbce to your computer and use it in GitHub Desktop.
Linux: mount a Veracrypt volume
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### CONFIG ### | |
MOUNT=/media/tmp | |
VERA=${VERA:-/dev/sdb1} #default value /dev/sdb1 | |
############## | |
if [ "$1" == "-u" ]; then | |
sudo veracrypt -t -d $VERA | |
else | |
sudo veracrypt -t -k "" --pim=0 --protect-hidden=no $VERA $MOUNT | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment