Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
    
The first link contains a useful link for the Boot Info Script. You should use it and let us see the results. –  mikewhatever Sep 24 '13 at 11:43
    
Ok, the results are at: paste.ubuntu.com/6149731 –  That Coder Guy Sep 24 '13 at 11:50
    
It doesn't make sense, because I did pretty much the same thing when I first installed ubuntu, but it doesn't work now... –  That Coder Guy Sep 24 '13 at 11:57
    
Not sure how you've done it, but I see two problems: Windows boot files are missing, and /dev/sda is a logical partition. Pretty sure it wouldn't work in such a setup, even if you could somehow load it. Don't think you can solve it without a reinstall. –  mikewhatever Sep 24 '13 at 13:03
    
OK... I will restore the windows mbr and see if it boots, if not I'll just reinstall :P –  That Coder Guy Sep 24 '13 at 14:25

1 Answer 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!
share|improve this answer
    
It doesn't work because it doesn't support Ubuntu 11.10.... I need to wait till next month to download 12.04 because of my Internet package... –  That Coder Guy Sep 24 '13 at 11:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.