Restoring Dual Boot funtionality

Okay i had to format my windows partition on the laptop. No big deal.. just pop in the old windows disc, and do a fresh install (after proper backup of course :p) to the correct partition.

However i like to use my laptop for Ubuntu also, and thus have dual boot. But windows insists on having control over the whole MBR. Hmm so this install lost me my dual boot functionality. Technically all i lost was the GRUB install that allowed me to boot from Ubuntu’s partitions.

Normally i would do a complete reinstall of the whole machine, taking me about a whole day considering all the programs i use, and backups to restore. However i didnt feel like this grand gesture, and was pressed for time.

A quick search gave me the quick fix for restoring dual boot functionality thus saving me some time. So here is the solution to re-install GRUB after installing Windows or in some other messing up your MBR

  1. Boot into Ubuntu using the Live CD. I used Ubuntu 8.04 currently.
  2. Open a terminal. Applications -> Accessories -> Terminal
  3. In the terminal type the follwing steps:
  4. sudo grub
  5. This should result in a GRUB Prompt with grub>
  6. find /boot/grub/stage1
  7. Remember this information
  8. root (hd0,4)
  9. setup (hd0)
  10. And you are done!

The above is a simple rewrite of the instructions found on the official Ubuntu help.

After following the steps you restart and everything should be working normally again 😀

source:
Recovering Ubuntu after installing Windows

Leave a Reply

Your email address will not be published. Required fields are marked *