This project has moved and is read-only. For the latest updates, please go here.

Cannot mount via command line, enter mount dir

Topics: Technical Issues
Apr 13, 2017 at 1:21 PM
Hey Guys,
I have an odd issue with mounting my archive file with this command:

veracrypt -t --protect-hidden=no --pim=15000 -p"supersecret" -k"" /root/cryptfile.hc /mnt/veracrypt

I still get the interactive request: Enter mount directory [default]:
And if I press enter here: Error: Is a directory: /mnt/veracrypt/

Any ideas on how to get this working from within a script?
Apr 26, 2017 at 9:26 AM
No idea here?
Apr 29, 2017 at 10:22 AM
Edited Apr 29, 2017 at 10:42 AM
I'm using Veracrypt 1.19 on Linux Mint 18.1.

Four things:

a. Did you use to use Truecrypt? Veracrypt is much fussier (and rightly so - more secure against inadvertant typos) over correct syntax; it will fail if you don't get it absolutely right. So, always leave spaces between short switches and arguments eg -p "supersecret", -k "". I got your command to work if I observed this rule (using /media/veracrypt, which appears to be the default in my setup, not /mnt/veracrypt).

b. Why use -k ""; if you are not using keyfiles, omit the -k switch altogether.

c. Does your cryptfile have a hidden volume? If not, omit --protect-hidden switch altogether.

d. Use the --non-interactive switch to stop being asked for the mount directory.