安装linux和windows双系统后会出现引导错误,启动的时候直接进入grub rescue界面的情况,这时候需要手动修复grub,步骤如下:
#查看系统所有分区
grubrescue > ls
#逐个检查分区,找出你的Linux系统盘,直到返回内容不是:error:unknown filesystem为止
grubrescue > ls (hd0, msdos5)/boot/grub]
#找到了你的linux系统盘之后,例如msdos5为你的系统盘,依次输入
grubrescue > set root=(hd0,msdos5)/boot/grub
grubrescue > set prefix=(hd0,msdos5)/boot/grub
insmodnormal
normal
#之后就可以看到你的登录菜单了,进入系统之后,还是需要修复grub,否则下次登录还是会出现上述情况
#在终端执行下面的命令
sudoupdate-grub
sudogrub-install /dev/sda