我的内容如下:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,7)
# kernel /boot/vmlinuz-version ro root=/dev/sda8
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.22.5-76.fc7)
root (hd0,7)
kernel /boot/vmlinuz-2.6.22.5-76.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.22.5-76.fc7.img
title Fedora (2.6.20-2931.fc7xen)
root (hd0,7)
kernel /boot/xen.gz-2.6.20-2931.fc7
module /boot/vmlinuz-2.6.20-2931.fc7xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.20-2931.fc7xen.img
title Fedora (2.6.22.4-65.fc7)
root (hd0,7)
kernel /boot/vmlinuz-2.6.22.4-65.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.22.4-65.fc7.img
title Fedora (2.6.20-2925.9.fc7xen)
root (hd0,7)
kernel /boot/xen.gz-2.6.20-2925.9.fc7
module /boot/vmlinuz-2.6.20-2925.9.fc7xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.20-2925.9.fc7xen.img
title WinXP
rootnoverify (hd0,0)
chainloader +1
xuenbaobei 于 2007-09-23 10:14:11发表:
我有grub4dos 但不知道怎么弄
还请您详解
tusheng 于 2007-09-22 21:38:13发表:
有live cd吗?有的话,用那个动动进系统。
重新安装grub
对了,用grub4dos也可以引导进系统来修复
xuenbaobei 于 2007-09-22 21:32:05发表:
我是用硬盘安装的 fc7
我也不清楚内核版本是多少
我只知道 我下载的景象 -------- fedora core 7 开源linux操作系统.iso
是这个
xuenbaobei 于 2007-09-22 21:28:45发表:
我用xp的引导盘 启动到xp后 , 在重起的时候grub分区已经消失了, 能直接进如xp 请问现在该怎么办
tusheng 于 2007-09-22 18:22:03发表:
grub>后面输命令,重装grub就可以了
gurb>root (hd0,0)
grub>setup (hd0,0)
具体看你自己的系统了
Oersted 于 2007-09-22 16:59:56发表:
搜索的
用过redflag恢复过grub,把盘放进去就可以恢复了
Oersted 于 2007-09-22 16:59:18发表:
Fedora 7 Grub修复
为了让grub支持双操作系统,被我胡乱改了之后,fedora 7就不能启动了。
一、放入linux光盘,选择rescue install模式。进入shell界面。
二、输入grub。
三、在grub指令环境中:
gurb>root (hd0,0)
grub>setup (hd0,0)
grub>kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VoLGroup00/LogVol00 rhgb quiet
#vmlinuz是加载的内核,后面跟着的是版本号
grub>initrd /initrd-2.6.21-1.3194.fc7.img
grub>boot
就可以启动了。
或者
Fedora 7为例GRUB菜单修复
硬盘分区:C盘XP、D盘工具、E盘备份、随后是ETX3和SWAP交换区
步骤一、下载GRUB4DOS于C盘根目录。
步骤二、使用explore2fs软件导出LINUX分区下的GRUB.CONF(BOOT/GRUB)。
我的内容如下:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,7)
# kernel /boot/vmlinuz-version ro root=/dev/sda8
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.22.5-76.fc7)
root (hd0,7)
kernel /boot/vmlinuz-2.6.22.5-76.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.22.5-76.fc7.img
title Fedora (2.6.20-2931.fc7xen)
root (hd0,7)
kernel /boot/xen.gz-2.6.20-2931.fc7
module /boot/vmlinuz-2.6.20-2931.fc7xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.20-2931.fc7xen.img
title Fedora (2.6.22.4-65.fc7)
root (hd0,7)
kernel /boot/vmlinuz-2.6.22.4-65.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.22.4-65.fc7.img
title Fedora (2.6.20-2925.9.fc7xen)
root (hd0,7)
kernel /boot/xen.gz-2.6.20-2925.9.fc7
module /boot/vmlinuz-2.6.20-2925.9.fc7xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.20-2925.9.fc7xen.img
title WinXP
rootnoverify (hd0,0)
chainloader +1
找出最新的内核版本号为Fedora (2.6.22.4-65.fc7)位于(hd0,7)
步骤三、编辑位于C盘根目录下的MENU.LST文件。内容如下:
default 0
timeout 1
color cyan/blue white/blue
title Fedora (2.6.22.4-65.fc7)
root (hd0,7)
kernel /boot/vmlinuz-2.6.22.4-65.fc7 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.22.4-65.fc7.img
boot
如果需要其他的内核版本,相应的添加即可。
步骤四、编辑C盘根目录下的BOOT.INI文件。内容如下:
[boot loader]
timeout=5
default=C:\grldr
[operating systems]
C:\grldr=Fedora (2.6.22.4-65.fc7)
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="DeepinXP V5.7" /noexecute=optin /fastdetect
重起即可进入FEDORA和XP双菜单启动了
注意事项
1、注意找准内核版本号
2、找准内核存放的硬盘分区。