archlinux滚挂

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

输出如下:

1
2
3
4
5
6
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. 挂载相应分区:

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

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

    1
    pacman -Syu
  5. 退出 chroot:

    1
    exit
  6. 更新 grub 配置:

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

    1
    2
    3
    umount /mnt/boot
    umount /mnt
    reboot

出处

Hello world!

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×