当前位置: 技术问答>linux和unix
grub 设置的问题
来源: 互联网 发布时间:2015-12-21
本文导语: 我有两块硬盘,一块装了 windows 一块是 FC5 Linux。 每次启动Linux的时候我总是在bios里面该启boot sequence 请问各位大侠,怎么设置一下grub 可以引导 另一块硬盘上面的windows啊 | 修改/boot/grub...
我有两块硬盘,一块装了 windows 一块是 FC5 Linux。 每次启动Linux的时候我总是在bios里面该启boot sequence 请问各位大侠,怎么设置一下grub 可以引导 另一块硬盘上面的windows啊
|
修改/boot/grub/grub.conf,grub配置菜单,default=0,修改下;hiddenmenu, 不要注释
[root@localhost testforc]# cat /boot/grub/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,5)
# kernel /boot/vmlinuz-version ro root=/dev/hda6
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title A
root (hd0,5)
kernel /boot/vmlinuz-2.6.9-5.ELsmp ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-5.ELsmp.img
root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-5.EL.img
title Other
rootnoverify (hd0,0)
chainloader +1
[root@localhost testforc]# cat /boot/grub/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,5)
# kernel /boot/vmlinuz-version ro root=/dev/hda6
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title A
root (hd0,5)
kernel /boot/vmlinuz-2.6.9-5.ELsmp ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-5.ELsmp.img
root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-5.EL.img
title Other
rootnoverify (hd0,0)
chainloader +1