
すでに Windows 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
/boot/grub/menu.lst
通常は にあり、さまざまな OS をロードするためのコマンドのリストが含まれているGRUB メニュー ファイルを編集するオプションがあります。
2 番目 (3 番目) の OS (この場合は 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...