ak24g n00b
Joined: 27 May 2014 Posts: 1
|
Posted: Tue May 27, 2014 7:05 am Post subject: LUKS header error with root encryption |
|
|
Dear all,
I am trying to set up a new gentoo system with swap and root encryption. However, after completing the installation by using the gentoo handbook and rebooting I get the following error message:
"Device /dev/sda3 doesn't exists or access denied. The LUKS device /dev/sda3 does not contain a luks header. Could not find the root in /dev/sda3."
My partition table is as follows:
/dev/sda1 /boot
/dev/sda2 swap
/dev/sda3 /
Encryption of swap and root partition (keyword/passphrase):
cryptsetup -c aes-cbc-essiv:sha256 -d /dev/urandom create swap /dev/sda2
cryptsetup luksOpen /dev/sda3 root
I used genkernel to build the kernel and an initramfs. The kernel was configured with ramdisk and luks support. Further, I included all SHA digest algorithms, serpent, blowfish, AES cipher algorithms and enabled device mapper and crypt target support. Also, I emerged cryptsetup and lvm.
My fstab looks as follows:
/dev/sda1 /boot ext2 defaults,noatime 1,2
/dev/mapper/swap none swap sw 0,0
/dev/mapper/root / ext3 noatime 0,1
I emerged grub legacy and configured CRUB as follows:
title Grub Linux 3.12.20
root(hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.12.20-gentoo root=/dev/ram0 init=/linuxrc crypt_root=/dev/sda3
initramfs /boot/initramfs-genkernel-x86_64-3.12.20-gentoo
Exiting the system after installation with:
cryptsetup luksClose root
I have repeated the installation by now 5-times and I always receive the same error. Whenever rebooting from the LiveCD and I have no problems in mounting my filesystems and accessing the root partition by entering the passphrase. Presumably it is a really stupid mistake, but I can't see it.
Thank you in advance for any assistance. I can provide more information is necessary. |
|