LinuxSir.cn,穿越时空的Linuxsir!

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

怎么样修改GRUB来先起动XP

[复制链接]
发表于 2005-3-5 09:38:23 | 显示全部楼层 |阅读模式
如下:
# 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/hda8
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.10-1.770_FC3)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.10-1.770_FC3 ro root=LABEL=/1 rhgb quiet
        initrd /boot/initrd-2.6.10-1.770_FC3.img
title Fedora Core (2.6.10-1.766_FC3)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.10-1.766_FC3 ro root=LABEL=/1 rhgb quiet
        initrd /boot/initrd-2.6.10-1.766_FC3.img
title Fedora Core (2.6.10-1.741_FC3)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.10-1.741_FC3 ro root=LABEL=/1 rhgb quiet
        initrd /boot/initrd-2.6.10-1.741_FC3.img
title windows xp
        rootnoverify (hd0,0)
        chainloader +1
发表于 2005-3-5 10:08:37 | 显示全部楼层
楼主说的“先启动”是不是指XP为默认。
如果是这样那么default=3
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-5 10:41:27 | 显示全部楼层
就是指XP为默认启动,为什么改为3?
回复 支持 反对

使用道具 举报

发表于 2005-3-5 11:22:47 | 显示全部楼层
因为0是第一个。
回复 支持 反对

使用道具 举报

发表于 2005-3-5 18:17:10 | 显示全部楼层
第一个是0,第四个就是3罗,还有就是


# 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/hda8
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
hiddenmenu
title windows xp
rootnoverify (hd0,0)
chainloader +1
title Fedora Core (2.6.10-1.770_FC3)
root (hd0,7)
kernel /boot/vmlinuz-2.6.10-1.770_FC3 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.10-1.770_FC3.img
title Fedora Core (2.6.10-1.766_FC3)
root (hd0,7)
kernel /boot/vmlinuz-2.6.10-1.766_FC3 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.10-1.766_FC3.img
title Fedora Core (2.6.10-1.741_FC3)
root (hd0,7)
kernel /boot/vmlinuz-2.6.10-1.741_FC3 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.10-1.741_FC3.img
回复 支持 反对

使用道具 举报

发表于 2005-3-5 18:48:49 | 显示全部楼层
要么把default改3~要么就把东西拉到第一个位置就可以了
回复 支持 反对

使用道具 举报

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

本版积分规则

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