- 论坛徽章:
- 0
|
linux中grub一般是安装在mbr上的,如果有双系统要重新安装一下win,重启之后你会发现漂亮的linux启动莱单没了!!下面是我修复grub的方法
首先用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的引导界面又回来了。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22115/showart_228274.html |
|