My system isn't booting. In particular, most of the SSD partitions
won't mount, because they are not under /dev any more. The root
partition, /dev/md125 mounts, but that is all.
These partitions are lvm partitions under RAID-1 (software RAID). They simply fail to appear in /dev/mapper on boot up.
I've managed to bring my system up using a Rescue-DVD followed by
chroot. This shows that the partions on the SSD are basically
undamaged.
I strongly suspect that my emerge update from last night is to blame.
Alan Mackenzie <acm@muc.de> writes:
My system isn't booting. In particular, most of the SSD partitions
won't mount, because they are not under /dev any more. The root
partition, /dev/md125 mounts, but that is all.
These partitions are lvm partitions under RAID-1 (software RAID). They simply fail to appear in /dev/mapper on boot up.
I've managed to bring my system up using a Rescue-DVD followed by
chroot. This shows that the partions on the SSD are basically
undamaged.
I strongly suspect that my emerge update from last night is to blame.
It was.
Been there, done that myself.
Mount your filesystems from the rescue boot and chroot into them.
Re-emerge lvm2 with the "lvm" flag enabled.
See https://www.gentoo.org/support/news-items/2022-11-19-lvm2-default-USE-flags.html
If you use LVM2 for any partitions, or if you use tools like
'lvchange', you should enable USE=lvm.
Some of these commands (or similar) in the rescue boot might be helpful:
mkdir -p /mnt/{usr,var,home,work,boot,dev,sys,proc}
mount /dev/mapper/vg0-root /mnt
mount /dev/mapper/vg0-usr /mnt/usr
mount /dev/mapper/vg0-var /mnt/var
mount /dev/mapper/vg1-home /mnt/home
mount /dev/mapper/vg1-work /mnt/work
mount /dev/sda1 /mnt/boot
mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /dev/shm /mnt/dev/shm
mount -o bind /sys /mnt/sys
mount -o bind /proc /mnt/proc
PATH=/bin:/sbin:/usr/bin:/usr/sbin \
SHELL=/bin/bash \
chroot /mnt
--
Alan J. Wylie https://www.wylie.me.uk/
Dance like no-one's watching. / Encrypt like everyone is.
Security is inversely proportional to convenience
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 302 |
Nodes: | 16 (2 / 14) |
Uptime: | 97:18:26 |
Calls: | 6,766 |
Calls today: | 4 |
Files: | 12,295 |
Messages: | 5,376,373 |
Posted today: | 1 |