How to resotre MBR for GRUB?

21 Aug

There are several reasons that you would like to fix your Master Boot Record (MBR). And may be one of those is same as mine, overwritten by Microsoft Windows during re-installation.


  1. Boot from CD/DVD and get into rescue mode of find a Linux live CD
  2. Check grub.conf, usually is in /boot/grub or /grub, depends on distribution.
     hiddenmenutitle Fedora (
     root (hd0,5)  kernel /boot/vmlinuz- ro root=LABEL=/ rhgb quiet  initrd /boot/initrd-   title Microsoft Windows XP  rootnoverify (hd0,0)  chainloader +1
  3. Write to MBR
    First, get into GRUB shell

      [user@computer ~]$ grub  

    Then you have to find which partition is installed with your “grub” directory, if you don’t konw:

     grub> find /boot/grub/stage1


Leave a comment

Posted by on August 21, 2008 in Boot, GRUB, MBR


Tags: , ,

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: