Recovering Grub/ubuntu 9.10 after installing windows 7

I had the luminous number 7 day today!

Drupal 7 came out and I tested it, great!
I was not blown away but I hope * correction - I will * be blown away with the underneath codebasis that was so vastly improved! But everything takes time ofcourse..! :-)

But.. I also installed windows 7 and there was a painful issue.. Windows had overwritten my option to boot ubuntu/linux..! (In other terms, he changed the bootloader from GRUB to private MS bootloader)

Motivation why I installed Win 7?
Even though I'm clearly an ubuntu/linux fan, you should keep your friends close but your enemies closer they say..! :-) And I need it for photoshop.. Damn you adobe!

note : If you never had a bootable windows install before then this is not the solution I guess. Comments are always welcome to tell me how you would work if you never had a bootable windows partition before.

A really easy solution to get our original grub back

  • Download gparted live cd/usb
  • Follow the instructions to put it on a bootable USB or burn it on a cd
  • Boot from the usb/cd
  • Double click the terminal icon and type the following code
    sudo grub
    find /boot/grub/stage1

    It will return you something like ******** (hd1,0)

  • Continue with the following code and replace (hdX,Y) with what you found in step 4

    root (hdX,Y)
    setup (hdX)
    quit
  • Reboot your pc and behold! A lovely grub bootloader again with windows boot in there as well.

Enjoy this fast and easy solution!

1 comments on Recovering Grub/ubuntu 9.10 after installing windows 7

  1. Steve (not verified)
    Thu, 06/17/2010 - 07:41

    I'm not sure why but the process you explained above doesn't work for me to recover Grub/ubuntu 9.10 after installing windows 7.

    Any idea? I'm badly need of it as I need to make live one of my client's web application at earliest.

  2. Post new comment

    The content of this field is kept private and will not be shown publicly.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
    • Lines and paragraphs break automatically.

    More information about formatting options