win10升级后,grub损坏
修复步骤
用ls命令列出所有的分区
grub rescue> ls (hd0) (hd1) (hd1,gpt8)....
据你自己的记忆大概定位系统引导所在的分区(如果不记得那就只能逐个去试了)
grub rescue> ls (hd1,gpt6)/boot/grub
配置grub引导
grub rescue> set root=(hd1,gpt7) grub rescue> set prefix=(hd1,gpt7)/boot/grub
切换到normal模式
grub rescue> insmod normal grub rescue> normal
如果上面设置没有错的话,就可以正常进入系统的grub菜单了。
选择linxu,进入系统
sudo update-grub sudo grub-install/dev/sda
下面是我的电脑执行情况
原文链接:https://www.datayang.com/article/36