红联Linux门户
Linux帮助

关于grub的问题

发布时间:2008-09-15 10:53:30来源:红联作者:zhtg08
我有两块硬盘 hd0安装了 redflag linux , hd1上安装了winxp, 我试想通过修改grub下的menu.lst 能使可选择启动,在menu.lst源文件后添加了

title windows

    rootnoverify (hd1,0)

    chainloader +1

可是在启动时菜单中并没有windows的选项,请高手帮忙释疑,谢谢!

下面是修改后的menu.lst

# 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,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
gfxmenu (hd0,0)/message
title RedFlag (2.6.22.6-1)
root (hd0,0)
kernel /vmlinuz-2.6.22.6-1 ro root=LABEL=/ vga=788 splash=silent
initrd /initrd-2.6.22.6-1.img
title Windows XP
rootnoverify(hd1,0)
chainloader+1
文章评论

共有 3 条评论

  1. zhtg08 于 2008-09-18 10:05:47发表:

    我的第二个硬盘是xp, 在第一个分区上
    root(hd1,0)
    chainloader+1
    boot
    还是不行

  2. ywy1011 于 2008-09-17 13:52:18发表:

    假如WINDOWS是在第一个硬盘的第一个分区,那么手工启动方式如下:
    root (hd0,0)
    chainloader +1
    boot
    XP的启动方式和LINUX有很大区别,详细的可以网上找找XP的启动过程说明,不知道这个能不能帮的上忙。

  3. zhtg08 于 2008-09-17 09:31:17发表:

    查了些资料 ,发现:
    在
    rootnoverify(hd1,0)
    chainloader+1

    之间加了
    makeactive

    就可以看到meun里的 windows选项了

    可是现在选择了windows项还是不能进入XP系统 继续学习 可能还要修改xp里的 boot.ini文件了