@
karbon 我没有单独的/boot
@
humiaozuzu 不至于,一般是特别久没升级外加升级前不看官方通告才会出问题,我看了,但是有一步没有照做
下午花了20分钟搜索方法,刚刚花了15分钟敲命令,终于修好了,记录方法如下:
======Recovery from LVM Update Failure==========
Cannot boot after a update of LVM
The official LVM upgrade note:
https://www.archlinux.org/news/changes-to-lvm/Resolve:
Boot with Live CD, chroot and rebuild kernel image.
See:
http://serverfault.com/questions/414289/how-do-i-recover-from-boot-error-when-my-root-is-on-raid-and-lvmhttps://bbs.archlinux.org/viewtopic.php?id=139608Steps:
1. use live cd boot
2. run 'lvscan' to find out lvm volume, lvscan returns result:
inactive '/dev/VolGroup00/home'
inactive '/dev/VolGroup00/root'
3. run 'vgchange -ay /dev/VolGroup00, to active the vlolume
4. mount root and home:
mount /dev/VolGroup00/root /mnt
mount /dev/VolGroup00/home /mnt/home
5. mount other folders:
cd /mnt
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
mount -t devpts pts dev/pts/
6. chroot:
chroot . /bin/bash
7. make kernel image:
mkinitcpio -p linux