You are not logged in.

#1 2013-07-21 01:10:40

Cube_Code
Member
Registered: 2012-07-15
Posts: 34

[SOLVED]syslinux unable to find lvm root

I am using MBR on a BIOS motherboard with two primary partitions. sda1 is reserved for /boot and sda2 has all my logical volumes including /. I set the lvm2 hook in the mkinitcpio.conf and pointed the syslinux.cfg to my /dev/mapper/ root logical volume. Syslinux can't find my root directory. Am I missing something?

Last edited by Cube_Code (2013-07-21 04:29:21)

Offline

#2 2013-07-21 01:14:53

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]syslinux unable to find lvm root

Syslinux can't find your root directory, or the initramfs cannot find your root directory?  What kind of messages or whatever are you getting?  How far along the boot process do you get?  Your question was a good start, but more detail is needed to properly get any kind of an idea of where you are at here.

Offline

#3 2013-07-21 01:24:50

Cube_Code
Member
Registered: 2012-07-15
Posts: 34

Re: [SOLVED]syslinux unable to find lvm root

While booting, the errors are as follows:

waiting 10 seconds for /dev/mapper/rootvg-lv_root ...
ERROR: device '/dev/mapper/rootvg-lv_root' not found. Skipping fsck.
ERROR: unable to find root device '/dev/mapper/rootvg-lv_root'.

Offline

#4 2013-07-21 01:30:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]syslinux unable to find lvm root

So eventually you will get dropped into the initramfs shell.  From there try activating the VGs manually.  That is do "lvm vgscan && lvm vgchange -ay" then exit out of the shell and see if the boot continues.

Offline

#5 2013-07-21 01:34:15

Cube_Code
Member
Registered: 2012-07-15
Posts: 34

Re: [SOLVED]syslinux unable to find lvm root

In the Syslinux portion of the wiki it states:

Configure syslinux.cfg to point to the right root partition. This step is vital. If it points to the wrong partition, Arch Linux will not boot.

APPEND root=/dev/sda3 ro

I set it to:

APPEND root=/dev/mapper/rootvg-lv_root ro

Is this correct?

Offline

#6 2013-07-21 01:37:36

Cube_Code
Member
Registered: 2012-07-15
Posts: 34

Re: [SOLVED]syslinux unable to find lvm root

My prompt looks like this [rootfs /]# and doesn't recognize the lvm command.

Offline

#7 2013-07-21 01:55:13

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

Re: [SOLVED]syslinux unable to find lvm root

Cube_Code wrote:

I set the lvm2 hook in the mkinitcpio.conf

Either you didn't actually do this...

Cube_Code wrote:

doesn't recognize the lvm command.

...or you didn't regenerate your initramfs after adding the hook.

Offline

#8 2013-07-21 02:04:59

Cube_Code
Member
Registered: 2012-07-15
Posts: 34

Re: [SOLVED]syslinux unable to find lvm root

falconindy wrote:
Cube_Code wrote:

I set the lvm2 hook in the mkinitcpio.conf

Either you didn't actually do this...

Cube_Code wrote:

doesn't recognize the lvm command.

...or you didn't regenerate your initramfs after adding the hook.

What do you mean by regenerate my initramfs?

Offline

#9 2013-07-21 02:10:01

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,167

Re: [SOLVED]syslinux unable to find lvm root

Cube_Code wrote:

What do you mean by regenerate my initramfs?

https://wiki.archlinux.org/index.php/In … activation


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2013-07-21 04:35:06

Cube_Code
Member
Registered: 2012-07-15
Posts: 34

Re: [SOLVED]syslinux unable to find lvm root

Thanks for all the help I didn't realize that the mkinitcpio.conf didn't automagically regenerate the image.
I ran the command: mkinitcpio -p linux

It works great now thanks again!

Offline

Board footer

Powered by FluxBB