Òªº¦ÐÔµÄLinux MBR£ºÈ·±£ÏµÍ³Õý³£Æô¶¯
Linux MBRÊÇÖ¸²Ù×÷ϵͳÖеÄÖ÷Ö¸µ¼¼Í¼£¨Master Boot Record£©£¬ÊÇ°ü¹ÜϵͳÕý³£Æô¶¯µÄÒªº¦ËùÔÚ¡£MBRͨ³£Î»ÓÚÓ²Å̵ĵÚÒ»¸öÉÈÇø£¨ÉÈÇøºÅΪ0£©£¬Ëü°üÀ¨ÁËÖ¸µ¼¼ÓÔسÌÐòºÍ·ÖÇø±íµÈÒªº¦ÐÅÏ¢¡£ÈôÊÇMBRÊÜËð»ò±»ÆÆËð£¬ÏµÍ³½«ÎÞ·¨Õý³£Æô¶¯¡£Òò´Ë£¬ÏàʶMBRµÄÊÂÇéÔÀí²¢Ñ§»áÐÞ¸´ËüÊǺÜÊÇÖ÷ÒªµÄ¡£
ÔÚLinuxϵͳÏ£¬ÐÞ¸´MBRͨ³£»áʹÓÃһЩ¹¤¾ßºÍÏÂÁÏÂÃ潫ÏÈÈÝһЩ³£ÓõÄÒªÁìºÍ´úÂëʾÀý¡£
Ò»¡¢Ê¹ÓÃfdisk¹¤¾ßÉó²éºÍ±à¼MBR
fdiskÊÇÒ»¸öLinuxϳ£ÓõĴÅÅÌ·ÖÇø¹¤¾ß£¬Ò²¿ÉÒÔÓÃÀ´Éó²éºÍ±à¼MBR¡£Í¨¹ýfdiskÏÂÁî¿ÉÒÔÉó²éÄ¿½ñϵͳµÄ·ÖÇø±íºÍMBRÐÅÏ¢£¬ÒÔ¼°Ð޸ķÖÇøÐÅÏ¢¡£
·¿ªÖնˣ¬ÊäÈëÒÔÏÂÏÂÁîÀ´Éó²éÓ²Å̵ķÖÇø±íºÍMBRÐÅÏ¢£º
sudo fdisk -l /dev/sda
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬/dev/sdaÌåÏÖÒªÉó²éµÄÓ²ÅÌ×°±¸£¬¿ÉÒÔƾ֤ÏêϸÇéÐÎÌ滻ΪÆäËû×°±¸Â·¾¶¡£
ÈôÊÇÐèÒª±à¼MBRÐÅÏ¢£¬¿ÉÒÔʹÓÃfdiskÏÂÁîÀ´Ð޸ģ¬µ«Çë×¢ÖزÙ×÷ʱҪÉóÉ÷£¬ÒÔÃâÔì³ÉÊý¾Ýɥʧ¡£
¶þ¡¢Ê¹ÓÃddÏÂÁ·ÝºÍ»Ö¸´MBR
ddÏÂÁîÊÇÒ»¸öLinuxÏÂÓÃÓÚÊý¾Ý´«ÊäºÍת»»µÄ¹¤¾ß£¬Ò²¿ÉÒÔÓÃÀ´±¸·ÝºÍ»Ö¸´MBR¡£Í¨¹ýddÏÂÁî¿ÉÒÔ½«MBRÊý¾Ý¸´ÖƵ½Ò»¸öÎļþÖУ¬ÒÔ±ãÔÚÐèҪʱ¾ÙÐлָ´¡£
±¸·ÝMBRµÄÏÂÁîÈçÏ£º
sudo dd if=/dev/sda of=mbr_backup.bin bs=512 count=1
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬ifÌåÏÖÊäÈëÎļþ£¨¼´MBRËùÔÚµÄÓ²ÅÌ×°±¸£©£¬ofÌåÏÖÊä³öÎļþ£¨±¸·ÝµÄÎļþÃû£©£¬bsÌåÏÖÿ´Î¶ÁдµÄ×Ö½ÚÊý£¬countÌåÏÖÒª¶ÁÈ¡µÄ¿éÊý¡£
»Ö¸´MBRµÄÏÂÁîÈçÏ£º
sudo dd if=mbr_backup.bin of=/dev/sda bs=512 count=1
µÇ¼ºó¸´ÖÆ
ÕâÑù¾Í¿ÉÒÔ½«±¸·ÝµÄMBRÊý¾Ý»Ö¸´µ½Ó²Å̵ÄMBRλÖá£
Èý¡¢Ê¹ÓÃgrubÐÞ¸´MBR
GRUB£¨GRand Unified Bootloader£©ÊÇLinuxϵͳÖг£ÓõÄÖ¸µ¼¼ÓÔسÌÐò£¬¿ÉÒÔÓÃÀ´ÐÞ¸´MBR¡£ÈôÊÇMBRÊÜËðµ¼ÖÂϵͳÎÞ·¨Õý³£Æô¶¯£¬¿ÉÒÔͨ¹ýGRUBÀ´ÐÞ¸´¡£
Ê×ÏÈ£¬ÐèҪʹÓÃLive CD»òLive USBÆô¶¯Linuxϵͳ£¬È»ºó·¿ªÖÕ¶ËÖ´ÐÐÒÔÏÂÏÂÁ
sudo grub
µÇ¼ºó¸´ÖÆ
½øÈëGRUBÏÂÁîÐкó£¬Ö´ÐÐÒÔÏÂÏÂÁîÀ´ÐÞ¸´MBR£º
grub> root (hd0,0) grub> setup (hd0) grub> quit
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬(hd0,0)ÌåÏÖµÚÒ»¸öÓ²Å̵ĵÚÒ»¸ö·ÖÇø£¬¿ÉÒÔƾ֤ÏÖÕæÏàÐÎÐ޸ġ£ÉÏÊöÏÂÁÖØÐÂ×°ÖÃGRUBÖ¸µ¼¼ÓÔسÌÐòµ½MBRÖУ¬ÐÞ¸´Æô¶¯ÎÊÌâ¡£
×ܽ᣺Linux MBRÊÇϵͳÕý³£Æô¶¯µÄÒªº¦ËùÔÚ£¬ÏàʶMBRµÄÖ÷ÒªÐÔ²¢Ñ§»áÐÞ¸´ËüÊÇά»¤ÏµÍ³ÎȹÌÐÔµÄÒªº¦°ì·¨¡£Í¨¹ý¹¤¾ßºÍÏÂÁî¶ÔMBR¾ÙÐб¸·ÝºÍ»Ö¸´£¬¿ÉÒÔ°ü¹ÜϵͳµÄÆô¶¯Õý³£ÐÔ£¬Í¬Ê±Ò²Ìá¸ßÁËϵͳµÄÇå¾²ÐԺͿɿ¿ÐÔ¡£
ÒÔÉϾÍÊÇÒªº¦ÐÔµÄLinux MBR£ºÈ·±£ÏµÍ³Õý³£Æô¶¯µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡