UBUNTU修复Grub

OS:Win2K3/Ubuntu6.06
win2003被同学弄中毒啦,重新安装,mbr被重写了,要修复,放个UBUNTU的LiveCD进去,进光盘的系统,
终端下面执行

grub> find /boot/grub/stage1
(hd0,7)                                               (Grub在/dev/sda8上,所以 hd0,7)
grub>root (hd0,7)
Filesystem type is ext3fs, partition type 0x83
grub>setup (hd0)
??????????                                           (这里提示什么我忘记了)
grub>quit
# reboot

重启之后,GRUB又恢复了,高兴中,哈哈! ^_^

附 来自ChinaUnix上的网友nuclearxin 对Grub的认识
grub shell 里面 安装 stage1 和stage2过程,看我理解的对不?
root(hd0,0) #如果根/目录和/boot目录的partition 不一样的话,找/boot 所在的partition对应的(hdx.x).
setup(hd0,0) #自动寻找/boot/grub/stage1(如果/boot单独分区就找直接找/grub/stage1)
# 和/boot/grub/stage2 (如果/boot单独分区就找直接找/grub/stage2)
# 然后修改stage1 里面的partition位置编码 与stage2对应~
# 最后把stage1压缩后放到(hd0,0)
对吗??????

DanceFire批改,网友nuclearxin 的正确!

随机日志

发表评论

1 Comments.

Leave a Reply



[ Ctrl + Enter ]

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

CNXCT小组的博客 is Stephen Fry proof thanks to caching by WP Super Cache