linux和windows启动菜单详解(Grub和NT Loader)<转>
二、从Grub启动windows(适合linux装在最后)
编辑“/boot/grub/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,2)
#????????? kernel /vmlinuz-version ro root=/dev/hda5
#????????? initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,2)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title winxp
rootnoverify (hd0,0)
chainloader +1
-------------------------
现在default值为0,意即启动排行第一的操作系统,这里代表的就是Ubuntu, kernel 2.6.15-23-386。
现在把它修改成“default 1”,那么XP就成为默认的操作系统了。
因为从零数起,以title打头的Microsoft Windows XP Professional这一行排序为1。
另外我们还可以通过修改timeout的值来变更默认等待时间。