I just deleted and old Ubuntu off the Journo’s dual-boot Ubuntu/XP HP Pavillion and along with it Ubuntu’s Grub and her Master Boot Record (MBR), which of course rendered the machine useless.

I had an Ubuntu 10.04 Lycid Lynx Live CD at hand (never leave home without it), so here’s how to repair an XP MBR with only an Ubuntu Live CD.

Repairing XP MBR with Ubuntu Live DC

It’s actually ridiculously easy:

  1. Boot from the Live CD and into Ubuntu (it’s option 1, Try Ubuntu Without Making Any Changes to your Computer);
  2. Once you’re in the OS, from the menu choose Applications -> Accessories -> Terminal;
  3. In the Terminal Window type “sudo apt-get install lilo“, which is a Linux gadget that will fix your woes;
    It downloaded, then gave me a prompt box which required me to hit enter before it installed Lilo.  There were some warnings telling me to do something otherwise the computer might not work. The computer wasn’t working anyway, so I ignored those warnings and…
  4. type “sudo lilo -M /dev/sda mbr“;
  5. Done. Reboot.

The above assumes a straight forward flub with the Master Boot Record and a default setup as far as harddrives go.

I rebooted the PC and voila! it booted straight back in to Windows XP.

Bookmark and Share
If you enjoyed this post, make sure you subscribe to my RSS feed!