Encrypted /home not mounted on boot
Posted: Thu Jun 07, 2012 3:01 pm
Hello:
I have a Toshiba Sattelite L305D Laptop with a 500 GB SATA disk, running LinuxMint13 -Maya x86_64.
Before installing Maya, I had Fedora 14 with wich I created an encrypted /home scheme.
## Some data about the encrypted partition
Using the liveDVD during testing I tried to mount the encrypted partition, wich worked fine. After installation I followed my usual rutine for mounting the home partition during boot, that is insert the correct lines in /etc/crypttab and /etc/fstab.But i never got asked for the passphrase on boot. I get a message that /home could not be mounted and press S or M
I tried to configure the system to do the same with Maya, but it doesn create the /dev/mapper/home. In the /etc/cryptab and /etc/fstab I've tried using the UUID for the disks and doesn't work either
I can mount manually once booted the OS
Using various how-tos that I found i already tried to load the correct modules in the initrd, and also added special options to the kernel, but none of those work. This is mostly what I'm based
Kernel options and initrd conf:
https://help.ubuntu.com/community/Encry ... n.22_amd64
replacing:
in the example, also tried grub tweak but nothing works.
This example uses LVM, but I'm not using LVM just plain old ext4 partition.
I'm currently booting my system, login as root, luksOpen and mount the partition, then login as user.. The OS itself is working perfectly so far, I just can get it to luksOpen on boot
I have a Toshiba Sattelite L305D Laptop with a 500 GB SATA disk, running LinuxMint13 -Maya x86_64.
Before installing Maya, I had Fedora 14 with wich I created an encrypted /home scheme.
Code: Select all
/dev/sda1 -> /
/dev/sda2 -> swap
/dev/sda3 -> /home
Code: Select all
rodolfo@laptop-toshiba ~ $ sudo cryptsetup status /dev/mapper/home
/dev/mapper/home is active and is in use.
type: LUKS1
cipher: aes-xts-plain64
keysize: 512 bits
device: /dev/sda3
offset: 4096 sectors
size: 913229824 sectors
mode: read/write
Code: Select all
#/etc/cryptab
home /dev/sda3 none luks
#/etc/fstab
/dev/mapper/home /home ext4 defaults 1 2
I can mount manually once booted the OS
Using various how-tos that I found i already tried to load the correct modules in the initrd, and also added special options to the kernel, but none of those work. This is mostly what I'm based
Kernel options and initrd conf:
https://help.ubuntu.com/community/Encry ... n.22_amd64
replacing:
Code: Select all
CRYPTROOT=target=home,source=/dev/sda3
This example uses LVM, but I'm not using LVM just plain old ext4 partition.
I'm currently booting my system, login as root, luksOpen and mount the partition, then login as user.. The OS itself is working perfectly so far, I just can get it to luksOpen on boot