Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

Ubuntu

How to restore the Ubuntu grub bootloader (9.04 and older)?

How to restore the Ubuntu grub bootloader (9.04 and older)?

First of all, all credit for this part of the tutorial goes to catlet. I am simply rewriting his tutorial to have all three bootloaders in this tutorial.

So, lets begin. To restore the grub, you must boot off the ubuntu live cd. Any ubuntu live cd will do.

Once there, open a terminal (Applications>Accessories>Terminal) and type this:

Code:
sudo grub

Next, you need to find which hard drive ubuntu and the grub is installed to. You do this by running this command:

Code:
find /boot/grub/stage1

Take note of what it returns (something like (hd0,1).)

Now you need to tell Grub where it is installed. Using the output of the last command, change this one and run it:

Code:
root (hd,)

Replacing and with what you got back before. For example, if “find /boot/grub/stage1” gave me “(hd0,1)”, you would run “root (hd0,1)”

Ok, so thats the configuration over and done with. Now we just need to run one command to install the Grub to your hard drive:

Code:
setup (hd0)

Now to quit and check if it has worked:

Code:
quit

Code:
sudo reboot

Make sure you have taken the live cd out of your disc tray. All going well, you should start back up and see the grub once again.

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest