You are not logged in.

#1 2009-11-28 06:09:43

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Luks encrypted /ROOT not Booting

Hi,

I set up a partition /dev/sdb2 for my /ROOT partition with dm-crypt/LUKS. I followed the Arch-wiki for Luks.
This is an "After Install" setup. I just made a  tar -pczvf  of my /root partition. Then  tar pxvf root.tar.gz -C /mnt/sdb2


I have this in my /etc/mkinitcpio.conf

HOOKS="base udev autodetect pata scsi sata usb encrypt filesystems"

Do I need to add these to mkinitcpio.conf too? I found them on some other HowTo... didn't try though

MODULES="dm-crypt"

CRYPTO_MODULES="aes_x86_64"

My /boot/grub/menu.lst Kernel line looks like this

kernel /vmlinuz26 cryptdevice:/dev/sdb2:root root=/dev/mapper/root ro

When I try to boot it stops at

cryptdevice:/dev/sdb2:root : Is not a valid variable

--------------------------

What could I be doing wrong? Am I missing or missspelling something ?

Owe, I alredy had some encrypted partitions so I already had the "encrypt" Hook in my mkinitcpio.conf. I am farly sure I have installed a new kernel and there for had a new Kernel Boot IMG genorated with the modified  /etc/mkinitcpio.conf.

Would the problem I am haveing be a sign that I need to build a new kernel26.img  ?

Last edited by hunterthomson (2009-11-28 08:13:02)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#2 2009-11-28 11:49:32

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Luks encrypted /ROOT not Booting

You should have a '=' after 'cryptdevice', not ':'.

EDIT: as a side comment, if you don't have encrypted root, you don't need to have the 'encrypt' hook in mkinitcpio.conf.

Last edited by bender02 (2009-11-28 11:50:32)

Offline

#3 2009-11-29 03:27:47

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Luks encrypted /ROOT not Booting

bender02 wrote:

You should have a '=' after 'cryptdevice', not ':'.

EDIT: as a side comment, if you don't have encrypted root, you don't need to have the 'encrypt' hook in mkinitcpio.conf.

Owe, hum ya I really did have cryptdevice:  instead of cryptdevice=   
I knew it must have been something small I was overlooking. I must be blind.

Thanks wink

Last edited by hunterthomson (2009-11-29 08:17:45)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

Board footer

Powered by FluxBB