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.

Comments

One response to “Repairing Your Grub Bootloader”

  1. Ed Avatar
    Ed

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

Leave a Reply