[HOWTO] Automount a LUKS partition

Switch up to root

su -
Password: xxxxx

Get partition UUID from gparted or the device tree. Select the drive and highlight the partition, right click, select Information, ex: ebd47bb4-8912-4688-a8e8-f895ac27fdd6

 gparted &

or

ls -l /dev/disk/by-uuid

Add the UUID to the crypt table with the prefix luks- and UUID-

vi /etc/crypttab

luks-sdaX UUID=ebd47bb4-8912-4688-a8e8-f895ac27fdd6 none

Add an entry to the filesystem table

vi /etc/fstab

/dev/mapper/luks-sdaX /var/foomatic ext4 defaults,x-systemd.device-timeout=0 1 2

Finally

sync
sync
sync
reboot

David Gregory Medina

Post created by: David Gregory Medina

Tagged with: , , ,

Leave a Reply