ʲôÊÇgrub
¡¡¡¡grub ÊÇÒ»¸ö¶àÖØÆô¶¯¹ÜÀíÆ÷¡£grubÊÇGRand Unified BootloaderµÄËõд£¬Ëü¿ÉÒÔÔÚ¶à¸ö²Ù×÷ϵͳ¹²´æʱѡÔñÒýµ¼Äĸöϵͳ¡£Ëü¿ÉÒÔÒýµ¼µÄ²Ù×÷ϵͳ°üÀ¨Linux,FreeBSD,Solaris,NetBSD,BeOSi,OS/2,Windows95/98,Windows NT,Windows2000¡£Ëü¿ÉÒÔÔØÈë²Ù×÷ϵͳµÄÄں˺ͳõʼ»¯²Ù×÷ϵͳ£¨ÈçLinux,FreeBSD£©£¬»òÕß°ÑÒýµ¼È¨½»¸ø²Ù×÷ϵͳ£¨ÈçWindows 98£©À´Íê³ÉÒýµ¼¡£
2. grubµÄÌصã
¡¡¡¡grub¿ÉÒÔ´úÌæliloÀ´Íê³É¶ÔLinuxµÄÒýµ¼£¬ÌرðÊÊÓÃÓÚlinuxÓëÆäËü²Ù×÷ϵͳ¹²´æÇé¿ö£¬ÓëliloÏà±È£¬ËüÓÐÒÔÏÂÌص㣺
Ö§³Ö´óÓ²ÅÌ
¡¡¡¡ÏÖÔÚ´ó¶àÊýLinux·¢Ðа汾µÄlilo¶¼ÓÐͬÑùµÄÒ»¸öÎÊÌ⣺¸ù·ÖÇø(/boot·ÖÇø)²»ÄÜ·ÖÔÚ³¬¹ý1024ÖùÃæµÄµØ·½£¬Ò»°ãÊÇÔÚ8.4G×óÓҵĵط½£¬·ñÔòlilo²»ÄÜ°²×°£¬»òÕß°²×°ºó²»ÄÜÕýÈ·Òýµ¼ÏµÍ³¡£¶øgrub¾Í²»»á³öÏÖÕâÖÖÇé¿ö£¬Ö»Òª°²×°Ê±ÄãµÄ´óÓ²ÅÌÊÇÔÚLBAģʽÏ£¬grub¾Í¿ÉÒÔÒýµ¼¸ù·ÖÇøÔÚ8GÒÔÍâµÄ²Ù×÷ϵͳ¡£
Ö§³Ö¿ª»ú»Ãæ
¡¡¡¡grubÖ§³ÖÔÚÒýµ¼¿ª»úµÄͬʱÏÔʾһ¸ö¿ª»ú»Ãæ¡£¶ÔÓÚÍæ¼ÒÀ´Ëµ£¬ÕâÑù¿ÉÒÔÖÆ×÷×Ô¼ºµÄ¸öÐÔ»¯¿ª»ú»Ã棻¶ÔÓÚPC³§ÉÌ£¬ÕâÑù¿ÉÒÔÔÚ¿ª»úʱÏÔʾµçÄÔµÄһЩÐÅÏ¢ºÍ³§É̵ıêÖ¾µÈ¡£grubÖ§³Ö640x480,800x600,1024x768¸÷ÖÖģʽµÄ¿ª»ú»Ã棬¶øÇÒ¿ÉÒÔ×Ô¶¯Õì²âÑ¡Ôñ×î¼Ñģʽ£¬ÓëWindowsÄÇ320x400µÄ¿ª»ú»Ãæ²»¿ÉͬÈÕ¶øÓï¡£
Á½ÖÖÖ´ÐÐģʽ
¡¡¡¡grub²»µ«¿ÉÒÔͨ¹ýÅäÖÃÎļþ½øÐÐÀýÐеÄÒýµ¼£¬»¹¿ÉÒÔÔÚÑ¡ÔñÒýµ¼Ç°¶¯Ì¬¸Ä±äÒýµ¼Ê±µÄ²ÎÊý£¬»¹¿ÉÒÔ¶¯Ì¬¼ÓÔظ÷ÖÖÉ豸¡£ÀýÈçÄãÔÚLinuxϱàÒëÁËÒ»¸öеĺËÐÄ£¬µ«²»ÄÜÈ·¶¨ËüÄܲ»Äܹ¤×÷£¬Äã¾Í¿ÉÒÔÔÚÒýµ¼Ê±¶¯Ì¬¸Ä±ägrubµÄ²ÎÊý£¬³¢ÊÔ×°ÔØÕâ¸öеĺËÐĽøÐÐʹÓá£GrubµÄÃüÁîÐÐÓзdz£Ç¿´óµÄ¹¦ÄÜ£¬¶øÇÒÖ§³ÖÈçbash»òdoskeyÒ»ÑùµÄÀúÊ·¹¦ÄÜ£¬Äã¿ÉÒÔÓÃÉÏϼüÀ´Ñ°ÕÒÒÔÇ°µÄÃüÁî¡£
²Ëµ¥Ê½Ñ¡Ôñ
¡¡¡¡ÔÚliloÏ£¬ÄãÐèÒªÊÖ¹¤ÊäÈë²Ù×÷ϵͳµÄÃû×ÖÀ´Òýµ¼²»Í¬µÄ²Ù×÷ϵͳ¡£¶øgrubʹÓÃÒ»¸ö²Ëµ¥À´Ñ¡Ôñ²»Í¬µÄϵͳ½øÐÐÒýµ¼¡£Ä㻹¿ÉÒÔ×Ô¼ºÅäÖø÷ÖÖ²ÎÊý£¬ÈçÑÓ³Ùʱ¼ä£¬Ä¬ÈϲÙ×÷ϵͳµÈ¡£
·ÖÇøλÖøıäºó²»±ØÖØÐÂÅäÖÃ
¡¡¡¡liloÊÇͨ¹ý¶ÁÈ¡Ó²ÅÌÉϵľø¶ÔÉÈÇøÀ´×°Èë²Ù×÷ϵͳ£¬Òò´Ëÿ´Î·ÖÇø¸Ä±ä¶¼±ØÐëÖØÐÂÅäÖÃlilo£¬ÀýÈçÄãÓÃPQ magicµ÷ÕûÁË·ÖÇøµÄ´óС£¬ÄÇliloÔÚÄãÖØÐÂÅäÖúÃ֮ǰ¾Í²»ÄÜÒýµ¼Õâ¸ö·ÖÇøµÄ²Ù×÷ϵͳÁË¡£¶øgrubÊÇͨ¹ýÎļþϵͳֱ½Ó°ÑºËÐĶÁÈ¡µ½Äڴ棬Òò´ËÖ»Òª²Ù×÷ϵͳºËÐĵÄ·¾¶Ã»Óиı䣬grub¾Í¿ÉÒÔÒýµ¼ÏµÍ³¡£ ³ý´ËÖ®Í⣬Grub»¹ÓÐÐí¶à·Ç³£Ç¿´óµÄ¹¦ÄÜ¡£ÀýÈçÖ§³Ö¶àÖÖÍⲿÉ豸£¬¶¯Ì¬×°ÔزÙ×÷ϵͳÄںˣ¬ÉõÖÁ¿ÉÒÔͨ¹ýÍøÂç×°ÔزÙ×÷ϵͳºËÐÄ¡£GrubÖ§³Ö¶àÖÖÎļþϵͳ£¬Ö§³Ö¶àÖÖ¿ÉÖ´ÐÐÎļþ¸ñʽ£¬Ö§³Ö×Ô¶¯½âѹ£¬¿ÉÒÔÒýµ¼²»Ö§³Ö¶àÖØÒýµ¼µÄ²Ù×÷ϵͳµÈ¡£
3. grubµÄʹÓÃ
°²×°grub
¡¡¡¡Èç¹ûÒѾ°²×°ÁËÀ¶µãLinux2.0ÔògrubÊÇĬÈÏ°²×°µÄ¡£Òª°ÑgrubÖØа²×°µ½Ö÷Òýµ¼ÉÈÇøÉÏ£¬Ö»ÐèÒª¼òµ¥´òÈëmakebootableÃüÁî¾Í¿ÉÒÔÁË¡£
ÖÆ×÷grubÆô¶¯ÅÌ
¡¡¡¡Ê×ÏÈÈ·¶¨grubÒѾ°²×°£¬È»ºó½øÈëgrubµÄĿ¼£¬¼üÈ룺
¡¡¡¡#cd /boot/grub
¡¡¡¡·ÅÈëÒ»ÕÅÈíÅÌ£¬È»ºóÇÃÈëÃüÁ
¡¡¡¡#dd if=stage1 of=/dev/fd0 bs=512 count=1
¡¡¡¡#dd if=/stage2 of=/dev/fd0 bs512 seek=1
¡¡¡¡ÕâÑù¾Í¿ÉÒÔ×öºÃÒ»ÕÅÆô¶¯ÅÌÁË¡£
¿ª»ú
¡¡¡¡°²×°ÁËgrub¿ª»úºó»á³öÏÖÒ»¸ö²Ëµ¥£¬ÁгöËùÓеÄÆô¶¯Ñ¡Ïî¡£Èç¹ûÉèÖÃÁËÆô¶¯»ÃæÔò»áÏÔʾÆô¶¯»Ã棬°´Esc¼üÔò¿ÉÒÔÈ¡ÏûÆô¶¯»ÃæÏÔʾ²Ëµ¥Ñ¡Ïî¡£À¶µãLinuxËù´øµÄgrubµÄÃüÁîÌáʾÊÇÈ«ÖÐÎĵģ¬Ôڲ˵¥ÏÂÃæÏêϸÁгöÈç°´eÊDZà¼Æô¶¯ÃüÁ°´cÊÇʹÓÃÃüÁîÐеȡ£ÓÃÉÏϼü¿ÉÒÔÑ¡Ôñ²Ëµ¥Ï°´»Ø³µÆô¶¯ËùÑ¡Ïî¡£°´e¼ü¿ÉÒÔ±à¼ËùÑ¡ÏîµÄÆô¶¯ÃüÁÄã¿ÉÒÔÓÃÕâ¸ö¹¦ÄÜÁÙʱ¸Ä±äÄãµÄϵͳµÄÆô¶¯²ÎÊý£¬²Î¼ûÅäÖÃgrubÒ»½Ú¡£°´c¼üÔò½øÈëÃüÁîÐÐģʽ¡£ ¡¡¡¡
¡¡¡¡ÔÚÃüÁîÐÐģʽÏ¿ÉÒÔ´òÈëÃüÁîÖ±½ÓÖ´ÐУ¬ÀýÈçÄã¿ÉÒÔÇÃÈëpoweroff¹Ø±Õ¼ÆËã»ú¡£°´Tab¼ü¿ÉÒÔÁгöËùÓÐÖ§³ÖµÄÃüÁî¡£À¶µãLinuxÒѾ°Ñgrubºº»¯ÁË£¬ÆäÖÐÒ»²¿·ÖÃüÁîÇÃÈëÃû×Öºó»á¸ø³öÖÐÎÄÌáʾ£¬ÏÔʾÃüÁîµÄÓ÷¨ºÍ²ÎÊý¡£
4. ÅäÖÃgrub
¡¡¡¡grubÆô¶¯Ê±»áÔÚ/boot/grub/ÖÐÑ°ÕÒÒ»¸öÃû×ÖΪmenu.lstµÄÅäÖÃÎļþ£¬Èç¹ûÕÒ²»µ½´ËÎļþÔò²»½øÈë²Ëµ¥Ä£Ê½¶øÖ±½Ó½øÈëÃüÁîÐÐģʽ¡£
¡¡¡¡menu.lst ÊÇÒ»¸öÎı¾Îļþ£¬Äã¿ÉÒÔÓÃÈκÎÒ»¸öÎı¾±à¼Æ÷À´´ò¿ªËü¡£Ã¿Ò»Ðдú±íÒ»¸öÅäÖÃÃüÁÈç¹ûÒ»ÐеĵÚÒ»¸ö×Ö·ûΪ¾®ºÅ"#"ÔòÕâÒ»ÐÐΪעÊÍ£¬Äã¿ÉÒÔ¼òµ¥µØÓÃÔö¼Ó»ò¼õÉÙ×¢ÊÍÐÐÀ´¸Ä±äÅäÖá£
±à¼menu.lst£¬Ò»°ã»áÓÐÒÔϸ÷ÐÐ
timeout second
É趨ÔÚsecondÃëÖ®ºóÒýµ¼Ä¬ÈϵIJÙ×÷ϵͳ¡£
À¶µãLinuxĬÈÏÊÇtimeout 5£¬¾ÍÊÇ5ÃëûÓÐÆäËûÖ¸Áî¾ÍÒýµ¼ÏµÍ³£¬Èç¹ûÉè³É-1£¬Ôògrub»áÒ»Ö±µÈ´ýÖ±µ½Óû§Ñ¡ÔñÒ»¸öÑ¡ÏîΪֹ¡£
default num
ĬÈÏÆô¶¯µÚnum+1ÐÐÑ¡ÏҲ¾Í˵default=0ÔòĬÈÏÆô¶¯²Ëµ¥µÚÒ»ÐеIJÙ×÷ϵͳ£¬default=1ÔòÆô¶¯µÚ2ÐеÄϵͳ£¬Èç´ËÀàÍÆ¡£
splash pathname/filename
Ö¸³ö¿ª»ú»ÃæµÄÎļþËù´æ·ÅµÄ·¾¶ºÍÎļþÃû£¬Èç splash /boot/logo/800x600x8.img ÊÇÖ¸ÓÃÔÚ/boot/logo·¾¶ÏµÄ800x600.imgÎļþ×÷Ϊ¿ª»ú»Ãæ
title OSname title
ºóÃæµÄ×Ö·û¾ÍÊÇÄãÔڲ˵¥ÏîÉÏËù¿´¼ûµÄÑ¡ÏÄã¿ÉÒÔдÉϲÙ×÷ϵͳµÄÃû×ÖºÍÃèÊö£¬ÈçÓÃ
title BluePoint Linux, Single Mode ´ú±íÕâһѡÏîÊÇÒýµ¼À¶µãLinuxµÄµ¥Óû§Ä£Ê½¡£
ÏÂÃæ½áºÏÁ½¸öϵͳÒýµ¼ÃèÊöÀ´½âÊͼ¸¸öÒýµ¼Ñ¡ÏîµÄÒâÒå
title BluePoint Linux, Default Mode
root (hd0,1)
kernel /boot/vmlinuz vga=auto root=/dev/hda2
hd0ÊÇÖ¸µÚÒ»¸öÓ²ÅÌ(Ö÷Ó²ÅÌ) (hd0,1)ÊÇÖ¸µÚÒ»¸öÓ²Å̵ĵڶþ¸ö·ÖÇø¡£ kernel /boot/vmlinuz ÊÇÖ¸³öLinuxºËÐĵÄ·¾¶ÔÚ/boot/vmlinuzÖС£vga=auto ÊÇÉ趨ÏÔʾģʽ£¬root=/dev/hda2ÊÇÖ¸°ÑµÚÒ»¸öÓ²Å̵ĵڶþ¸ö·ÖÇø×÷Ϊ¸ù¹ÒÔص㣨"/"£©¡£
title Microsoft Windows
root (hd1,0)
chainloader (hd1,0)+1
root (hd1,0)ÕâÊÇÖ¸µÚ¶þ¸öÓ²ÅÌ(´ÓÓ²ÅÌ)ÉϵÚÒ»¸ö·ÖÇø
chainloader (hd1,0)+1 ×°ÈëÒ»¸öÉÈÇøµÄÊý¾ÝÈ»ºó°ÑÒýµ¼È¨½»¸øËü¡£
5. ´ÓÈíÅÌÆô¶¯grub
¡¡¡¡ÖÆ×÷Æô¶¯Å̺ó¿ÉÒÔÓÃÈíÅÌÆô¶¯Òýµ¼Ó²ÅÌÉϵIJÙ×÷ϵͳ ²åÈëÖÆ×÷ºÃµÄÆô¶¯ÈíÅÌ£¬½øÈëBIOSÉ趨ÈíÅÌÆô¶¯¡£ÈíÅÌÆô¶¯³É¹¦ºó¾Í»á½øÈëgrubµÄÃüÁîÐÐģʽ
grub>
¡¡¡¡ÒªÆô¶¯Ò»¸ö²Ù×÷ϵͳ£¬Ê×ÏÈÖ¸¶¨Òýµ¼Äĸö·ÖÇøÉϵÄϵͳ£¬ÀýÈçÒªÒýµ¼Ö¸µÚÒ»¸öÓ²ÅÌÉϵĵÚÒ»¸ö·ÖÇøµÄ²Ù×÷ϵͳ£¬ÏȼüÈë
grub>root (hd0,0)
¡¡¡¡½Ó×ÅÈç¹ûÒªÆô¶¯µÄÊÇWindowsϵͳ£¬¼üÈë
grub>chainloader (hd0,0)+1
¡¡¡¡×¢Òâ(hd0,0)ÒªËæ×ÅÓ²Å̺ͷÖÇøµÄ²»Í¬¶ø¸Ä±äÊý×Ö¡£ Èç¹ûÒªÒýµ¼Linux»òÆäËûϵͳ£¬Ó¦¼üÈë
grub>kernel £¨hd0,0£©/boot/vmlinuz root=/dev/hda1
¡¡¡¡×¢Òâhda1²ÎÊýÒ²ÒªËæ×ÅÓ²Å̺ͷÖÇøµÄ²»Í¬¶ø¸Ä±ä£¬Èç´ÓµÚ¶þ¸öÓ²Å̵ĵÚÒ»¸ö·ÖÇøÒýµ¼ÔòÓÃhdb1¡£
¡¡¡¡×îºóÇÃÈëboot¾Í¿ÉÒÔÆô¶¯ÏµÍ³ÁË¡£
¡¡¡¡ÔÚÈκÎʱºò²»ÄÜÈ·¶¨ÃüÁî»òÕßÃüÁîµÄ²ÎÊý¶¼¿ÉÒÔ°´Tab»ñµÃÏà¹ØµÄ°ïÖú¡£ÓÃÉÏϼü¿ÉÒÔ»ñµÃÃüÁîµÄÀúÊ·¼Ç¼¡£ ÆäʵÕâЩÃüÁî¾ÍÊÇmenu.lstµÄÆô¶¯ÃèÊö£¬ÄúÒ²¿ÉÒÔ¸ù¾ÝÄÇЩÃèÊöÀ´×Ô¼º¼üÈëÆô¶¯ÃüÁ×îºóÇÃÈëboot¾Í¿ÉÒÔÒýµ¼ÏµÍ³ÁË¡£
GrubÅäÖÃÔÓ̸(תÔØ)
1¡¢Ò»¸öGRUBÅäÖÃÎļþ
2¡¢½â¶Ágrub.confÎļþ
3¡¢ÅäÖÃgrub
4¡¢GRUBµÄ½»»¥ÐÔ
5¡¢³£¼ûgrub³ý´í·½·¨µÄ˼·
1 Ò»¸öGRUBÅäÖÃÎļþ
»ùÓÚ±¾ÀýµÄ·ÖÇøÈçÏ£º
hda 15G
hda1 8G / RED HAT LINUX8.0
hda5 7G /home
hdc 20G
hdc1 6.4G WinXP
hdc5 6.4G
hdc6 6.4G
hdc7 6.4G
#fdisk -l
# Disk /dev/hdc: 255 heads, 63 sectors, 2434 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 894 7181023+ b Win95 FAT32
/dev/hdc2 895 2434 12370050 f Win95 Extd (LBA)
/dev/hdc5 895 1787 7172991 b Win95 FAT32
/dev/hdc6 1788 2434 5196996 b Win95 FAT32
Disk /dev/hda: 255 heads, 63 sectors, 1867 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1020 8193118+ 83 Linux
/dev/hda2 1021 1802 6281415 83 Linux
/dev/hda3 1803 1867 522112+ 82 Linux swap
grub.conf,Õâ¸öÎļþλÓÚ;/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,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=3
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /boot/initrd-2.4.18-14.img
title Microsoft Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
chainloader (hd1,0)+1
makeactive
boot
2 ½â¶Ágrub.confÎļþ
ÎÒÃǽ«À´¿´¿´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,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda (×¢:ÒÔÉÏÒÔ·ûºÅ¾®£¢£££¢¿ªÍ·µÄÐбíʾ±»×¢Ê͵ô£¬Ã»ÓÐÈκÎÒâÒå)
default=0 (×¢:ĬÈϵIJÙ×÷ϵͳ¾ÍÊÇÓÉdefault¿ØÖƵġ£defaultºó¼ÓÒ»¸öÊý×Ön£¬±íÃ÷ÊÇµÚ n£«1¸ö¡£ÐèҪעÒâµÄÊÇ£¬GRUBÖУ¬¼ÆÊýÊÇ´Ó0¿ªÊ¼µÄ£¬µÚÒ»¸öÓ²ÅÌÊÇhd0£¬µÚÒ» ¸öÈíÇýÊÇfd0£¬µÈµÈ¡£ËùÒÔ£¬default 0 ±íʾĬÈϵIJÙ×÷ϵͳÔÚÕâ¶ùÊÇ Red Hat Linux (2.4.18-14)Èç¹ûÄãÐ޸ijÉ1¾ÍÊÇWinXPÁË)
timeout=3 (×¢:timeout±íʾĬÈϵȴýµÄʱ¼ä£¬Õâ¶ùÊÇ3ÃëÖÓ¡£³¬¹ý3Ã룬Óû§»¹Ã»ÓÐ×÷³öÑ¡ ÔñµÄ»°£¬ÏµÍ³½«×Ô¶¯Ñ¡ÔñĬÈϵIJÙ×÷ϵͳ;µ±È»Äã¿ÉÒԸijÉÈκÎÄãÀÖÒâµÄʱ¼ä)
splashimage=(hd0,0)/boot/grub/splash.xpm.gz (×¢:Ö¸¶¨¿ª»ú»ÃæÎļþsplash.xpm.gzµÄλÖã¬Ò²¿ÉÒÔsplash /boot/logo/800x600x8.img)
title Red Hat Linux (2.4.18-14) (×¢:±íʾRed Hat LinuxµÄ²Ëµ¥Ïî)
root (hd0,0) (×¢:±íʾµÚÒ»¸öÓ²Å̵ÚÒ»¸ö·ÖÇø,ÕâÀïµÄrootºÍϵ ͳÄÚµÄroot²»ÊÇÒ»ÂëÊÂ!ÏêϸÈçÏÂ˵Ã÷)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/ (×¢:Ö¸¶¨Äں˵ÄλÖÃ,Ïêϸ˵Ã÷ÈçÏ ÎÄ)
initrd /boot/initrd-2.4.18-14.img (×¢:³õʼ»¯)
title Microsoft Windows XP (×¢:±íʾMicrosoft Windows XPµÄ²Ëµ¥Ïî)
map (hd0) (hd1) (×¢:mapÊÇÃüÁî,ÏêϸÈçÏÂ)
map (hd1) (hd0)
root (hd1,0) (×¢:ÕâÊÇÖ¸µÚ¶þ¸öÓ²ÅÌ(´ÓÓ²ÅÌ)ÉϵÚÒ»¸ö·ÖÇø)
chainloader (hd1,0)+1 (×¢:Á´Ê½×°ÈëÆ÷,×°ÈëÒ»¸öÉÈÇøµÄÊý¾ÝÈ»ºó°ÑÒýµ¼ Ȩ½»¸øËü¡£Ïêϸ˵Ã÷ÈçÏÂ)
makeactive
boot
(×¢:ÔÚ Linux ÖУ¬µ±Ì¸µ½ "root" Îļþϵͳʱ£¬Í¨³£ÊÇÖ¸Ö÷ Linux ·ÖÇø¡£µ«ÊÇ£¬GRUB ÓÐËü×Ô¼ºµÄ root ·ÖÇø¶¨Òå¡£GRUB µÄ root ·ÖÇøÊDZ£´æ Linux Äں˵ķÖÇø¡£Õâ¿ÉÄÜÊÇÄúµÄÕýʽ root Îļþϵͳ£¬Ò²¿ÉÄܲ»ÊÇ¡£ÎÒÃÇÌÖÂÛµÄÊÇ GRUB£¬ÐèÒªÖ¸¶¨ GRUB µÄ root ·ÖÇø¡£½øÈë root ·ÖÇøʱ£¬GRUB ½«°ÑÕâ¸ö·ÖÇø°²×°³ÉÖ»¶ÁÐÍ£¬ÕâÑù¾Í¿ÉÒԴӸ÷ÖÇøÖÐ×°Èë Linux Äںˡ£GRUB µÄÒ»¸öºÜ¡°¿á¡±µÄ¹¦ÄÜÊÇËü¿ÉÒÔ¶ÁÈ¡±¾»úµÄ FAT¡¢FFS¡¢minix¡¢ext2 ºÍ ReiserFS ·ÖÇø.µ½Ä¿Ç°ÎªÖ¹£¬Äú¿ÉÄÜ»á¸Ðµ½Ò»µãÒÉ»ó£¬ÒòΪ GRUB ËùʹÓõÄÓ²ÅÌ£¯·ÖÇøÃüÃûÔ¼¶¨Óë Linux ʹÓõÄÃüÃûÔ¼¶¨²»Í¬¡£ÔÚLinux ÖУ¬µÚÒ»¸öÓ²Å̵ĵÚÎå¸ö·ÖÇø³Æ×÷ "hda5"¡£¶ø GRUB °ÑÕâ¸ö·ÖÇø³Æ×÷ "(hd0,4)"¡£GRUB ¶ÔÓ²Å̺ͷÖÇøµÄ±àºÅ¶¼ÊÇ´Ó 0 ¿ªÊ¼¼ÆËã¡£ÁíÍ⣬ӲÅ̺ͷÖÇø¶¼ÓöººÅ·Ö¸ô£¬Õû¸ö±í´ïʽÓÃÀ¨ºÅÀ¨Æð¡£ÏÖÔÚ£¬¿ÉÒÔ·¢ÏÖÈç¹ûÒªÒýµ¼ Linux Ó²ÅÌ hda5£¬Ó¦ÊäÈë "root (hd0,4)"¡£
ÖªµÀÁËÄÚºËÔÚÄĶù£¬»¹Òª¾ßÌåÖ¸³öÄĸöÎļþÊÇÄÚºËÎļþ£¬Õâ¾ÍÊÇkernelµÄ¹¤×÷¡£
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/˵Ã÷/boot/vmlinuz-2.4.18-14¾ÍÊÇÒªÔØÈëµÄÄںˡ£ºóÃæµÄ¶¼ÊÇ´«µÝ¸øÄں˵IJÎÊý¡£root=LABEL=/¾ÍÊÇlinuxµÄÓ²ÅÌ·ÖÇø±íʾ·¨£¬roÊÇreadonlyµÄÒâ˼¡£initrdÓÃÀ´³õʼµÄlinux image£¬²¢ÉèÖÃÏàÓ¦µÄ²ÎÊý¡£
ÃüÁîmap:µ±ÄãÓÐÁ½¿éÓ²ÅÌ£¬Ò»¸öÎÞ·¨´ÓµÚ¶þ¿éÓ²ÅÌÆô¶¯µÄ²Ù×÷ϵͳ£¬ÀýÈçWindowsxp£¬¾Í¿ÉÒÔʹÓÃmapÃüÁî.ÄãÄܹ»½«hd0Ó³ÉäΪhd1£¬½«hd1Ó³ÉäΪhd0¡£»»¾ä»°Ëµ£¬Äã¿ÉÒÔÐéÄâµÄ½»»»Á½¸öÓ²Å̶øÆô¶¯ËùÐèÒªµÄ²Ù×÷ϵͳ ¡£ÃüÁîÐÎʽÈçÏ£º
grub> map (hd0) (hd1)
grub> map (hd1) (hd0)
GRUB ʹÓÃÁË¡°Á´Ê½×°ÈëÆ÷¡±(chainloader)¡£Á´Ê½×°ÈëÆ÷´Ó·ÖÇø (hd1,0) µÄÒýµ¼¼Ç¼ÖÐ×°Èëwinxp×Ô¼ºµÄÒýµ¼×°ÈëÆ÷£¬È»ºóÒýµ¼Ëü¡£Õâ¾ÍÊÇÕâÖÖ¼¼Êõ½Ð×öÁ´Ê½×°ÈëµÄÔÒò -- Ëü´´½¨ÁËÒ»¸ö´ÓÒýµ¼×°ÈëÆ÷µ½ÁíÒ»¸öµÄÁ´¡£ÕâÖÖÁ´Ê½×°Èë¼¼Êõ¿ÉÒÔÓÃÓÚÒýµ¼Èκΰ汾µÄ DOS »ò Windows¡£
GRUBµÄÅäÖÃÎļþÒª¼òµ¥¾ÍÕâô¼òµ¥£¬Èç¹ûÄãÒª¸ü¸öÐÔ»¯Ò»µã£¬ÊÔÒ»ÊÔ°Ñ¡°color light-gray/blue ¡±¼ÓÔÚdefaultÓï¾äµÄÏÂÃ棬ÏÂÒ»´ÎÆô¶¯GRUBʱ£¬¿´¿´ÓÐʲô±ä»¯£¬ÔÙÊÔÒ»ÊÔ¡°color light-blue/red",¾ªÏ²Â𣿠ÓÐȤ°É! )
3 ÅäÖÃgrub
grubÆô¶¯Ê±»áÔÚ/boot/grub/ÖÐÑ°ÕÒÒ»¸öÃû×ÖΪmenu.lstµÄÅäÖÃÎļþ£¬Èç¹ûÕÒ²»µ½´ËÎļþÔò²»½øÈë²Ëµ¥Ä£Ê½¶øÖ±½Ó½øÈëÃüÁîÐÐģʽ¡£
ÏÖÔÚ£¬ÎÒÃÇÀ´¿´Ò»ÏÂÈçºÎÔÚÆô¶¯ºó½øÈë¸÷ÖÖ²Ù×÷ϵͳ£¬ÈçºÎ½¨Á¢menu.confÎļþ¡£ÎÒÃǾʹÓGRUBÖ§³ÖµÄÆô¶¯¹ý³Ì¿ªÊ¼¡£¿ÉÒÔÓÐÁ½ÖÖ·½·¨À´Íê³ÉÆô¶¯¹ý³Ì£º
•A.ͨ¹ýµ÷ÓÃÄں˱¾µØÆô¶¯
•B.Á¬ÐøÆô¶¯»òÕß½«¿ØÖÆת¸øÁíÒ»¸öÒýµ¼Æ÷
AģʽÆô¶¯¹ý³Ì
1£®ÅäÖøúÉ豸»òÕ߸æËßGRUBÄãµÄ¸ùÎļþϵͳ¡£
2£®¸æËßGRUBÄãµÄÄÚºËÓ°ÏñµÄλÖã¬È»ºó½«²ÎÊý´«Ë͸øÄںˡ£
3£®ÖØÐÂÆô¶¯£¬ÊÔһϡ£
ΪÁËÆô¶¯Linux£¬½«ÄÚºËÒÔbzImageµÄÎļþÃû·ÅÔÚ/boot/Ŀ¼ÖУ¬¸úÎļþϵͳÊÇ
/dev/hda1£¬»òÕßGRUBÖеÄ(hd0,0)¡£Æô¶¯¹ý³ÌÈçÏ£º
1.root (hd0,0) [This sets the root partition]
2.kernel /boot/bzImage root=/dev/hda1 [This sets the kernel]
BģʽÆô¶¯¹ý³Ì£¨ÕâÖÖģʽ¼ÙÉ赱ǰµÄ·ÖÇøÖа²×°ÁËÁíÒ»¸öÆô¶¯¹ÜÀíÆ÷£¬ÀýÈçLILO
»òÕßNTLDR£©£º
1£®ÉèÖøù·ÖÇøµ«²»Òª°²×°Ëü
2£®¼¤»îÕâ¸ö·ÖÇø
3£®ÅäÖÃÐèÒªÆô¶¯µÄ·ÖÇøµÄµÚÒ»¸öÉÈÇø
4£®ÖØÐÂÆô¶¯£¬¿´Ò»ÏÂЧ¹û¡£
ÎÒÃÇÔÚÊÔÊÔÆô¶¯°²×°ÔÚ/dev/hdc1»òÕß(hd1£¬0)µÄwindows¡£Æô¶¯windowsµÄ¹ý³ÌÈçÏÂ:
1.rootnoverify (hd1,0)
2.makeactive
3.chainloader +1 [+1 sets the first sector of the current root
partition]
4.boot [transfers the control and quits GRUB]
menu.confÎļþ£ºËüÓÃÓÚ½¨Á¢Æô¶¯¶à²Ù×÷ϵͳʱµÄ²Ëµ¥¡£½¨Á¢menu.conf²¢²»ÄÑ¡£ËüʹÓüòµ¥µÄÓ¢Ó¾ÍÏóÄãÔÚÕâÒ»½Ú¿´µ½µÄÄÇÑù¡£
ËùÓеIJ˵¥ÏîÄ¿¶¼ÒÔûÓжººÅ·Ö¸ôµÄ¡°title TITLENAME¡±¿ªÍ·¡£Äã¿ÉÒÔËæÒâÉèÖÃ
TITLENAME¡£
ÉèÖÃLinuxÆô¶¯²Ëµ¥²½ÖèÈçÏ£º
1£®ÉèÖñêÌâ
2£®ÉèÖøù·ÖÇø
3£®ÉèÖÃÄں˵ÄÏàÓ¦²ÎÊý
4£®Æô¶¯
Ò»¸ö²Ëµ¥Àý×Ó£º
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /boot/initrd-2.4.18-14.img
Ç°ÃæÓÐ#µÄÐÐÊÇÒ»¸ö×¢ÊÍ¡£
½¨Á¢Æô¶¯Windows »òÕß DOSµÄ²Ëµ¥£º
title Windoze
rootnoverify (hd0,0)
makeactive
chainloader +1
boot
#----
ÓÖ»òÕß:
title Microsoft Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
chainloader (hd1,0)+1
makeactive
boot
----
×¢Òâ:rootºÍrootnoverify¶¼ÊÇÒ»ÑùµÄ£¬°Ñrootnoverify¸Ä³ÉrootÒ²ÐС£²»¹ý¾¹ýʵ¼ùÀ´¿´¡£ÓÐʱÒýµ¼winʱ£¬ÏµÍ³°²×°ºÃºó£¬ÊÇrootnoverify (hdX.Y)ÕâÑùÐÎʽµÄ£¬ÕâÑù»á³öÏÖwindowsÆð²»À´£¬³öÏÖʲôwindowsʲôÎļþË𻵵ÄÇé¿ö¡£Õâʱ£¬ÎÒÃǾÍÒª°ÑÔÚgrubÖУ¬Òýµ¼windowsµÄÄǶÎÖеÄrootnoverify¸ÄΪroot
rootÓ¢ÎĵÄÒâ˼¾ÍÊǸùµÄÒâ˼£¬ÔÚÕâÀïÊÇÈÃlinuxÖªµÀ×Ô¼ºËù´¦µÄλÖã¬Ò²¾ÍÊÇÎÒÃÇËù°²×°linuxµÄ£¯¸ù·ÖÇøËùÔÚµÄλÖà ¡£
4 GRUBµÄ½»»¥ÐÔ
GRUB ×îºÃµÄÓŵãÖ®Ò»¾ÍÊÇÆäÇ¿½¡µÄÉè¼Æ -- ÔÚ²»¶ÏʹÓÃËüʱÇë±ðÍüÁËÕâµã¡£Èç¹û¸üÐÂÄں˻ò¸ü¸ÄËüÔÚ´ÅÅÌÉϵÄλÖ㬲»±ØÖØа²×° GRUB¡£ÊÂʵÉÏ£¬ÈçÓбØÒª£¬Ö»Òª¸üРmenu.lst Îļþ¼´¿É£¬Ò»Çн«±£³ÖÕý³£¡£
Ö»ÓÐÉÙÊýÇé¿öÏ£¬²ÅÐèÒª½« GRUB Òýµ¼×°ÈëÆ÷ÖØа²×°µ½Òýµ¼¼Ç¼¡£Ê×ÏÈ£¬Èç¹û¸ü¸Ä GRUB root ·ÖÇøµÄ·ÖÇøÀàÐÍ£¨ÀýÈ磬´Ó ext2 ¸Ä³É ReiserFS£©£¬ÔòÐèÒªÖØа²×°¡£»òÕߣ¬Èç¹û¸üР/boot/grub ÖÐµÄ stage1 ºÍ stage2 Îļþ£¬ÓÉÓÚËüÃÇÀ´×Ô¸üа汾µÄ GRUB£¬ºÜÓпÉÄÜÒªÖØа²×°Òýµ¼×°ÈëÆ÷¡£ÆäËüÇé¿öÏ£¬¿ÉÒÔ²»±ØÀí²Ç£¡
GRUBµÄ×î´óµÄÌصã¾ÍÊǽ»»¥ÐÔÌرðÇ¿¡£ÔÚ¿ª»úʱ£¬°´Ò»Ï¡°c¡±£¬½«½øÈëGRUB ¿ØÖÆ̨¡£ÏÔʾÈçÏ£º
GRUB version 0.5.96.1 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub>
»¶ÓʹÓà GRUB ¿ØÖÆ̨¡£ÏÖÔÚ£¬ÔÙÑо¿ÃüÁ
½«Í¨¹ýGRUB ¿ØÖÆ̨ÈƹýliloÀ´Æô¶¯RedHat linux£¬
grub> root (h
ÏÖÔÚ£¬°´Ò»´Î Tab ¼ü¡£Èç¹ûϵͳÖÐÓжà¸öÓ²ÅÌ£¬GRUB ½«ÏÔʾ¿ÉÄÜÍê³ÉµÄÁÐ±í£¬´Ó "hd0" ¿ªÊ¼¡£Èç¹ûÖ»ÓÐÒ»¸öÓ²ÅÌ£¬GRUB ½«²åÈë "hd0,"¡£Èç¹ûÓжà¸öÓ²ÅÌ£¬¼ÌÐø½øÐУ¬ÔÚ ("hd2") ÖÐÊäÈëÃû³Æ²¢ÔÚÃû³Æºó½ô¸ú×ÅÊäÈ붺ºÅ£¬µ«²»Òª°´ Enter ¼ü¡£²¿·ÖÍê³ÉµÄ root ÃüÁî¿´ÆðÀ´ÈçÏ£º
grub> root (hd0,
ÏÖÔÚ£¬¼ÌÐø²Ù×÷£¬ÔÙ°´Ò»´Î Tab ¼ü¡£GRUB ½«ÏÔʾÌض¨Ó²ÅÌÉÏËùÓзÖÇøµÄÁÐ±í£¬ÒÔ¼°ËüÃǵÄÎļþϵͳÀàÐÍ¡£ÔÚÎÒµÄϵͳÖУ¬°´ Tab ¼üʱµÃµ½ÒÔÏÂÁÐ±í£º
grub> root (hd0, (tab£¬°´tabһϼü)
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0x6
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x7
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type is fat, partition type 0xb
Partition num: 7, Filesystem type is fat, partition type 0xb
Partition num: 8, Filesystem type is ext2fs, partition type 0x83
Partition num: 9, Filesystem type unknown, partition type 0x82
ÈçÄúËù¼û£¬GRUB µÄ½»»¥Ê½Ó²Å̺ͷÖÇøÃû³ÆʵÏÖ¹¦Äܷdz£ÓÐÌõÀí¡£ÕâЩ£¬Ö»ÐèÒªºÃºÃÀí½â GRUB ÐÂÆæµÄÓ²Å̺ͷÖÇøÃüÃûÓï·¨£¬È»ºó¾Í¿ÉÒÔ¼ÌÐø²Ù×÷ÁË
grub> root (hd0,
ÏÖÔÚÒÑ°²×°ÁË root Îļþϵͳ£¬µ½×°ÈëÄں˵ÄʱºòÁË
grub> kernel /boot/vmlinuz-2.4.2 root=/dev/hda5 ro
[Linux-bzImage, setup=0x1200, size=0xe1a30]
ÄúÒѾ°²×°ÁË root Îļþϵͳ²¢×°ÈëÁËÄںˡ£ÏÖÔÚ£¬¿ÉÒÔÒýµ¼ÁË¡£Ö»ÒªÊäÈë "boot"£¬Linux Òýµ¼¹ý³Ì¾Í½«¿ªÊ¼¡£ÊDz»ÊǺÜcool°¡£¬GRUBµÄmenu.lst¸üÏñÒ»¸ölinuxϵĽű¾³ÌÐò¡£
5 ³£¼ûgrub³ý´í·½·¨µÄ˼·
Ê×ÏȽøÈ¥LinuxµÄrescueģʽ£¡
ÓÃÈíÅÌ»ò¹âÅÌÆô¶¯£¬È»ºóÔÚÆô¶¯µÄÌáʾ·ûÊäÈë:linux rescue
°´ÕÕÌáʾ½øÈëÒ»¸öShell״̬£¬Äã¿ÉÒÔµ½/mnt/ÏÂÃæ¿´µ½Ò»¸ösysimageÕâôĿ¼£¬½øÈ¥ÒԺ󣬾ÍÊÇÄã°²×°linuxµÄ/·ÖÇø.
ʹÓÃÃüÁ¸ù·ÖÇø±äΪµ±Ç°Ä¿Â¼µÄ¸ù·ÖÇø:chroot /mnt/sysimage
È»ºóתµ½/sbin/Õâ¸öĿ¼ÖÐ.
ʹÓÃfdisk -l ÏÔʾµ±Ç°·ÖÇøÇé¿ö£¬È»ºóʹÓÃ#grub-install /dev/hdx(xΪÄãʹÓõÄÊÇÄÇ¿éÓ²ÅÌ°²×°µÄ£¬Ò»°ãÇé¿öÏÂÊÇhda)
ʹÓÃexitÍƳöchroot£¬ÔÙʹÓÃexitÍ˳ölinux rescueģʽ£¬ÏµÍ³½«ÖØÐÂÆô¶¯£¡È¡³ö¹âÅÌ£¬Ó¦¸Ã¿ÉÒÔ¿´µ½grub°²×°ºÃÁË.
ÔÚ¾ßÌåµÄ»·¾³ÖУ¬±à¼/boot/grub/grub.confÎļþºÍmenu.lstÎļþ
¼ò»¯£º
1.°²×°ÅÌÆô¶¯
2.½øÈëlinux rescueģʽ
3.һϵÁмüÅÌÒÔ¼°¼¸Ïî¼òµ¥µÄÅäÖÆ£¬¹ýºó¾Í£Û¼ÌÐø£ÝÁË¡£¡£¡£Õâ¸ö¹ý³Ì£¬ÎÒ²»ËµÁË£¬±È½Ï¼òµ¥¡£
4.È»ºó»á³öÏÖÕâÑùµÄ×Ö·û
sh#
5. sh#grub
»á³öÏÖÕâÑùµÄ×Ö·û£ºgrub>ÎÒÃǾͿÉÒÔÔÚÕâÑùµÄ×Ö·ûºóÃ棬ÊäÈ룺grub>root (hdX,Y)
grub>setup (hd0)
Èç¹û³É¹¦»áÓÐÒ»¸ösuccessful......
ÕâÀïµÄX£¬Èç¹ûÊÇÒ»¸öÅÌ£¬¾ÍÊÇ0£¬Èç¹ûÄãËù°²×°µÄlinuxµÄ¸ù·ÖÇøÔÚµÚ¶þ¸öÓ²ÅÌÉÏ£¬ÄÇX¾ÍÊÇ1ÁË£»Y£¬¾ÍÊÇ×°ÓÐlinuxϵͳËùÔڵĸù·ÖÇø¡£ setup (hd0)¾ÍÊÇ°ÑGRUBдµ½Ó²Å̵ÄMBRÉÏ¡£
ÆäËû£º
grub²Ëµ¥Ïʧ£¬Ö»ÓÐ×Ö·ûgrub>ʱµÄ´¦Àí·½·¨£º
grub>cat (hd0,0) /root/grub/grub.conf(ΪÁË¿´²ÎÊý¡£)
grub>root (hd0,1)
grub>kernel (hd0,0) /boot/vmlinuz-2.4.18-11 ro root=/dev/hda2
grub>initrd (hd0,0) /boot/initrd-2.4.18-11.img
grub>boot
Èç¹û¿´²»Ã÷°×£¬¿ÉÒԲο¼ºóÃæµÄÃüÁîÂýÂý¿´£¬ÕâÀï²»×ö×¢ÊÍ£¬´Ùʹ´ó¼Òѧϰ£¬¹þ¹þ
98ÏÈ×°,ÓõÄÊǵ¥¶ÀµÄÓ²ÅÌ,4.3G,ÄÇʱºò,LINUX8»¹Ã»Óе½ÎÒÊÖÖÐ
ºóÀ´µ½ÁË,ÔÚ¼ÒÖа²×°ºÃÁË,Ñ¡ÔñGRUB,¾Í»áÓÐDOSµÄÒ»¸ö²Ëµ¥,ÎÒµÄÊÇÔÚÖ÷·ÖÇø
µ½Á˹«Ë¾,°ÑLINUX¹ÒÔÚµÚÒ»¸öÅ̵ÄλÖÃ,ÄǸöÅ̹ÒÔÚµÚËĸöÅ̵ÄλÖÃ(Õâ¸öÎÞËùν)
È»ºóGRUBÅäÖÃÈçÏÂ
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /initrd-2.4.18-14.img
title DOS
rootnoverify (hd1,0)
makeactive
chainloader (hd1,0)+1
map (hd0) (hd1)
map (hd1) (hd0)
boot
ÏÂÃæÊÇGRUBµÄ¿ÉÓÃÃüÁîÁбí:
#´ó²¿·ÖÃüÁîÎÒÃDz»³£Ó㬶øÇÒÎÒҲûÓÐÿ¸ö¶¼ÊÔÑ飡
¹ØÓÚÏÂÃ潫ҪÓõ½µÄÈýÖÖģʽµÄ½âÊÍ£º
GRUBµÄÓû§½çÃæÓÐÈýÖÖ£ºÃüÁîÐÐģʽ£¬²Ëµ¥Ä£Ê½ºÍ²Ëµ¥±à¼Ä£Ê½
¡¡¡¡£¨a£© ÃüÁîÐÐģʽ£º
¡¡¡¡½øÈëÃüÁîÐÐģʽºóGRUB»á¸ø³öÒ»¸öÃüÁîÌáʾ·û`grub>`£¬´Ëʱ¾Í¿ÉÒÔ¼üÈëÃüÁ°´»Ø³µÖ´ÐС£´ËģʽÏ¿ÉÖ´ÐеÄÃüÁîÊÇÔÚmenu.lstÖпÉÖ´ÐеÄÃüÁîµÄÒ»¸ö×Ó¼¯¡£´ËģʽÏÂÔÊÐíÀàËÆÓÚBash shellµÄÃüÁîÐб༹¦ÄÜ£º
»ò ¹â±êÓÒÒÆÒ»¸ö×Ö·û
»ò ¹â±ê×óÒÆÒ»¸ö×Ö·û
µ½ÕâÒ»ÐеĿªÍ·
»ò µ½ÐÐβ
»ò ɾ³ý¹â±ê´¦µÄ×Ö·û
»ò ɾ³ý¹â±ê×ó±ßµÄ×Ö·û
ɾ³ý¹â±êÓұߵÄËùÓÐ×Ö·û£¨°üÀ¨¹â±ê´¦µÄ×Ö·û£©
ɾ³ý¹â±ê×ó±ßµÄËùÓÐ×Ö·û£¨°üÀ¨¹â±ê´¦µÄ×Ö·û£©
»Ö¸´ÉÏ´Îɾ³ýµÄ×Ö·û´®µ½¹â±êλÖÃ
»ò ÀúÊ·¼Ç¼ÖеÄÉÏÒ»ÌõÃüÁî
»ò ÀúÊ·¼Ç¼ÖеÄÏÂÒ»ÌõÃüÁî
¡¡¡¡ÔÚÃüÁîÐÐģʽϼüÓв¹È«ÃüÁîµÄ¹¦ÄÜ£¬Èç¹ûÄãÇÃÈëÁËÃüÁîµÄÇ°Ò»²¿·Ö£¬¼üÈëϵͳ½«ÁгöËùÓпÉÄÜÒÔÄã¸ø³öµÄ×Ö·û´®¿ªÍ·µÄÃüÁî¡£Èç¹ûÄã¸ø³öÁËÃüÁÔÚÃüÁî²ÎÊýµÄλÖð´Ï¼ü£¬ÏµÍ³½«¸ø³öÕâÌõÃüÁîµÄ¿ÉÄܵIJÎÊýÁÐ±í£¬¾ßÌåµÄ¿ÉÓÃÃüÁ½«ÔÚºóÃæ¸ø³ö¡£
¡¡¡¡£¨b£© ²Ëµ¥Ä£Ê½
¡¡¡¡µ±´æÔÚÎļþ/boot/grub/menu.lstÎļþʱϵͳÆô¶¯×Ô¶¯½øÈë´Ëģʽ¡£²Ëµ¥Ä£Ê½ÏÂÓû§Ö»ÐèÒªÓÃÉÏϼýÍ·À´Ñ¡ÔñËûËùÏëÆô¶¯µÄϵͳ»òÕßÖ´ÐÐij¸öÃüÁî¿é£¬²Ëµ¥µÄ¶¨ÒåÔÚmenu.lstÎļþÖУ¬ÄãÒ²¿ÉÒԴӲ˵¥Ä£Ê½°´¼ü½øÈëÃüÁîÐÐģʽ£¬²¢ÇÒ¿ÉÒÔ°´¼ü´ÓÃüÁîÐÐģʽ·µ»Ø²Ëµ¥Ä£Ê½¡£²Ëµ¥Ä£Ê½Ï°´¼ü½«½øÈë²Ëµ¥±à¼Ä£Ê½¡£
¡¡¡¡£¨c£© ²Ëµ¥±à¼Ä£Ê½
¡¡¡¡²Ëµ¥±à¼Ä£Ê½ÓÃÀ´¶Ô²Ëµ¥Ïî½øÐб༸ı䣬Æä½çÃæºÍ²Ëµ¥Ä£Ê½µÄ½çÃæÊ®·ÖÀàËÆ£¬²»Í¬µÄÊDz˵¥ÖÐÏÔʾµÄÊǶÔӦij¸ö²Ëµ¥ÏîµÄÃüÁîÁÐ±í¡£Èç¹ûÔÚ±à¼Ä£Ê½Ï°´ÏÂ,ÔòÈ¡ÏûËùÓе±Ç°¶Ô²Ëµ¥µÄ±à¼²¢»Øµ½²Ëµ¥Ä£Ê½Ï¡£ÔÚ±à¼Ä£Ê½ÏÂÑ¡ÖÐÒ»¸öÃüÁîÐУ¬¾Í¿ÉÒÔ¶ÔÕâÌõÖ¸Áî½øÐÐÐ޸ģ¬ÐÞ¸ÄÍê±Ïºó°´Ï£¬GRUB½«ÌáʾÄãÈ·Èϲ¢Íê³ÉÐ޸ġ£Èç¹ûÄãÏëÔÚµ±Ç°ÃüÁîÁбíÖÐÔö¼ÓÒ»ÌõÃüÁ°´ÔÚµ±Ç°ÃüÁîµÄÏÂÃæÔö¼ÓÒ»ÌõÖ¸Á°´ÔÚµ±Ç°ÃüÁîÇ°´¦Ôö¼ÓÒ»ÌõÖ¸Áî¡£°´É¾³ýÒ»ÌõÖ¸Áî¡£
½öÓÃÓڲ˵¥µÄÃüÁ²»°üÀ¨²Ëµ¥ÏîÄÚ²¿µÄÆô¶¯ÃüÁ
default num
ÉèÖò˵¥ÖеÄĬÈÏÑ¡ÏîΪnum£¨Ä¬ÈÏΪ0,¼´µÚÒ»¸öÑ¡Ï£¬³¬Ê±½«Æô¶¯Õâ¸öÑ¡Ïî
fallback num
Èç¹ûĬÈϲ˵¥ÏîÆô¶¯Ê§°Ü£¬½«Æô¶¯Õâ¸önumºóԮѡÏî¡£
password passwd new-config-file
¹Ø±ÕÃüÁîÐÐģʽºÍ²Ëµ¥±à¼Ä£Ê½£¬ÒªÇóÊäÈë¿ÚÁÈç¹û¿ÚÁîÊäÈëÕýÈ·£¬½«Ê¹ÓÃnew-config£file
×÷ΪеÄÅäÖÃÎļþ´úÌæmenu.lst£¬²¢¼ÌÐøÒýµ¼¡£
timeout sec
ÉèÖó¬Ê±£¬½«ÔÚsecÃëºó×Ô¶¯Æô¶¯Ä¬ÈÏÑ¡Ïî¡£
title name ...
¿ªÊ¼Ò»¸öеIJ˵¥Ï²¢ÒÔtitleºóµÄ×Ö´®×÷ΪÏÔʾµÄ²Ëµ¥Ãû¡£
Ôڲ˵¥£¨²»°üÀ¨²Ëµ¥ÏîÄÚ²¿µÄÃüÁºÍÃüÁîÐз½Ê½Ï¶¼¿ÉÓõÄÃüÁî
bootp
ÒÔBOOTPÐÒé³õʼ»¯ÍøÂçÉ豸
color normal [highlight]
¸Ä±ä²Ëµ¥µÄÑÕÉ«£¬normalÊÇÓÃÓÚÖ¸¶¨²Ëµ¥Öзǵ±Ç°Ñ¡ÏîµÄÐеÄÑÕÉ«£¬highlightÊÇÓÃÓÚÖ¸¶¨µ±Ç°²Ëµ¥Ñ¡ÏîµÄÑÕÉ«¡£Èç¹û²»Ö¸¶¨highlight£¬GRUB½«Ê¹ÓÃnormalµÄ·´É«À´×÷ΪhighlightÑÕÉ«¡£Ö¸¶¨ÑÕÉ«µÄ¸ñʽÊÇ¡°Ç°¾°É«/±³¾°É«¡±£¬Ç°¾°É«ºÍ±³¾°É«µÄ¿ÉÑ¡ÁбíÈçÏ£º
* black
* blue
* green
* cyan
* red
* magenta
* brown
* light-gray
ÏÂÃæµÄÑÕÉ«Ö»ÄÜÓÃÓÚ±³¾°É«
* dark-gray
* light-blue
* light-green
* light-cyan
* light-red
* light-magenta
* yellow
* white
Äã¿ÉÒÔÔÚÇ°¾°É«Ç°¼ÓÉÏǰ׺"blink-",²úÉúÉÁ˸Ч¹û£¬Äã¿ÉÒÔÔÚmenu.lstÖмÓÉÏÏÂÃæÕâ¸öÑ¡ÏîÀ´¸Ä±äÑÕɫЧ¹û£º
title OS-BS like
color magenta/blue black/magenta
device drive file
ÔÚGRUBÃüÁîÐÐÖУ¬°ÑBIOSÖеÄÒ»¸öÇý¶¯Æ÷driveÓ³Éäµ½Ò»¸öÎļþfile¡£Äã¿ÉÒÔÓÃÕâÌõÃüÁî´´½¨Ò»¸ö´ÅÅÌÓ³Ïó»òÕßµ±GRUB²»ÄÜÕæÈ·µØÅжÏÇý¶¯Æ÷ʱ½øÐоÀÕý¡£ÈçÏÂ
grub> device (fd0) /floppy-image
grub> device (hd0) /dev/sd0
ÕâÌõÃüÁîÖ»ÄÜÔÚÃüÁîÐз½Ê½ÏÂʹÓ㬠ÊǸöÀýÍâ¡£
dhcp
ÓÃDHCPÐÒé³õʼ»¯ÍøÂçÉ豸¡£Ä¿Ç°¶øÑÔ£¬ÕâÌõÖ¸ÁîÆäʵ¾ÍÊÇbootpµÄ±ðÃû£¬Ð§¹ûºÍbootpÒ»Ñù¡£
hide partition
ÕâÌõÖ¸Áî½ö½ö¶ÔDOSºÍWINDOWSÓÐÓ㬵±ÔÚÒ»¸öÓ²ÅÌÉÏ´æÔÚ¶à¸öDOS/WINµÄÖ÷·ÖÇøʱ£¬ÓÐʱÐèÒªÕâÌõÖ¸ÁîÒþ²ØÆäÖеÄÒ»¸ö»ò¼¸¸ö·ÖÇø£¬¼´ÔÚ·ÖÇø±íÖÐÉèÖá°Òþ²Ø¡±Î»¡£
rarp
ÓÃRARPÐÒé³õʼ»¯ÍøÂçÉ豸¡£
setkey to_key from_key
¸Ä±ä¼üÅ̵ÄÓ³Éä±í£¬½«from_keyÓ³Éäµ½to_key,×¢ÒâÕâÌõÖ¸Áî²¢²»Êǽ»»»¼üÓ³É䣬Èç¹ûÄãÒª½»»»Á½¸ö¼üµÄÓ³É䣬ÐèÒªÓÃÁ½´ÎsetkeyÖ¸Áî,ÈçÏ£º
grub> setkey capslock control
grub> setkey control capslock
ÆäÖеļü±ØÐëÊÇ×Öĸ£¬Êý×Ö»òÕßÏÂÃæµÄһЩ´ú±íijһ¼üµÄ×Ö·û´®£º
`escape, `exclam, `at, `numbersign, `dollar, `percent,
`caret, `ampersand, `asterisk, `parenleft, `parenright,
`minus, `underscore, `equal, `plus, `backspace, `tab,
`bracketleft, `braceleft, `bracketright, `braceright, `enter,
`control, `semicolon, `colon, `quote, `doublequote,
`backquote, `tilde, `shift, `backslash, `bar, `comma,
`less, `period, `greater, `slash, `question, `alt, `space,
`capslock, `FX (`X is a digit), and `delete.
ÏÂÃæ¸ø³öÁËËüÃǺͼüÅÌÉϵļüµÄ¶ÔÓ¦¹Øϵ£º
`exclam£½`!
`at£½`@
`numbersign£½`#
`dollar£½`$
`percent£½`%
`caret£½`^
`ampersand£½`&
`asterisk£½`*
`parenleft£½`(
`parenright£½`)
`minus£½`-
`underscore£½`_
`equal£½`=
`plus£½`+
`bracketleft£½`[
`braceleft£½`{
`bracketright£½`]
`braceright£½`}
`semicolon£½`;
`colon£½`:
`quote£½`
`doublequote£½`"
`backquote£½``
`tilde£½`~
`backslash£½`
`bar£½`|
`comma£½`,
`less£½`
`slash£½`/
`question£½`?
`space£½`
unhide partition
½ö½ö¶ÔDOS/WIN·ÖÇøÓÐЧ£¬Çå³ý·ÖÇø±íÖеġ°Òþ²Ø¡±Î»¡£
½öÓÃÓÚÃüÁîÐз½Ê½»òÕ߲˵¥ÏîÄÚ²¿µÄÃüÁî
blocklist file
ÏÔʾÎļþfileÔÚËùÕ¼´ÅÅÌ¿éµÄÁÐ±í¡£
boot
½öÔÚÃüÁîÐÐģʽÏÂÐèÒª£¬µ±²ÎÊý¶¼É趨Íê³Éºó£¬ÓÃÕâÌõÖ¸ÁîÆô¶¯²Ù×÷ϵͳ
cat file
ÏÔʾÎļþfileµÄÄÚÈÝ£¬¿ÉÒÔÓÃÀ´µÃµ½Ä³¸ö²Ù×÷ϵͳµÄ¸ùÎļþϵͳËùÔڵķÖÇø£¬ÈçÏ£º
grub> cat /etc/fstab
chainloader [`--force] file
°Ñfile×°ÈëÄÚ´æ½øÐÐchainload,³ýÁËÄܹ»Í¨¹ýÎļþϵͳµÃµ½ÎļþÍ⣬ÕâÌõÖ¸ÁîÒ²¿ÉÒÔÓôÅÅÌ¿éÁбíµÄ·½Ê½¶ÁÈë´ÅÅÌÖеÄÊý¾Ý¿é£¬Èç+1`Ö¸¶¨´Óµ±Ç°·ÖÇø¶Á³öµÚÒ»¸öÉÈÇø½øÐÐÒýµ¼¡£Èç¹ûÖ¸¶¨ÁË`--force`²ÎÊý£¬ÔòÎÞÂÛÎļþÊÇ·ñÓкϷ¨µÄÇ©Ãû¶¼Ç¿ÆȶÁÈ룬µ±ÄãÔÚÒýµ¼SCO UnixWareʱÐèÒªÓÃÕâ¸ö²ÎÊý¡£
cmp file1 file2
±È½ÏÎļþµÄÄÚÈÝ£¬Èç¹ûÎļþ´óС²»Ò»Ö£¬ÔòÊä³öÁ½¸öÎļþµÄ´óС£¬ÈçÏ£º
Differ in size: 0x1234 [foo], 0x4321 [bar]
Èç¹ûÁ½¸öÎļþµÄ´óСһÖµ«ÊÇÔÚij¸öλÖÃÉϵÄ×Ö½Ú²»Í¬£¬Ôò´òÓ¡³ö²»Í¬µÄ×Ö½ÚºÍËûÃǵÄλÒÆ£º
Differ at the offset 777: 0xbe [foo], 0xef [bar]
Èç¹ûÁ½¸öÎļþÍêÈ«Ò»Ö£¬Ôòʲô¶¼²»Êä³ö¡£
configfile FILE
½«FILE×÷ΪÅäÖÃÎļþÌæ´úmenu.lst¡£
embed stage1_5 device
Èç¹ûdeviceÊÇÒ»¸ö´ÅÅÌÉ豸µÄ»°£¬½«Stage1_5×°Èë½ô¿¿MBRµÄÉÈÇøÄÚ¡£Èç¹ûdeviceÊÇÒ»¸öFFSÎļþϵͳ·ÖÇøµÄ»°£¬Ôò½«Stage1_5×°Èë´Ë·ÖÇøµÄµÚÒ»ÉÈÇø¡£Èç¹û×°Èë³É¹¦µÄ»°£¬Êä³öдÈëµÄÉÈÇøÊý¡£
displaymem
ÏÔʾ³öϵͳËùÓÐÄÚ´æµÄµØÖ·¿Õ¼ä·Ö²¼Í¼¡£
find filename
ÔÚËùÓеķÖÇøÖÐÑ°ÕÒÖ¸¶¨µÄÎļþfilename£¬Êä³öËùÓаüº¬Õâ¸öÎļþµÄ·ÖÇøÃû¡£²ÎÊýfilenameÓ¦¸Ã¸ø³ö¾ø¶Ô·¾¶¡£
fstest
Æô¶¯Îļþϵͳ²âÊÔģʽ¡£´ò¿ªÕâ¸öģʽºó£¬Ã¿µ±ÓжÁÉ豸ÇëÇóʱ£¬Êä³öÏòµ×²ãÀý³Ì¶ÁÇëÇóµÄ²ÎÊýºÍËùÓжÁ³öµÄÊý¾Ý¡£Êä³ö¸ñʽÈçÏ£º
ÏÈÊÇÓɸ߲ã³ÌÐò·¢³öµÄ·ÖÇøÄڵĶÁÇëÇó£¬Êä³ö£ºÖ®ºóÓɵײã³ÌÐò·¢³öµÄÉÈÇø¶ÁÇëÇó£¬Êä³ö£º[´ÅÅ̾ø¶ÔÉÈÇøÆ«ÒÆ] ¿ÉÒÔÓÃinstall»òÕßtestloadÃüÁî¹Ø±ÕÎļþϵͳ²âÊÔģʽ¡£
geometry drive [cylinder head sector [total_sector]]
Êä³öÇý¶¯Æ÷driveµÄÐÅÏ¢¡£
help [pattern ...]
ÔÚÏßÃüÁî°ïÖú£¬Áгö·ûºÏpatternµÄÃüÁîÁÐ±í£¬Èç¹û²»¸ø³ö²ÎÊý£¬Ôò½«ÏÔʾËùÓеÄÃüÁîÁÐ±í¡£
impsprobe
¼ì²âIntel¶à´¦ÀíÆ÷£¬Æô¶¯²¢ÅäÖÃÕÒµ½µÄËùÓÐCPU¡£
initrd file ...
ΪLinux¸ñʽµÄÆô¶¯Ó³Ïó×°Ôسõʼ»¯µÄramdisk£¬²¢ÇÒÔÚÄÚ´æÖеÄLinux setup areaÖÐÉèÖÃÊʵ±µÄ²ÎÊý¡£
install stage1_file [`d] dest_dev stage2_file [addr] [`p] [config_file] [real_config_file]
ÕâÊÇÓÃÀ´ÍêÈ«°²×°GRUBÆô¶¯¿éµÄÃüÁһ°ãºÜÉÙÓõ½¡£
ioprobe drive
̽²âÇý¶¯Æ÷driveËùʹÓõÄI/O¿Ú£¬ÕâÌõÃüÁ»áÁгöËùÓÐdirveʹÓõÄI/O¿Ú¡£
kernel file ...
×°ÔØÄÚºËÓ³ÏóÎļþ(Èç·ûºÏMultibootµÄa.out,ELF,Linux zImage»òbzImage,FreeBSD a.out£¬NetBSD
a.outµÈµÈ£©¡£ÎļþÃûfileºó¿É¸úÄÚºËÆô¶¯Ê±ËùÐèÒªµÄ²ÎÊý¡£Èç¹ûʹÓÃÁËÕâÌõÖ¸ÁîËùÓÐÒÔÇ°×°ÔصÄÄ£¿é¶¼ÒªÖØÐÂ×°ÔØ¡£
makeactive
ʹµ±Ç°µÄ·ÖÇø³ÉΪ»îÔ¾·ÖÇø£¬ÕâÌõÖ¸ÁîµÄ¶ÔÏóÖ»ÄÜÊÇPCÉϵÄÖ÷·ÖÇø£¬²»ÄÜÊÇÀ©Õ¹·ÖÇø¡£
map to_drive from_drive
Ó³ÉäÇý¶¯Æ÷from_driveµ½to_drive¡£ÕâÌõÖ¸Áîµ±ÄãÔÚchainloadһЩ²Ù×÷ϵͳµÄʱºò¿ÉÄÜÊDZØÐëµÄ£¬ÕâЩ²Ù×÷ϵͳÈç¹û²»ÊÇÔÚµÚÒ»¸öÓ²ÅÌÉÏ¿ÉÄܲ»ÄÜÕý³£Æô¶¯£¬ËùÒÔÐèÒª½øÐÐÓ³Éä¡£ÈçÏ£º
grub> map (hd0) (hd1)
grub> map (hd1) (hd0)
Õâ¸ö¾ÍÓÃÀ´¶Ô¸¶Ë«Ó²ÅÌ×î¹ýñ«£¡£¡£¡¹þ¹þ
module file ...
¶ÔÓÚ·ûºÏMultiboot¹æ·¶µÄ²Ù×÷ϵͳ¿ÉÒÔÓÃÕâÌõÖ¸ÁîÀ´×°ÔØÄ£¿éÎļþfile£¬fileºó¿ÉÒÔ¸úÕâ¸ömoduleËùÐèÒªµÄ²ÎÊý¡£×¢Ò⣬±ØÐëÏÈ×°ÔØÄںˣ¬ÔÙ×°ÔØÄ£¿é£¬·ñÔò×°ÔصÄÄ£¿éÎÞЧ¡£
modulenounzip file ...
ͬmoduleÃüÁºõÒ»Ñù£¬Î¨Ò»µÄÇø±ðÊDz»¶ÔmoduleÎļþ½øÐÐ×Ô¶¯½âѹ¡£
pause message ...
Êä³ö×Ö·û´®message£¬µÈ´ýÓû§°´ÈÎÒâ¼ü¼ÌÐø¡£Äã¿ÉÒÔÓÃ(ASCIIÂë007)ʹPCÀ®°È·¢ÉùÌáÐÑÓû§×¢Òâ¡£
quit
Í˳öGRUB shell£¬GRUB shellÀàËÆÓÚÆô¶¯Ê±µÄÃüÁîÐÐģʽ£¬Ö»ÊÇËüÊÇÔÚÓû§Æô¶¯ÏµÍ³ºóÖ´ÐÐ/sbin/grub²Å
½øÈ룬Á½Õß²î±ð²»´ó¡£
read addr
´ÓÄÚ´æµÄµØÖ·addr´¦¶Á³ö32λµÄÖµ²¢ÒÔÊ®Áù½øÖÆÏÔʾ³öÀ´¡£
root device [hdbias]
½«µ±Ç°¸ùÉ豸ÉèΪdevice£¬²¢ÇÒÊÔͼmountÕâ¸ö¸ùÉ豸µÃµ½·ÖÇø´óС¡£hdbias²ÎÊýÊÇÓÃÀ´¸æËßBSDÄÚºËÔÚµ±Ç°·ÖÇøËùÔÚ´ÅÅ̵ÄÇ°Ã滹ÓжàÉÙ¸öBIOS´ÅÅ̱àºÅ¡£ÀýÈ磬ϵͳÓÐÒ»¸öIDEÓ²Å̺ÍÒ»¸öSCSIÓ²ÅÌ£¬¶øÄãµÄBSD°²×°ÔÚIDEÓ²ÅÌÉÏ£¬´Ëʱ£¬Äã¾ÍÐèÒªÖ¸¶¨hdbias²ÎÊýΪ1¡£
rootnoverify device [hdbias]
ºÍrootÀàËÆ£¬µ«ÊDz»mount¸ÃÉ豸¡£Õâ¸öÃüÁîÓÃÔÚµ±GRUB²»ÄÜʶ±ðij¸öÓ²ÅÌÎļþϵͳ£¬µ«ÊÇÈÔÈ»±ØÐëÖ¸¶¨¸ùÉ豸¡£
setup install_device [image_device]
°²×°GRUBÒýµ¼ÔÚinstall_deviceÉÏ¡£ÕâÌõÖ¸Áîʵ¼ÊÉϵ÷ÓõÄÊǸü¼ÓÁé»îµ«ÊǸ´ÔÓµÄinstallÖ¸Áî¡£Èç¹û
image_deviceÒ²Ö¸¶¨Á˵Ļ°£¬Ôò½«ÔÚimage_deviceÖÐÑ°ÕÒGRUBµÄÎļþÓ³Ï󣬷ñÔòÔÚµ±Ç°¸ùÉ豸ÖвéÕÒ¡£
testload file
ÕâÌõÖ¸ÁîÊÇÓÃÀ´²âÊÔÎļþϵͳ´úÂëµÄ£¬ËüÒÔ²»Í¬µÄ·½Ê½¶ÁÈ¡ÎļþfileµÄÄÚÈÝ£¬²¢½«µÃµ½µÄ½á¹û½øÐбȽϣ¬Èç¹ûÕýÈ·µÄ»°£¬Êä³öµÄ`i=X,filepos=Y`ÖеÄX,YµÄÖµÓ¦¸ÃÏàµÈ£¬·ñÔò¾Í˵Ã÷ÓдíÎó¡£Í¨³£ÕâÌõÖ¸ÁîÕýÈ·Ö´ÐеĻ°£¬Ö®ºóÎÒÃǾͿÉÒÔÕýÈ·ÎÞÎóµØ×°ÔØÄںˡ£
uppermem kbytes
Ç¿ÆÈGRBUÈÏΪ¸ß¶ËÄÚ´æÖ»ÓÐkbytesǧ×Ö½ÚµÄÄڴ棬GRUB×Ô¶¯Ì½²âµ½µÄ½á¹û½«±äµÃÎÞЧ¡£ÕâÌõÖ¸ÁîºÜÉÙʹÓ㬿ÉÄÜÖ»ÔÚһЩ¹ÅÀϵĻúÆ÷ÉϲÅÓбØÒª¡£Í¨³£GRUB¶¼Äܹ»ÕýÈ·µØµÃµ½ÏµÍ³µÄÄÚ´æÊýÁ¿¡£
ÆäÖд󲿷ÖÃüÁîÎÒÃDz»³£Ó㬽¨ÒéÔÚÊÔÑéµÄʱºò£¬×öºÃÏàÓ¦µÄ×¼±¸ºÍ±¸·Ý¹¤×÷
lbing2002 ÓÚ 2009-06-13 22:47:07·¢±í:
¸Ðл¥Ö÷°¡