CRYPTTAB(5)

NAME
crypttab - static information about LUKS volumes

SYNOPSIS
/etc/crypttab

DESCRIPTION
The file crypttab contains the information needed to open any volumes created by cryptsetup. Although many distributions have a crypttab with similar syntax and options, the format described here is specific to Slackware. Each volume to be opened is described on a separate line. Fields on each line are separated by tabs or spaces. Lines starting with '#' are comments. Blank lines are ignored. crypttab follows the following format:
<luks_name> <device> <password> <options>

  The first field (luks_name)
This is the name of your LUKS volume. For example: crypt-home

  The second field (device)
This is the device containing your LUKS volume. For example: /dev/sda2

  The third field (password)
This is either the volume password in plain text, or the name of a key file. Use none to interactively enter password on boot.

  The fourth field (options)
Comma-separated list of options. Note that there must be a password field for any options to be picked up (use a password of none to get a password prompt at boot). The following options are supported:

discard
    This will cause --allow-discards to be passed to cryptsetup program while opening the LUKS volume.

ro
    This will cause --readonly to be passed to the cryptsetup program while opening the LUKS volume.

swap
    This option cannot be used with other options. The device given will be formatted as a new encrypted volume with a random key on boot, and used as swap.

keyscript=<path/to/script>
    Get the password from named script's stdout. The only parameter sent to script is the <password> field, but the script can ignore it.

FILES

/etc/crypttab

NOTES

Only LUKS formatted volumes are supported (except for swap).

AUTHOR
Piter Punk <piterpunk@slackware.com>

SEE ALSO
cryptsetup(8)