You are not logged in.

#1 2010-11-30 17:20:57

namelessone
Member
Registered: 2009-12-17
Posts: 39

Root device doesn't exist--can't boot with lvm [SOLVED]

I'm setting up a new box and playing with lvm. I put the lvm2 hook in mkinitcpio.conf, but when I try to boot I get:

:: Running Hook [lvm2]
Waiting 10 seconds for device /dev/mapper/ekans-root ...
Root device '/dev/mapper/ekans-root' doesn't exist. Attempting to create it.
ERROR: Unable to determine major/minor number of root device '/dev/mapper/ekans-root'.

looking in /dev from the recovery shell I don't see my lvm group. The partitions are accessible, though, if I boot a liveCD and type "vgchange -ay ekans" and then mount them.

Are there other hooks I need in order to get the new booting kernel to see my partitions?

Last edited by namelessone (2010-12-01 02:26:16)

Offline

#2 2010-11-30 19:38:12

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Root device doesn't exist--can't boot with lvm [SOLVED]

The HOOKS array is order sensitive. Can you post your conf file for mkinitcpio?

Offline

#3 2010-12-01 02:25:37

namelessone
Member
Registered: 2009-12-17
Posts: 39

Re: Root device doesn't exist--can't boot with lvm [SOLVED]

falconindy wrote:

The HOOKS array is order sensitive. Can you post your conf file for mkinitcpio?

Oh! I understand now: I was using HOOKS="base udev lvm2 sata filesystems" but I need to have sata before lvm2 in order to properly detect my hard drive!

Changing it to HOOKS="base udev sata lvm2 filesystems" fixed the issue smile

Offline

Board footer

Powered by FluxBB