Command Line Interface

Synposis

FreeOTFE.exe /mount /volume <volume> [/freeotfe|/linux] [/readonly]
FreeOTFE.exe /dismount {<drive letter>[:] | all} [/force]
FreeOTFE.exe /portable {start | on | 1 | stop | off | 0}

Description

FreeOTFE supports a number of command line options that allow a number of it's main functions to be carried out from the command line or via MS Windows shortcuts.

Options

Note that "-" may be substituted in place of "/", if required.

/dismount {<drive letter>[:] | all}
Dismount indicated drive/all drives
/force
When dismounting, force dismount (emergency dismount)
/freeotfe
The specified volume as a FreeOTFE volume. If a volume type (FreeOTFE/Linux) isn't specified, the user will be prompted for this information.
/linux
The specified volume as a Linux volume. If a volume type (FreeOTFE/Linux) isn't specified, the user will be prompted for this information.
/mount
Mount indicated file/partition
/portable {start | on | 1 | stop | off | 0}
Turn on/off portable mode
/readonly
Mount the volume readonly
/volume <volume>
The volume filename/partition to be used. When using a volume file, this should be set to the full path and filename of a volume file. Partitions should be specified in the form: "\Device\HarddiskX\PartitionY", where X is 0 based, while Y starts from 1 to indicate a particular partition, or 0 to indicate the entire disk.
Important: If the volume filename has any spaces in it, then it should be enclosed in double quotes (").

Exit Codes

When run at the command line, FreeOTFE will terminate with one of the following exit codes:

Exit code
Meaning
0 Success
100
Invalid/unrecognised command line
101
Unable to connect to FreeOTFE driver; check driver is installed or portable mode is started
102
Unable to start portable mode
103
Unable to stop portable mode
104
Unable to mount volume
105
Unable to dismount volume

Examples

Mounting a FreeOTFE volume:
FreeOTFE.exe /mount /volume "C:\My Private Data\my encrypted volume.dat" /freeotfe

Mounting a Linux volume readonly:
FreeOTFE.exe /mount /volume "C:\My Private Data\my encrypted volume.dat" /linux /readonly

Mounting a FreeOTFE partition::
FreeOTFE.exe /mount /volume '\Device\Harddisk0\Partition1 /freeotfe /readonly

Dismount drive "S:":
FreeOTFE.exe /dismount S:

Dismount all volumes, emergency:
FreeOTFE.exe /dismount all /force

Start and stop portable mode:
FreeOTFE.exe /portable start
FreeOTFE.exe /portable stop