修复受损的grub启动

  今天手欠,把两个manjaro中的一个给删除了,结果把引导搞坏了,进入grub rescre模式

1、查看grub文件的分区

  ls (hd1,gpt8)/boot/grub

  有返回信息即可

2、设置启动根路径

  prefix=(hd1,gpt8)/boot/grub

3、安装grub启动模块

  insmod normal

4、引导

  normal

5、系统中的补救:

  终端进入cd /boot/grub

  执行:grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck   %reinstall grub

        sudo  grub-mkconfig -o /boot/grub/grub.cfg                      %update grub configuration

 

https://wiki.manjaro.org/index.php/GRUB/Restore_the_GRUB_Bootloader#BIOS_System

posted @ 2023-06-23 22:17  叕叒双又  阅读(179)  评论(0编辑  收藏  举报