[dm-crypt] Cryptsetup FAQ montly pointer 8/13

Dragan Milivojević d.milivojevic at gmail.com
Sat Aug 3 16:10:29 CEST 2013

> Another option for reliably identifying the swap partition is to use
> /dev/disk/by-id/<identifier> to identify the drive by model and serial
> number.  For example, my own swap partition is
>     /dev/disk/by-id/scsi-SATA_ST95005620AS_5YX1NEGE-part5
> That should be safe unless I re-purpose that drive and forget to update
> /etc/crypttab.

I would suggest using UUID. It works in all cases (partition, raid,
lvm member etc).
My crypttab (encrypted swap/home):

UUID=4dc17e23-e895-4e4b-8061-114fb33c310b none
UUID=46969c48-ab1f-4bd7-bc2a-ae7c1bc86b26 none

This was generated by fedora install.

More information about the dm-crypt mailing list