Operation Manual
83
Command Line Usage
Note that this section applies to the Windows version of VeraCrypt. For information on command
line usage applying to the Linux and Mac OS X versions, please run: veracrypt –h
/help or /? Display command line help.
/truecrypt or /tc Activate TrueCrypt compatibility mode which enables mounting volumes
created with TrueCrypt 6.x and 7.x.
/hash It must be followed by a parameter indicating the PRF hash algorithm to use
when mounting the volume. Possible values for /hash parameter are:
sha256, sha-256, sha512, sha-512, whirlpool, ripemd160 and ripemd-160.
When /hash is omitted, VeraCrypt will try all possible PRF algorithms thus
lengthening the mount operation time.
/volume or /v It must be followed by a parameter indicating the file and path name of a
VeraCrypt volume to mount (do not use when
dismounting). To mount a
partition/device-hosted volume, use, for example,
/v \Device\Harddisk1\Partition3 (to determine the path to a
partition/device, run VeraCrypt and click Select Device). You can also
mount a partition or dynamic volume using its volume name (for example,
/v \\?\Volume{5cceb196-48bf-46ab-ad00-70965512253a}\). To
determine the volume name use e.g. mountvol.exe. Also note that device
paths are case-sensitive.
/letter or /l
It must be followed by a parameter indicating the driver letter to mount
the volume as. When /l is omitted and when /a is
used, the first free
drive letter is used.
/explore or /e Open an Explorer window after a volume has been mounted.
/beep or /b Beep after a volume has been successfully mounted or dismounted.
/auto or /a
If no parameter is specified, automatically mount the volume. If devices is
specified as the parameter (e.g., /a devices), auto-mount all currently
accessible device/partition-hosted VeraCrypt volumes. If favorites is
specified as the parameter, auto-mount favorite volumes. Note that /auto
is implicit if /quit and /volume are specified. If you need to prevent the
application window from appearing, use /quit.
/dismount or /d
Dismount volume specified by drive letter (e.g., /d x). When no drive letter
is specified, dismounts all currently mounted VeraCrypt volumes.
/force or /f Forces dismount (if the volume to be dismounted contains files being used
by the system or an application) and forces mounting in shared mode (i.e.,
without exclusive access).
/keyfile or /k It must be followed by a parameter specifying a keyfile or a keyfile
search path. For multiple keyfiles, specify
e.g.: /k
c:\keyfile1.dat /k d:\KeyfileFolder /k c:\kf2
To
specify a keyfile stored on a security token or smart card, use the
following syntax: token://slot/SLOT_NUMBER/file/FILE_NAME