遇到这种情况可以使用boot-repair工具进行修复,修复步骤如下:
首先,boot-repair工作在ubuntu系统下。因为从硬盘启动系统无法进入ubuntu,可以在bios下设置从U盘启动,一般是USB-HDD选项,之后可以进入ubuntu系统。当然,这里所用的u盘是安装了ubuntu系统的。我是使用unetbootin工具在u盘上面写入ubuntu12.04的。
进入ubuntu系统之后,第一步,安装boot-repair,
- sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
添加boot-repair所在的源,
- sudo apt-get install -y boot-repair && boot-repair
安装并执行boot-repair。
之后使用 recommended repair,完成之后重新启动,即可发现可以在开机启动菜单中选择ubuntu或者windows xp。