You are not logged in.

#1 2010-11-13 21:09:01

sie
Member
From: Latvia
Registered: 2010-06-30
Posts: 33

"Encrypted root + LVM" not working.

Hello.

I wanted a encrypted root with LVM(, but I've never had any of those). I had already installed arch, but that didn't make no trouble, since I had 300 GB HDD, with only little amount taken. So I made a partition, cryptsetup'ed it. luksOpen'ed it and made a volumeg. in it and some logical volumes. Kernel, seems, told something along the lines of "no" and "cannot open your LVM-ish root".

I put this in my menu.lst:

title  Cornflakes.
#root   (hd0,2)
kernel /boot/vmlinuz26zen root=/dev/mapper/volumegroup-root cryptdevice=/dev/sda3:volumegroup ro i915.modeset=1 quiet
initrd /boot/kernel26zen.img

Kernel told: http://sprunge.us/hjZf (I wrote it down, using mount and cat. ^^)

I've got these hooks in mkinitcpio.conf: HOOKS="base udev autodetect scsi sata lvm2 encrypt filesystems"

Last edited by sie (2010-11-13 23:33:25)


a &

Offline

#2 2010-11-13 21:16:23

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: "Encrypted root + LVM" not working.

you have a /boot partition, right?

Offline

#3 2010-11-13 21:25:46

sie
Member
From: Latvia
Registered: 2010-06-30
Posts: 33

Re: "Encrypted root + LVM" not working.

Yup. Seperate one, which lives in /dev/sda1


a &

Offline

#4 2010-11-14 07:43:41

dunz0r
Member
From: Sweden
Registered: 2009-03-30
Posts: 258
Website

Re: "Encrypted root + LVM" not working.

Try rebuilding your initrd without the autodetect hook. Sometimes it doesn't work as it should.


RTFM or GTFO
hax0r.se

Offline

#5 2010-11-14 11:03:06

sie
Member
From: Latvia
Registered: 2010-06-30
Posts: 33

Re: "Encrypted root + LVM" not working.

Did that, nothing changed.

Last edited by sie (2010-11-14 11:05:48)


a &

Offline

#6 2010-11-14 12:14:42

sie
Member
From: Latvia
Registered: 2010-06-30
Posts: 33

Re: "Encrypted root + LVM" not working.

Okay, yesterday I was amused, about `vgscan` non-existance in ramfs, but I checked my other linux and it was just a symlink to `lvm`. So I made one as well on the ramfs, did `vgscan -ay` and my volumegroup-root appeared and I booted fine.

Question — why didn't the kernel/hooks vgscan? hmm

UPDATE: I doubt I needed to make a symlink. hmm

Last edited by sie (2010-11-14 12:18:44)


a &

Offline

#7 2010-11-14 14:02:06

dunz0r
Member
From: Sweden
Registered: 2009-03-30
Posts: 258
Website

Re: "Encrypted root + LVM" not working.

It "should" exist in the initrd... I run encrypted root + encrypted LVMs too.

Edit: I don't have my root on LVM though.

Last edited by dunz0r (2010-11-14 14:02:35)


RTFM or GTFO
hax0r.se

Offline

Board footer

Powered by FluxBB