Research Blog

words and images by RTWM

udev auto mount LUKS encrypted partition by UUID

Sunday, July 1st, 2012 Here is the overview When a device is detected, check to see if it is a hard drive (eg: sda, sdb, sdc, and so on). If it is not, we are done, and go to the end of this rule file. If it is a hard drive, check it using the blkid program to see if there is a partition type of “crypto_LUKS” present.

udev auto mount disk by partition UUID

created by RTWM If you have several disks that you will use in a regular rotation for offsite backup you can use udev rules to automatically mount these known disks into your Linux server that handles the backup jobs. still needs work… but will successfully mount partition based on UUID small excerpt taken from /etc/udev/rules.d/50-udev.rules this add line seems to break things, maybe it’s the position it’s in? ACTION==“add”, GOTO=“offsite_plugin”