You are not logged in.

#1 2008-02-21 12:01:18

loswillios
Member
Registered: 2007-09-07
Posts: 4

can't get lvm/luks to boot -> cannot find root partition

Hi,

I'm trying to get a dm-crypt on top of lvm to boot but without success so far. I followed http://wiki.archlinux.org/index.php/Sys … r_dm-crypt and http://wiki.archlinux.org/index.php/Ins … AID_or_LVM, everything works fine (I can mount the partition) but when I try to boot from it, it cannot find the crypted partition and fails.

USELVM="yes"
HOOKS="base udev usb usbinput lvm2 encrypt filesystems"
root=/dev/mapper/sda2 cryptdevice=/dev/sda2:root2-lvol0 ro

jan@jan ~/src/xf86-video-ati $ ll /dev/mapper/
insgesamt 0
crw-rw---- 1 root root  10, 62 21. Feb 2008  control
brw------- 1 root disk 254,  0 21. Feb 2008  root
brw------- 1 root disk 254,  1 21. Feb 2008  root2-lvol0
brw------- 1 root disk 254,  2 21. Feb 2008  sda2

/dev/mapper/root is my current encrypted / without lvm

The boot process successfully identifies the lvm /dev/mapper/root2-lvol0 and continues with hook 'encrypt' but doesn't ask me for a passphrase but goes on to hook 'filesystems' and fails then because it can't mount the correct root-partition obviously.

There's only /dev/mapper/root2-lvol0 and /dev/mapper/control when I'm in the rescue sh from initrd.

Anyone got that combination to work?


- Jan

Offline

Board footer

Powered by FluxBB