1 双启动
# 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,4)
# kernel /vmlinuz-version ro root=/dev/hda7
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
gfxmenu (hd0,4)/message
title RedFlag (2.6.22.6-1)
root (hd0,4)
kernel /vmlinuz-2.6.22.6-1 ro root=LABEL=/ vga=788 splash=silent
initrd /initrd-2.6.22.6-1.img
title Windows Vista(SP1)
rootnoverify (hd0,0)
chainloader +1
注意从 #boot=/dev/hda 行看,default=1表示默认的启动项是第二个,0表示第一个,1表示第二个,以此类推。
timeout=5表示默认的等待时间(单位秒)。再往下看,有两个启动项:
title RedFlag (2.6.22.6-1)
root (hd0,4)
kernel /vmlinuz-2.6.22.6-1 ro root=LABEL=/ vga=788 splash=silent
initrd /initrd-2.6.22.6-1.img
这个是Linux启动项,还有:
title Windows Vista(SP1)
rootnoverify (hd0,0)
chainloader +1
这个是Vista启动项。
2 修改 启动级别 linux
以管理员身份进入Linux,修改文件:/etc/inittab
找到“id:5:initdefault:”,其中的5就是X-Window,为默认运行级别,一般我们把5改为3即可。
一共有7种启动级别,分别为:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
各个运行级的详细解释:
0 为停机,机器关闭。
1 为单用户模式,就像Win9x下的安全模式类似。
2 为多用户模式,但是没有NFS支持。
3 为完整的多用户模式,是标准的运行级。
4 一般不用,在一些特殊情况下可以用它来做一些事情。例如在笔记本电脑的电池用尽时,可以切换到这个模式来做一些设置。
5 就是X11,进到X Window系统了。
6 为重启,运行init 6机器就会重启。
0和6一般不用;
运行startx可启动到级别5。