Repairing Your Grub Bootloader

Last week a friend of mind tried to install Windows XP on his system after installing Ubuntu, and of course the result was that he lost his bootloader.

Don’t panic though, just boot off your Live CD and open up a Terminal window.

Then execute these commands:

sudo grub

root (hd0,0)

setup (hd0)

Close out the Terminal and reboot, and you’re good to go! Just don’t forget to eject your Live CD. This should apply to any Linux distro that uses the Grub bootloader.

One Comment

Ed  on November 2nd, 2008

Aaahh. The same thing happened to me. Thanks for the info.

Leave a Comment

You must be logged in to post a comment.