怎么修复Ubuntu 10.04 启动菜单

如何修复Ubuntu 10.04 启动菜单

安装过Ubuntu之后又安装Windows 7的朋友,应该都有知道,Ubuntu Grub的MBR引导会被Windows7所替换
开机的GRUB引导菜单没了,其实这种问题,我已经碰到很多回了,微软的心永远是那么的贪。
看看我的修复过程吧,进到ubuntu 10.04光盘,我的ubuntu只有一个分区,位于:/dev/sda2,打开终端输入命令:

sudo -s
mount –bind /dev/sda2 /mnt
mount -t proc /proc /mnt/proc
chroot /mnt
grub-install /dev/sda
grub-install –recheck /dev/sda

注意:上面命令参数bind跟recheck前面是两个减号!
接着,按住ctrl+d退出,卸下挂载的目录,重启即可!