ubuntu grub引导修复

分享和讨论Linux相关的资讯与内容
回复
头像
BobMaster
锋芒初露
锋芒初露
帖子: 1186
注册时间: 2020年 12月 7日 08:05
来自: 神秘的东方
我的状态: 🎯
为圈友点赞: 338 次
被赞次数: 177 次
联系:

ubuntu grub引导修复

帖子 BobMaster »

1.准备便携LiveCD镜像
2.进入LiveCD,挂载系统根分区和引导分区
这里的关键是要使用rw选项

代码: 全选

mount /dev/根分区 -o rw /mnt
mount /dev/引导分区 -o /mnt/boot
3.chroot进入系统分区

代码: 全选

chroot /mnt
4.重新生成引导

代码: 全选

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

grub-mkconfig -o /boot/grub/grub.cfg
PS: 部分warning可以忽略


重启,选择GRUB引导,看是否能够正常进入系统
人生如音乐,欢乐且自由
回复

在线用户

正浏览此版面之用户: 没有注册用户 和 0 访客