So I have 5 partitions. /boot, /, /usr, /swap, and /home. I've encrypted the latter 4 with luks encryption using cryptsetup. I've changed /etc/fstab to use the device /dev/mapper/
device (where device is root, usr, swap, home) and then setup my /etc/cryptttab to open them.At boot it immediately asks the password for root. I put it in and then it continues to load up and then it fails when trying to mount /usr and /home complaining that the device /dev/mapper/
device (where device is usr, swap, home) isn't found. I then try to open the partition with the command
Code:
cryptsetup /dev/sda6 usr
and it complains about the shared cryptsetup library not being found. This makes sense because it's under /usr/lib, which apparently hasn't been mounted. However, why is the root partition opening up but not the rest? How is it working if the library isn't mounted? I did add dm-crypt to my list in /etc/modules so that is loaded. I confirmed this with lsmod. Why would root open but not usr, swap, and home? They're all in /etc/crypttab
/etc/crypttab
Code:
# <target name> <source device> <key file> <options>
root /dev/sda5 none luks
usr /dev/sda6 none luks
swap /dev/sda7 none luks
home /dev/sda8 none luks
/etc/fstab
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda3
/dev/sda3 /boot ext3 defaults 0 2
# /dev/sda5
/dev/mapper/root / ext3 defaults,errors=remount-ro 0 1
# /dev/sda8
/dev/mapper/home /home ext3 defaults,errors=remount-ro 0 1
# /dev/sda6
/dev/mapper/usr /usr ext3 defaults,errors=remount-ro 0 1
# /dev/sda7
/dev/mapper/swap none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0