Arch won't boot anymore, can you help?
When I try to boot it cannot find my root partition, although I am sure the same config worked about a week ago ( I tried downgrading everything to what was up-to-date a week ago but that didn't help). My boot entry contains this: cryptdevice=/dev/sda4:volgroup0 root=/dev/mapper/volgroup0-root
At boot I can enter my password, but then it breaks. I tried booting from live USB and I was able to open the encryption normally. Inside there is LVM group named volgroup0 which contains volgroup0-root and volgroup0-home. Both can be mounted and are working normally.
When I am booting I get this message:
Waiting 10 seconds for device /dev/mapper/volgroup0-root ... ERROR: device '/dev/mapper/volgroup0-root' not found. Skipping fsck. Mounting /dev/mapper/volgroup0-root on real root mount: /new_root : no filesystem type specified. You are now being dropped into an emergency shell.
I dont know what I did wrong, because this exact config has been working fine for months. Also my root FS is xfs.
EDIT: Fixed by restoring root partition from backup, in an hour all packages will be updated and I will see if it breaks again. EDIT2: So I updated everything and nothing broke, so I don't know what went wrong. Config was correct because It works again without any change also it wasn't caused by XFS.
Edited 12 Apr 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 4 · 100% up
- Kind
- Text
- ID
- bcbcpn
25 comments
Things like /dev/sda4 are no unique numbers. Unplug all Harddisk Drives and usb drives and whatever and try againand just plug in that one drive with your setup on it Make sure if this works to switch to UUID or something other.
I have been using it like this for months and it always worked fine, I have only one other drive connected which is a USB drive and is identified as /dev/sdb (I can see it during boot).
You still should, there's no guarantee that it will always remain sdb, that's the problem and the entire point of using unique identifiers.
While it isn't the underlying issue in this particular case, it's still good practice.
What does fdisk -l returns ? Just check if your drive is still sda. Anyway, you should use the id as mentionnes by the other comment.
There was a bug in the lvm2 2.02.184-2 release, chroot in from your USB and update your system again
Edit: Am I tripping or do we have automatic link generation for packages? That's cool!
lvm2 2.02.184-1
Think youre tripping unless they have to be current.
So i updated to -3 but nothing changed
I restored the whole root partition from backup and now it works again so the problem isn't in the config. I will now update all packages (1.8GB) and see if it breaks again.
EDIT: It didn't break, everything works correctly now.
Did you make sure to include the xfs module in the initramfs?
No I didn't and it worked just fine before.
Try it.
Probably was not the case here, but try using unique identifier like UUID. You can find it by : ls -alitr /dev/disk/by-uuid/
Or at least keep in mind that this might be sometimes cause of booting problems.
I actually did change it to UUID after I managed to fix this, because a lot of people suggested it.
When that happens to me it’s cause my nvidia driver is fucked (was using the beta one from AUR) I’m usually able to open another TTY with alt+F2 and fix it from that terminal.