/etc/crypttab
/etc/crypttab
file. If the file doesn't exist, create it and change the owner and group to root (root:root
) and change the mode to 0744
. Add a line to the file with the following format:
<name> <device> none
cryptsetup luksUUID <device>
. This ensures the correct device will be identified and used even if the device node (eg: /dev/sda5
) changes.
Tip
/etc/crypttab
file, read the crypttab(5)
man page.