- 论坛徽章:
- 0
|
修复GRUB
引自:http://www.linuxeden.com/forum/showthread.php/windows-linux-155209.html
首先用linux光盘启动,先进入救援模式
boot:linux rescue
#chroot /mnt/sysimage
然后ls一下就能看到root和boot了
#grub
grub>root (fd0)
:filesystem type is ext2fs ,using whole disk
使用find命令查找grub.conf在哪个分区
grub>find /boot/grub/grub.conf
(hd0,0)
这果结果不一定哦,hd0,0 代表 /dev/hda1分区,如果是/dev/hda3就应该是(hd0,2) 依此类推,我的就是在 hd0,8
如果是SATA硬盘,应该是/dev/sda1 以此类推。
设置该分区为root
grub>root (hd0,0)
filesystem type is ext2fs,partiton type ox83
使用setup命令安装GRUB到(hd0),即重写主引导扇区mbr
grub>setup(hd0)
....................
..........................done
到此安装成功,取出光盘
grub>reboot
然后就可以看到grub的引导界面又回来了。
修复grub,按照3楼的做法吧。可能还需要改一改grub目录下的menu.lst
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/24475/showart_271055.html |
|