浏览模式: 标准 | 列表 Tag: grub

GRUB配置文件修改改变默认启动顺序

案例:red hat linux + windows 2003 es 双系统,通过修改grub配置文件修改改变默认启动顺序

描述:默认启动linux系统,如果要想启动windows 2003系统则需要在启动电脑后的几秒钟内(GRUB倒计时)按键盘上的上下选择键切入系统选择画面,现通过修改配置文件来作用

操作过程:

进入linux系统,进入终端,通过su命令将权限提升至root(或者之前就用root登陆,但是不大符合安全操作规范),编辑/etc/grub.conf配置文件,使用vi /etc/grub.conf

# 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,6)
# kernel /boot/vmlinuz-version ro root=/dev/hda7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux ES (2.6.9-22.EL)
root (hd0,6)
kernel /boot/vmlinuz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-22.EL.img
title Windows 2003 ES
rootnoverify (hd0,0)
chainloader +1

# title Red Hat Enterprise Linux ES (2.6.9-22.EL)
# root (hd0,6)
# kernel /boot/vmlinuz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet
# initrd /boot/initrd-2.6.9-22.EL.img

# title Windows 2003 ES
# rootnoverify (hd0,0)
# chainloader +1

对调位置后重启后grub会默认引导进入windows 2003 服务器系统。

Tags: grub