LinuxSir.cn,穿越时空的Linuxsir!

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

双系统修复grub的问题,无法添加win的引导

[复制链接]
发表于 2007-4-22 13:10:22 | 显示全部楼层 |阅读模式
前些天要帮老婆做农村医改的工作,不得不在fc6存在的情况下装了win2003。
现用 root(0,Y)  加setup(hd0) 修复了 grub,fc6的引导正常。后在grub.conf中加入title windows 2003 .......................................................................。
但不知为什么在grub启动时,引导项中没有win2003.所以每次想进win2003只能用打命令rootnoverify(hd0,0)..........。

本人确认在grub.conf中加入的引导命令正确。
不知有谁能指教一下?
发表于 2007-4-22 13:51:44 | 显示全部楼层
grub读的是/boot/grub/menu.lst文件。你修改的grub.conf在/etc下,是/boot/grub/menu.lst的链接文件。肯能你的链接不对。直接修改/boot/grub/menu.lst就行了。
回复 支持 反对

使用道具 举报

发表于 2007-4-22 16:09:48 | 显示全部楼层
rootnoverify(hd0,0)
将其加入grub.conf中不就可以了吗?
default=0
timeout=3
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
#hiddenmenu#
title=Gentoo Linux ( Default )
      root (hd0,1)
      kernel /boot/kernel-genkernel-x86-2.6.20-gentoo-r6-madeBYzzl  root=/dev/ram0 real_root=/dev/sda2 resume=/dev/sda2 video=vesafb:1024x768-32@83,mtrrmywrap splash=silent,fadein,theme:emergence console=tty1 quiet
      initrd /boot/initramfs-genkernel-x86-2.6.20-gentoo-r6-madeBYzzl
title=Gentoo Linux ( 2.6.19-r5 )
      root (hd0,1)
      kernel /boot/kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0 real_root=/dev/sda2 resume=/dev/sda2 quiet
      initrd /boot/initramfs-genkernel-x86-2.6.19-gentoo-r5
title=M$ WinServer 2003
      rootnoverify (hd0,0)
      makeactive
      chainloader  +1
title=Memtest86
     root (hd0,0)
     kernel /boot/memtest86/memtest.bin
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-22 19:46:15 | 显示全部楼层
我的grub.conf如下:但启动时,不会显示Windows2003,而修改fc6参数就立竿见影。


# 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,5)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,5)/grub/splash.xpm.gz
#hiddenmenu
title Windows2003
  rootnoverify (hd0,0)
  chainloader +1
title Fedora Core (2.6.20-1.2944.fc6)
        root (hd0,5)
        kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.20-1.2944.fc6.img
title Fedora Core (2.6.20-1.2933.fc6)
        root (hd0,5)
        kernel /vmlinuz-2.6.20-1.2933.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.20-1.2933.fc6.img
回复 支持 反对

使用道具 举报

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

本版积分规则

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