You are not logged in.

#1 2013-03-26 22:49:53

DoctorWedgeworth
Member
Registered: 2013-03-26
Posts: 6

[SOLVED] Can't find LVM root device after pacman -Syu

Hey, can anyone give me a hand here? I haven't updated in about a month, but the last time I did was definitely after the changes-to-lvm post in the news (I know that because it's what got me on the last update big_smile)

I noted just before the update that cat /proc/1/comm displayed "init", which surprised me. Maybe I'd installed systemd but not configured it?

Anyway now I'm getting:
Waiting 10 seconds for device /dev/mapper/belle-root …
ERROR: Unable to find root device '/dev/mapper/belle-root'
You are being dropped to a recovery shell.

I've chrooted from a SUSE CD I had lying around and followed the "changes to LVM" instructions again in case I'd missed something, but nothing is changing.

Can anyone help me out? Thanks.

Last edited by DoctorWedgeworth (2013-03-27 00:32:41)

Offline

#2 2013-03-26 22:53:58

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

Re: [SOLVED] Can't find LVM root device after pacman -Syu

Unless you installed your system after the move to systemd, you would have had to manually move to systemd.  It was not automatic (and shouldn't be).  Did you do this or not?  I am assuming not, but there is also the possibility that you set things up and then never made it permanent with the systemd-sysvcompat package.

So after the boot is unable to find the root device, have you tried to continue by manually scanning for the VG and activating it?

Offline

#3 2013-03-26 23:06:04

DoctorWedgeworth
Member
Registered: 2013-03-26
Posts: 6

Re: [SOLVED] Can't find LVM root device after pacman -Syu

No I didn't do any configuration. Guess that explains my problem smile guessing this isn't going to be a quick fix then.

I tried continuing using the rescue shell but I couldn't find any lv* commands. I didn't check for pvscan/vgscan/vgchange.

While I've been messing I've somehow broken my USB keyboard, so it now won't work past grub. I tried changing the init=/usr/lib/systemd/systemd to init=/bin/bash (wishful thinking without a root device) but the same thing happened.

Offline

#4 2013-03-26 23:07:30

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

Re: [SOLVED] Can't find LVM root device after pacman -Syu

You have to use lvm first.  As all those vg*, lv*, and pv* commands are actually links to the lvm command, you should have to do something like "lvm vgscan" instead of just "vgscan".

Edit: oh and at that point in the boot process, you are actually in the initramfs still (ash to be specific).

Edit2: I was having issues with a USB keyboard and a new machine (actually just a new bios), and found out that because of windows 8's requriement for a fast POST, the default is to turn off the scanning for usb devices.  Though this was for UEFI, and I am not sure if the same would apply for a bios booting machine...

Last edited by WonderWoofy (2013-03-26 23:10:40)

Offline

#5 2013-03-26 23:09:50

DoctorWedgeworth
Member
Registered: 2013-03-26
Posts: 6

Re: [SOLVED] Can't find LVM root device after pacman -Syu

Any idea why my USB keyboard won't respond?

Offline

#6 2013-03-26 23:47:52

DoctorWedgeworth
Member
Registered: 2013-03-26
Posts: 6

Re: [SOLVED] Can't find LVM root device after pacman -Syu

I don't think it's BIOS because it's working in the grub menu, just not afterwards. It also works in a SUSE live CD. I installed systemd-sysvcompat but nothing changed. I've not emptied out rc.conf yet, I'm hoping I can do that with a more usable system. lvm2 is already added in mkinitcpio.conf between mdadm and filesystem.

Offline

#7 2013-03-26 23:48:46

DoctorWedgeworth
Member
Registered: 2013-03-26
Posts: 6

Re: [SOLVED] Can't find LVM root device after pacman -Syu

I've reset the BIOS to defaults anyway to make sure, and it made no difference.

Offline

#8 2013-03-27 00:01:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Can't find LVM root device after pacman -Syu

Please use the edit button rather than bumping your thread.

Do you have keyboard in your hooks? You should also be using the mdadm_udev hook.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2013-03-27 00:20:53

DoctorWedgeworth
Member
Registered: 2013-03-26
Posts: 6

Re: [SOLVED] Can't find LVM root device after pacman -Syu

Sorry about the bump (although it was only a 55 second bump, the second was a response to an edit). 

My hooks were: base udev autodetect block mdadm lvm2 filesystems keyboard
I've moved keyboard to after block (was this a bad move?) so now it's:
base udev block keyboard mdadm_udev lvm2 filesystems keyboard

And now it boots big_smile Thank you so much.

Offline

#10 2013-03-27 00:24:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Can't find LVM root device after pacman -Syu

Good to hear. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB