背景:
ubuntu18.04 +win10
先装的win10 后装的ubuntu。
起因:
固态硬盘,windows 做了三个分区,CDE。后来嫌弃DE盘没啥用,干脆合并了。之后重启电脑就出现了grub secue
解决办法:
1. 先使用 ls 命令 查看有多少 分区
2. 逐个使用 ls <分区>/boot/grub 查看有无grub配置
grub rescue> ls
结果示例# (hd0) , (hd0,msdos1), (hd0,msdos5), (hd0,msdos6)
grub rescue> ls (hd0,msdos1)/boot/grub
错误提示: error 若出现unknown filesystem字样,则尝试下一个
grub rescue> ls (hd0,msdos5)/boot/grub
.....
grub rescue> ls (hd0,msdos6)/boot/grub
3. 手动配置
假设当 ls (hd0,msdos6)/boot/grub 时出现了正确的提示
接下来 可以使用以下命令
grub rescue>set root=(hd0