Skip to content

Instantly share code, notes, and snippets.

@mdenzel
Last active May 11, 2024 20:39
Show Gist options
  • Save mdenzel/00aa49c0867e7f790f68809412ebcbce to your computer and use it in GitHub Desktop.
Save mdenzel/00aa49c0867e7f790f68809412ebcbce to your computer and use it in GitHub Desktop.
Linux: mount a Veracrypt volume
#!/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