How to restore grub

Asked by Arun

I reinstalled my Windows XP & after rebooting I found that my GRUB is gone.Pls help me reinstall it.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
S.Vikash Koushik
Solved:
Last query:
Last reply:
Revision history for this message
Best S.Vikash Koushik (vikashkoushik) said :
#1

Hey its really simple.Put the live cd in and then go to terminal after you enter into the live session.There type the following:

sudo grub

find /boot/grub/stage1

If you get "Error 15: File not found", try the following:

find /grub/stage1

Using this information, set the root device (fill in X,Y with whatever the find command returned):

grub> root (hdX,Y)

Install Grub:

grub> setup (hd0)

Exit Grub:

grub> quit

This should work.

Revision history for this message
Arun (arun1992kumar) said :
#2

Thanks S.Vikash Koushik, that solved my question.