首 页文章中心

Linux学习网

您的位置Linux学习网 > Linux基本应用 > 文章内容

改变默认启动系统

作者:佚名  来源:不详  发布时间:2008-7-18 8:26:00
如果你是装了XP和linux双系统

启动系统后,系统默认选择linux。如果你想让默认选择的是XP,可以按以下修改:

1、获得root权限

2、在终端输入:

vim /etc/grub.conf

出现一下代码:

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,7)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.25.4-10.fc8)
root (hd0,7)
kernel /vmlinuz-2.6.25.4-10.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.25.4-10.fc8.img
title Fedora (2.6.23.1-42.fc8)
root (hd0,7)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.23.1-42.fc8.img
title Others
rootnoverify (hd0,0)
chainloader +1

第2(从第0个开始)个title就是xp,按“i”键,对代码作一下修改:

#boot=/dev/sda
default=2
timeout=5
splashimage=(hd0,7)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.25.4-10.fc8)
root (hd0,7)
kernel /vmlinuz-2.6.25.4-10.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.25.4-10.fc8.img
title Fedora (2.6.23.1-42.fc8)
root (hd0,7)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.23.1-42.fc8.img
title Window XP
rootnoverify (hd0,0)
chainloader +1

按ESC键退出,再按Shift+:,输入wq保存退出!OK。
收藏本页到: 365Key | del.icio.us | | 添加到雅虎收藏+
  • 网站帮助 - 广告合作 - 网站地图