怎样恢复grub对fedora10的引导
发布时间:2009-03-13 10:33:22来源:红联作者:BMVR
原来安装的fedora10,grub坏了,手中没fedora10光盘,所以重新在新分区装了fedora8,把fedora10的vmlinuz和initrd复制到/boot/grub下了,并改了menu.lst文件,结果启动时可以看到fedora10的选项,但进不了,说文件没找到,是什么原因啊。分区如下图,D盘后连着三个linux分区是后来装的fedora8,F盘后的两个是fedora10默认的分区,挂载应该是哪个盘啊,我是这么写的root (ha0,8),高手帮忙看看啊,谢了!
BMVR 于 2009-03-15 19:59:05发表:
liveCD也行吧?刚下的
蔡万钊 于 2009-03-14 23:43:21发表:
用FC10的光盘启动,选择修复就行了
反正坏了
就多试试,总有好处的
BMVR 于 2009-03-13 22:05:01发表:
现在没有fedora10的盘,只有8的和,ubuntu的,用ubuntu的liveCD可以找到grub.conf文件,内容拷贝下来了,如下(第一个是fedora10下分区下的,第二个是fedora8下的,红字是自己加的):
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,8)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=3
timeout=8
splashimage=(hd0,8)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.15-170.2.24.fc10.i686)
root (hd0,8)
kernel /vmlinuz-2.6.27.15-170.2.24.fc10.i686 ro root=UUID=374ded07-0c3c-41a6-97d9-8cb6f63d3764
initrd /initrd-2.6.27.15-170.2.24.fc10.i686.img
title Fedora (2.6.27.12-170.2.5.fc10.i686)
root (hd0,8)
kernel /vmlinuz-2.6.27.12-170.2.5.fc10.i686 ro root=UUID=374ded07-0c3c-41a6-97d9-8cb6f63d3764
initrd /initrd-2.6.27.12-170.2.5.fc10.i686.img
title Fedora (2.6.27.5-117.fc10.i686)
root (hd0,8)
kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=374ded07-0c3c-41a6-97d9-8cb6f63d3764
initrd /initrd-2.6.27.5-117.fc10.i686.img
title WinXP
rootnoverify (hd0,0)
chainloader +1
×××××××××××××××××××××××××××××××××××××××
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,10)
# kernel /vmlinuz-version ro root=/dev/sda13
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,10)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-42.fc8)
root (hd0,10)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.23.1-42.fc8.img
title Fedora 10
root (hd0,8)
kernel /vmlinuz-2.6.27.12-170.2.5.fc10.i686
initrd /initrd-2.6.27.12-170.2.5.fc10.i686.img
title winXP
rootnoverify (hd0,0)
chainloader +1
iksway 于 2009-03-13 20:43:04发表:
只要从FC10系统盘的root目录下找到menu.lst文件看看是指向哪个文件的,然后把那个文件打开,参照那个文件重写下主引导区的menu.lst文件
蔡万钊 于 2009-03-13 20:06:37发表:
用FC10的光盘启动,再修复
建议不要安装Windows
BMVR 于 2009-03-13 12:33:22发表:
分区编号是不是“ro root=”后面那一串数字,要怎么弄啊?我用fedora8的光盘更新了下引导程序,现在又进不去了,只能进xp,想再装一遍fedora8,可以解决问题么?或者用grub的命令能解决么?
微宝贝 于 2009-03-13 12:28:52发表:
你的menu.lst是不是修改正确了呢?而且你重新安装fedora8之分区的编号会改变,所以注意menu.lst的引导参数。尤其是分区编号
BMVR 于 2009-03-13 11:19:00发表:
用fedora10的光盘能修复吗?用什么软件可以在windows下进入linux的文件系统
Alsdwdz 于 2009-03-13 11:07:40发表:
低版本是不能引导高版本的,后装的8可能无法引导出10,也有你把10的文件给搞坏了