GRUB에서 Linux 전용으로 만든 후 이중 부팅 옵션을 다시 얻는 방법

GRUB에서 Linux 전용으로 만든 후 이중 부팅 옵션을 다시 얻는 방법

이미 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

/boot/grub/menu.lst일반적 으로 다양한 OS를 로드하기 위한 명령 목록에 포함 되어 있는 grub 메뉴 파일을 편집할 수 있는 옵션이 있습니다 .

귀하의 경우에는 두 번째(세 번째) 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...

관련 정보