
我在已經安裝了 Widows 7 的 PC 上安裝了 RHEL 4.0。它安裝了 GRUB 引導程序,但沒有提供雙重開機選項 - 它只提供了進入 RHEL 4.0 的選項。有沒有辦法讓我告訴 GRUB 也給我一個引導到 Windows 7 的選項?
更新:我的 menu.lst 如下圖所示
[root@abacchu-lnx ~]# more /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 do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-89.0.11.ELsmp)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-89.0.11.ELsmp ro root=LABEL=/1
initrd /boot/initrd-2.6.9-89.0.11.ELsmp.img
title Red Hat Enterprise Linux AS (2.6.9-89.0.11.EL)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-89.0.11.EL ro root=LABEL=/1
initrd /boot/initrd-2.6.9-89.0.11.EL.img
title Red Hat Enterprise Linux AS (2.6.9-89.ELsmp)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-89.ELsmp ro root=LABEL=/1
initrd /boot/initrd-2.6.9-89.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-89.EL)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-89.EL ro root=LABEL=/1
initrd /boot/initrd-2.6.9-89.EL.img
title Other
rootnoverify (hd0,0)
chainloader +1
答案1
您可以選擇編輯 grub 選單文件,該文件通常駐留在/boot/grub/menu.lst
並包含載入不同作業系統的命令清單。
您可以為您的第二個(第三個)作業系統(Windows)新增另一個項目,例如:
default=0
timeout=5
title Windows
root(hd0,0)
rootnoverify(hd0)
chainloader +1
title RHEL
root(hd0,1)
kernel /vmlinuz-2.6...
initrd /initrd-2.6...