Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LUKS header error with root encryption
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ak24g
n00b
n00b


Joined: 27 May 2014
Posts: 1

PostPosted: Tue May 27, 2014 7:05 am    Post subject: LUKS header error with root encryption Reply with quote

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.
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Tue May 27, 2014 12:53 pm    Post subject: Reply with quote

Check THIS thread.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum