昨天晚上滚动更新了一次,今天早上重启电脑发现挂了……这是第一次滚挂,有点兴奋(#滑稽)

输出如下:

Warning:/lib/modules/4.20.3-arch1-1-ARCH/modules.devname not found - ignoring
starting version 240
ERROR: device UUID=xxxxxxx not found.Skipping fsck.
mount: /new_root: Can't find UUID=xxxxxxx.
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off

提示进入了 emergency shell ,但是键盘无法输入, google 了一下,找到了解决方法:

  1. 进入 livecd

  2. 挂载相应分区:

    mount /dev/sha* /mnt
    mount /dev/sha* /mnt/boot
    
  3. chroot:

     arch-chroot /mnt
    
  4. 更新系统:

    pacman -Syu
    
  5. 退出 chroot:

     exit
    
  6. 更新 grub 配置:

    grub-mkconfig -o /mnt/boot/grub/grub.cfg
    
  7. 取消挂载并重启(记得在BIOS里把启动顺序改回来):

     umount /mnt/boot
     umount /mnt
     reboot
    

出处