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

auto mounting in command line does not work

Topics: Technical Issues
Mar 24 at 7:19 PM

Sorry for my english, it's google traduction.

In windows 10 64bits, when I launch

"veracrypt" /l s /v \Device\Harddisk1\Partition1 /k c:\keyfile1.dat /k c:\keyfile2.dat /a /q

with veracrypt, I must absolutely press Ok. Auto mounting in command line does not work.

If it's a password and no keyfiles, it works.

What is the problem ?

Mar 24 at 8:18 PM
Which version of Veracrypt are you using?
One obvious problem with your command line (in V1.19) is the use of both the /l switch and the /a switch; they're inconsistent. You either mount to a specified drive letter eg /l s, or automount (/a) to the next available drive letter. Try either /l s , or /a and see if that solves your issue.
Also, if you do not specify a drive letter eg with /l s, /a is redundant (because implicit) if /v and /q are specified.
Mar 24 at 8:23 PM
Edited Mar 24 at 8:23 PM
Also, if you are using keyfiles without a password, you need to add the /tryemptypass switch.
Marked as answer by Delerium666 on 3/25/2017 at 2:18 PM
Mar 25 at 10:24 PM
A huge thank you AdrianKIT !

with Truecrypt 7.0a

"truecrypt" /ls /v \Device\Harddisk1\Partition1 /k c:\keyfile1.dat /k c:\keyfile2.dat /a /q

with Veracrypt 1.19

"truecrypt" /l s /v \Device\Harddisk1\Partition1 /k c:\keyfile1.dat /k c:\keyfile2.dat /tryemptypass /a /q