ºìÁªLinuxÃÅ»§
Linux°ïÖú

¹ØÓÚgrubµÄÎÊÌâ

·¢²¼Ê±¼ä:2008-09-15 10:53:30À´Ô´:ºìÁª×÷Õß:zhtg08
ÎÒÓÐÁ½¿éÓ²ÅÌ hd0°²×°ÁË redflag linux £¬ hd1ÉÏ°²×°ÁËwinxp£¬ ÎÒÊÔÏëͨ¹ýÐÞ¸ÄgrubϵÄmenu.lst ÄÜʹ¿ÉÑ¡ÔñÆô¶¯£¬ÔÚmenu.lstÔ´ÎļþºóÌí¼ÓÁË

title windows

¡¡¡¡¡¡¡¡rootnoverify (hd1,0)

¡¡¡¡¡¡¡¡chainloader +1

¿ÉÊÇÔÚÆô¶¯Ê±²Ëµ¥Öв¢Ã»ÓÐwindowsµÄÑ¡ÏÇë¸ßÊÖ°ïæÊÍÒÉ£¬Ð»Ð»£¡

ÏÂÃæÊÇÐ޸ĺóµÄmenu.lst

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
gfxmenu (hd0,0)/message
title RedFlag (2.6.22.6-1)
root (hd0,0)
kernel /vmlinuz-2.6.22.6-1 ro root=LABEL=/ vga=788 splash=silent
initrd /initrd-2.6.22.6-1.img
title Windows XP
rootnoverify(hd1,0)
chainloader+1
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. zhtg08 ÓÚ 2008-09-18 10:05:47·¢±í:

    Îҵĵڶþ¸öÓ²ÅÌÊÇxp, ÔÚµÚÒ»¸ö·ÖÇøÉÏ
    root(hd1,0)
    chainloader+1
    boot
    »¹ÊDz»ÐÐ

  2. ywy1011 ÓÚ 2008-09-17 13:52:18·¢±í:

    ¼ÙÈçWINDOWSÊÇÔÚµÚÒ»¸öÓ²Å̵ĵÚÒ»¸ö·ÖÇø£¬ÄÇôÊÖ¹¤Æô¶¯·½Ê½ÈçÏ£º
    root (hd0,0)
    chainloader +1
    boot
    XPµÄÆô¶¯·½Ê½ºÍLINUXÓкܴóÇø±ð£¬ÏêϸµÄ¿ÉÒÔÍøÉÏÕÒÕÒXPµÄÆô¶¯¹ý³Ì˵Ã÷£¬²»ÖªµÀÕâ¸öÄܲ»ÄÜ°ïµÄÉÏæ¡£

  3. zhtg08 ÓÚ 2008-09-17 09:31:17·¢±í:

    ²éÁËЩ×ÊÁÏ ,·¢ÏÖ:
    ÔÚ
    rootnoverify(hd1,0)
    chainloader+1

    Ö®¼ä¼ÓÁË
    makeactive

    ¾Í¿ÉÒÔ¿´µ½meunÀïµÄ windowsÑ¡ÏîÁË

    ¿ÉÊÇÏÖÔÚÑ¡ÔñÁËwindowsÏÊDz»ÄܽøÈëXPϵͳ ¼ÌÐøѧϰ ¿ÉÄÜ»¹ÒªÐÞ¸ÄxpÀïµÄ boot.iniÎļþÁË