/etc/crypttab not working
- by Jeremy Stein
I used the Disk Utility to create an encrypted volume on an external drive. When I click the Unlock Volume button in that program, it mounts the drive for me.
Now, I want to automate this process so that it will happen at boot-up.
When I run sudo cryptsetup luksUUID /dev/sdb1, I get this:
ca709269-1e3e-4e9e-9e08-7248f0e6c5a6
So, I create /etc/crypttab like this:
backup_drive UUID=ca709269-1e3e-4e9e-9e08-7248f0e6c5a6 none
And I added this line to /etc/fstab:
/dev/mapper/backup_drive /mnt/backup ext3 default 0 2
When I reboot, Ubuntu tells me that the device is not available to map, so I tell it to skip it. It appears that the /etc/crypttab is not getting run correctly.
How can I debug this?