Skip to content

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.

4 points24 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
4 · 100% up
Kind
Text
ID
bcbcpn

Author

190
posts
274
comments
0
media
View profile

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.

7 points

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).

-2 points

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.

9 points

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.

3 points

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!

6 points

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.

3 points

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.

1 points

I actually did change it to UUID after I managed to fix this, because a lot of people suggested it.

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.