首页 > Windows开发 > 详细

How to Reins GRUB After the New Update of WINDOWS

时间:2019-01-06 14:54:51      阅读:173      评论:0      收藏:0      [点我收藏+]

la ji windows

OK 现在我的输入法也装好了,再说一遍,垃圾windows

这次大更新又把我的GRUB搞崩了

这次没有像以前一样用chroot重建grub马上搞定,所以记一下网上找到的方案:

1.  先找到linux的根分区,我的在/dev/sda5, 如果语句正确,会显示 /boot/grub 下的文件

grub rescue>ls (hd0,5)/boot/grub

2.  然后用以下命令临时进入系统

grub rescue>set root=(hd0,5)
grub rescue>set prefix=(hd0,5)/boot/grub
grub rescue>insmod normal
grub rescue>normal

3.  最后用你自己系统的grub修复语句,这里是arch的

# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
# grub-mkconfig -o /boot/grub/grub.cfg

  转载自https://www.jianshu.com/p/d4475ea2064e

 

How to Reins GRUB After the New Update of WINDOWS

原文:https://www.cnblogs.com/hexsix/p/10228903.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!