up vote 1 down vote favorite
1
share [g+] share [fb]

Possible Duplicate:
[GRUB Problem] Dual Boot Ubuntu - XP (Ubuntu Installed First)

I have installed both windows XP as well as Ubuntu 9.04 on my machine.I can choose between them using dual boot option at the startup.Up to this, it is fine.

But unfortunately when my XP crashes, I need to install XP again.But when I do it,after installing XP successfully, dual boot option no longer appears at the startup.

So the Ubuntu goes in vein.

What is the problem here? How do I solve it?

link|improve this question
1  
This belongs on superuser.com – Daniel A. White Oct 18 '09 at 19:24
This is better suited to superuser.com – John Nolan Oct 18 '09 at 19:24
Ok.Please migrate it to superuser then.Thanks. – Ravi Oct 18 '09 at 19:25
This gotta be the 20th time this question got asked here. – Kim Oct 18 '09 at 19:44
feedback

migrated from stackoverflow.com Oct 18 '09 at 19:28

This question came from our site for professional and enthusiast programmers.

closed as exact duplicate by Diago Oct 18 '09 at 20:59

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ.

3 Answers

The Ubuntu community has written a guide specifically to address this situation: https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

link|improve this answer
feedback

Windows kills the MBR (Master Boot Record), and as such erases GRUB (the boot loader that lets you choose).

To reinstall the MBR, use the Ubuntu live CD that matches your version, run a terminal and run the following (except the ones marked gray, those are comments):

sudo grub
# Then inside grub, run those:
find /boot/grub/stage1
# This will give you something like (hd0)
setup (hd0) # Use the same thing you got on the command above
quit

And reboot your computer. And everything should work again!

link|improve this answer
feedback

Before this gets to superuser you may find this http://www.supergrubdisk.org/ will help you.

link|improve this answer
feedback