Created
November 7, 2012 15:13
-
-
Save codebrane/4032174 to your computer and use it in GitHub Desktop.
Mounting TrueCrypt volumes from the commandline on OS X
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
clear | |
prompt="Password: " | |
while IFS= read -p "$prompt" -r -s -n 1 char | |
do | |
if [[ $char == $'\0' ]] | |
then | |
break | |
fi | |
prompt='*' | |
PASSWORD+="$char" | |
done | |
printf "\n" | |
printf "mounting /Volumes/APPSDEV\n" | |
/Applications/TrueCrypt.app/Contents/MacOS/TrueCrypt -t --mount /Users/alistair/dev/_volumes/appsdev /Volumes/APPSDEV -k "" --protect-hidden=no -p="$PASSWORD" | |
printf "mounting /Volumes/CONFIGLOCAL\n" | |
/Applications/TrueCrypt.app/Contents/MacOS/TrueCrypt -t --mount /Users/alistair/dev/_volumes/configlocal /Volumes/CONFIGLOCAL -k "" --protect-hidden=no -p="$PASSWORD" | |
printf "mounting /Volumes/SCRIPTS\n" | |
/Applications/TrueCrypt.app/Contents/MacOS/TrueCrypt -t --mount /Users/alistair/dev/_volumes/scripts /Volumes/SCRIPTS -k "" --protect-hidden=no -p="$PASSWORD" | |
printf "mounting /Volumes/SSHKEYS\n" | |
/Applications/TrueCrypt.app/Contents/MacOS/TrueCrypt -t --mount /Users/alistair/dev/_volumes/sshkeys /Volumes/SSHKEYS -k "" --protect-hidden=no -p="$PASSWORD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment