虚拟机版本:VM 16
1、启动后显示grub rescue
2、输入ls显示(hd0) (hd0,msdos2) (hd0,msdos1)
3、查看文件系统在以上的哪个位置,例如 ls (hd0,msdos2)/
4、如果文件系统在(hd0,msdos2),则按照以下步骤操作去启动ubuntu
a) set root=(hd0,msdos2)
b) set prefix=(hd0,msdos2)/boot/grub
c) insmod normal
d) normal
5、等待ubuntu系统启动完成,在启动一个命令行,完成一下操作:
a) sudo grub-install /dev/sda
b) sudo apt-get update
c) sudo apt-get upgrade
6、修复完成