You are not logged in.
Pages: 1
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
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
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
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
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
My prompt looks like this [rootfs /]# and doesn't recognize the lvm command.
Offline
Offline
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
What do you mean by regenerate my initramfs?
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
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
Pages: 1