LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1256|回复: 5

重装win后,用grub-install修复grub失败

[复制链接]
发表于 2005-10-23 09:40:47 | 显示全部楼层 |阅读模式
一块硬盘,一个刻录机

硬盘在第一个IDE口的slave上

刻录机在第二个IDE口的slave上

redhat8 OS

重装win后,安装在硬盘MBR上的grub被清除,按以往方法,用redhat的第一张盘

进入linux rescue模式:

chroot /mnt/sysimage     --执行OK
grub-install /dev/hdb    --执行失败,提示:

/dev/hdb does not have any corresponding BIOS drive.

用/dev/hda,/dev/hdc,/dev/hdd也不行


尝试另一种方法:

chroot /mnt/sysimage 后
grub<回车>
root (hd0, 12)   --执行失败,提示:
File system type unkown, partition type 0x82
setup (hd0)      --执行失败,提示:
Error 17: Cannot mount selected partition.

请问是什么原因??

//bow

3Q
发表于 2005-10-23 10:12:58 | 显示全部楼层
root (hd0, 12)
这个号码不对了,我建议你用tab键自动补齐,看看有哪些可选的
然后在确定这个号码 或者是13或者是11
回复 支持 反对

使用道具 举报

发表于 2005-10-23 11:05:29 | 显示全部楼层
grub > cat (hd0,y)/grub/grub.conf   if a text is printed on screen, the y is the exact number

then, grub > kernel (hd0,y)/vmlinuz-***version number***as it's printed*** [ro root=/dev/hd0]

grub > initrd (hd0,y)/initrd-version number.img

grub > boot

if a string like "succeed" occur, ok
grub > reboot

PS: root (hd0,y), if 0x82,it means swap.while 0x83 means ext3. :-)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-23 21:10:57 | 显示全部楼层
用root (hd0, 11)可以了,感谢二位~~!!
回复 支持 反对

使用道具 举报

发表于 2005-10-23 22:39:50 | 显示全部楼层
没有光盘的怎么恢复阿?
回复 支持 反对

使用道具 举报

发表于 2005-10-25 17:12:49 | 显示全部楼层
grub for dos
或者用loadlin.exe
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表