2

enter image description hereBasically, I messed up my partitions and decided to do a full re-install of both Windows XP and Ubuntu 11.10 (I know that 11.10 is outdated, but I was planning to do an update to 12.04 as soon as I got everything happened). Here is a sequence of what I did:

  1. Installed Windows XP onto 20gb of hard-drive space

  2. Installed Ubuntu 11.10 onto the remaining 10 gb of space using the advance setup option where I partitioned: (1gb swap, 200mb /boot, and 8.8gb / , (see screenshot))

  3. Trouble struck, when I rebooted, grub2 didn't show Windows XP under my boot options.

  4. I ran sudo update-grub but it still didn't find windows

  5. I opened gparted and added the 'boot' flag to my windows xp partition (I was getting desperate and didn't know what to do)

And now, I'm stuck with only Ubuntu, and I don't want to have to re-install both Ubuntu and Windows to get grub working again.

Please note, I have seen How to boot Windows XP (no GRUB menu is shown)? and Add windows to my boot menu but I couldn't find anything useful.

Thanks a lot,

DevNewb

Moose
  • 325
  • 4
  • 14

1 Answers1

1

boot-repair is probably your best option. Here's how you can use it.

  1. Boot into Ubuntu
  2. Open a terminal and run sudo apt-get update && sudo apt-get install boot-repair
  3. Open boot-repair
  4. Use choose the Recommended Repair
  5. Follow the instructions you are given
  6. Reboot once boot-repair is done
  7. Profit!
Dillmo
  • 2,000