linux启动配置文件顺序,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 服务器系统。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值