ÏàʶLinuxÖ÷Ö¸µ¼¼Í¼£¨MBR£©µÄ¹¦Ð§ºÍÓ°Ïì
ÎÊÌ⣺ÉîÈë̽ÌÖ£ºÃ÷È·Linux MBRµÄ×÷Óü°ÆäÓ°Ïì
ÔÚÅÌËã»úÁìÓò£¬MBR£¨Master Boot Record£©ÊÇÒ»¿éºÜÊÇÖ÷ÒªµÄ´æ´¢ÇøÓò£¬Í¨³£Î»ÓÚÓ²Å̵ĵÚÒ»¸öÉÈÇø¡£MBRÖд洢×ÅÖ¸µ¼¼ÓÔسÌÐò£¨Boot Loader£©£¬ÈÏÕ潫²Ù×÷ϵͳ¼ÓÔؽøÄڴ棬´Ó¶øÖ¸µ¼ÅÌËã»úÕý³£Æô¶¯¡£¹ØÓÚLinuxϵͳÀ´Ëµ£¬MBRͬÑùÊÎÑÝ×ÅÖ÷ÒªµÄ½ÇÉ«£¬±¾ÎĽ«ÉîÈë̽ÌÖLinux MBRµÄ×÷Óü°ÆäÓ°Ï죬²¢ÌṩÏêϸµÄ´úÂëʾÀý¡£
Ò»¡¢MBRµÄ×÷ÓÃ
Ö¸µ¼¼ÓÔسÌÐò
MBRÖд洢µÄÖ¸µ¼¼ÓÔسÌÐòÄܹ»Ê¶±ðÓ²ÅÌ·ÖÇø±í£¬²¢½«²Ù×÷ϵͳ¼ÓÔØÖÁÄÚ´æÖÐÖ´ÐС£LinuxϵͳµÄÖ¸µ¼¼ÓÔسÌÐòͨ³£ÊÇGRUB£¨Grand Unified Bootloader£©£¬ËüÄܹ»Ê¶±ðÖÖÖÖÎļþϵͳÀàÐͲ¢Ñ¡Ôñ׼ȷµÄÄں˾ÙÐÐÖ¸µ¼¡£
Ó²ÅÌ·ÖÇøÐÅÏ¢
MBRÖл¹´æ´¢×ÅÓ²Å̵ķÖÇø±íÐÅÏ¢£¬°üÀ¨Ö÷·ÖÇø¡¢À©Õ¹·ÖÇøµÈ¡£ÕâЩÐÅÏ¢¶ÔϵͳµÄ´æ´¢ÖÎÀíÖÁ¹ØÖ÷Òª£¬Í¨¹ýMBRÄܹ»×¼È·Ñ°ÕÒ²¢¼ÓÔزÙ×÷ϵͳµÄ·ÖÇø¡£
Æô¶¯Ó²ÅÌÇý¶¯
MBRÖл¹°üÀ¨Ò»¶Î´úÂëÓÃÀ´Æô¶¯Ó²ÅÌÇý¶¯£¬È·±£ÏµÍ³Äܹ»Õý³£»á¼ûÓ²Å̲¢¼ÓÔØÖ¸µ¼¼ÓÔسÌÐò¡£
¶þ¡¢MBRµÄÓ°Ïì
Ö¸µ¼Ê§°Ü
ÈôÊÇMBRÊÜËð»ò±»ÆÆËð£¬ÅÌËã»ú½«ÎÞ·¨Õý³£Æô¶¯¡£Õâ»áµ¼ÖÂϵͳÎÞ·¨Ö¸µ¼£¬Óû§½«ÎÞ·¨½øÈë²Ù×÷ϵͳ¡£Òò´Ë£¬±£»¤MBRµÄÍêÕûÐÔ¶ÔϵͳµÄÕý³£ÔËÐÐÖÁ¹ØÖ÷Òª¡£
Êý¾Ýɥʧ
ÔÚijЩÇéÐÎÏ£¬ÈôÊÇMBRÊÜËð£¬Ó²Å̵ķÖÇøÐÅÏ¢¿ÉÄÜ»áɥʧ£¬µ¼ÖÂÊý¾ÝÎÞ·¨±»×¼È·»á¼û¡£Õ⽫¸øÓû§´øÀ´ÑÏÖصÄÊý¾ÝɥʧÎÊÌ⣬Òò´Ëʵʱ±¸·ÝÖ÷ÒªÊý¾ÝÊǺÜÖ÷ÒªµÄ¡£
Èý¡¢´úÂëʾÀý
ÏÂÃæ¸ø³öÒ»¸ö¼òÆӵĴúÂëʾÀý£¬ÑÝʾÔõÑùͨ¹ýLinuxϵͳµÄÏÂÁîÐÐÉó²éMBRµÄÄÚÈÝ£º
·¿ªÖնˣ¨Terminal£©¡£
ʹÓÃÒÔÏÂÏÂÁîÉó²éÓ²Å̵ÄMBRÐÅÏ¢£º
sudo dd if=/dev/sda of=mbr.bin bs=512 count=1
µÇ¼ºó¸´ÖÆ
ÕâÌõÏÂÁî»á½«Ó²ÅÌ/dev/sdaµÄµÚÒ»¸öÉÈÇø£¨¼´MBR£©µÄÄÚÈݸ´ÖƵ½Ä¿½ñĿ¼ÏµÄmbr.binÎļþÖС£
ʹÓÃhexdumpÏÂÁîÉó²émbr.binÎļþµÄÄÚÈÝ£º
hexdump -C mbr.bin
µÇ¼ºó¸´ÖÆ
Õ⽫ÒÔÊ®Áù½øÖÆÐÎʽÏÔʾMBRµÄÄÚÈÝ£¬°üÀ¨·ÖÇø±íÐÅÏ¢¡¢Ö¸µ¼¼ÓÔسÌÐòµÈ¡£
ͨ¹ýÒÔÉÏ´úÂëʾÀý£¬ÎÒÃÇ¿ÉÒÔÏÖʵÉó²é²¢Ã÷È·MBR´æ´¢µÄÄÚÈÝ£¬Ô½·¢ÉîÈëµØÏàʶLinuxϵͳÖÐMBRµÄ×÷Óü°ÆäÓ°Ïì¡£
×ܽ᣺MBR¹ØÓÚLinuxϵͳµÄÕý³£Ö¸µ¼ºÍÊý¾Ý´æ´¢ÖÁ¹ØÖ÷Òª£¬Óû§Ó¦¸Ãʱ¿Ì±£»¤ºÃMBRµÄÍêÕûÐÔ£¬ÒÔ×èֹϵͳ¹ÊÕϺÍÊý¾Ýɥʧ¡£Í¨¹ýÏàʶMBRµÄ×÷Óü°Ó°Ï죬¿ÉÒÔ¸üºÃµØά»¤ºÍÖÎÀíLinuxϵͳ£¬È·±£ÏµÍ³µÄÎȹÌÐÔºÍÇå¾²ÐÔ¡£
ÒÔÉϾÍÊÇÏàʶLinuxÖ÷Ö¸µ¼¼Í¼£¨MBR£©µÄ¹¦Ð§ºÍÓ°ÏìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡