Cool Solutions

Restore GRUB


January 9, 2009 9:00 am





Sometimes GRUB may be lost due to a fresh Windows install or some other reason. Below is a quick step guide to restore GRUB.

Step 1: Boot your system with a Linux live CD

Step 2: Open a terminal and run the following command to get in to the GRUB command mode:

sudo grub

Step 3: Now to find the partition that has the GRUB boot loader run:

find /boot/grub/stage1

Step 4: From step 3 we will know the partition that has grub boot loader.


replace # with the partition returned by step 3.

Step 5: Run the following command to install grub on the MBR(Master Boot Record) of the first drive.

setup (hd0)


If you want to install it into the boot sector of a partition instead of MBR run the following command:

setup (hd0,#)

replace # with partition

Step 6: To quit the grub command line mode run:


Now reboot the system to find GRUB restored.

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized


Disclaimer: This content is not supported by Micro Focus. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

1 Comment

  1. By:jesus_cruz


    All perfect!! Now I have my Superb Grub back after a Windows Upgrade!!

    Just instead of root(hd#,#) must be root (hd#,#) (with space).

    Thanx & Best Regards!!