cryptsetup -?
cryptsetup 1.0.5
Usage: cryptsetup [OPTION...] <action> <action-specific>]
-v, --verbose Shows more detailed error messages
-c, --cipher=STRING The cipher used to encrypt the disk (see
/proc/crypto) (default: null)
-h, --hash=STRING The hash used to create the encryption key from
the passphrase (default: "ripemd160")
-y, --verify-passphrase Verifies the passphrase by asking for it twice
-d, --key-file=STRING Read the key from a file (can be /dev/random)
-s, --key-size=BITS The size of the encryption key (default: 0)
-b, --size=SECTORS The size of the device
-o, --offset=SECTORS The start offset in the backend device
-p, --skip=SECTORS How many sectors of the encrypted data to skip
at the beginning
-r, --readonly Create a readonly mapping
-i, --iter-time=msecs PBKDF2 iteration time for LUKS (in ms)
-q, --batch-mode Do not ask for confirmation
--version Print package version
-t, --timeout=secs Timeout for interactive passphrase prompt (in
seconds)
-T, --tries=INT How often the input of the passphrase can be
retried
--align-payload=SECTORS Align payload at <n> sector boundaries - for
luksFormat
Help options:
-?, --help Show this help message
--usage Display brief usage
<action> is one of:
create <name> <device> - create device
remove <name> - remove device
reload <name> - modify active device
resize <name> - resize active device
status <name> - show device status
luksFormat <device> [<new key file>] - formats a LUKS device
luksOpen <device> <name> - open LUKS device as mapping <name>
luksDelKey <device> <key slot> - wipes key with number <key slot> from LUKS device
luksAddKey <device> [<new key file>] - add key to LUKS device
luksUUID <device> - print UUID of LUKS device
isLuks <device> - tests <device> for LUKS partition header
luksClose <name> - remove LUKS mapping
luksDump <device> - dump LUKS partition information
<name> is the device to create under /dev/mapper
<device> is the encrypted device
<key slot> is the LUKS key slot number to modify
<key file> optional key file for the new key for luksAddKey action