/etc/fstab
/dev/mapper/<name>
in the /etc/fstab
file.
/etc/fstab
by UUID or by a filesystem label. The main purpose of this is to provide a constant identifier in the event that the device name (eg: /dev/sda4
) changes. LUKS device names in the form of /dev/mapper/luks-<luks_uuid>
are based only on the device's LUKS UUID, and are therefore guaranteed to remain constant. This fact makes them suitable for use in /etc/fstab
.
/etc/fstab
file, read the fstab(5)
man page.