Skip to content
January 12, 2008 / ranacse05

GRUB recovery after installing Windows XP


If any one use dual boot system then after installing windows again we lost GRUB loader. It can recover in various method. Here i discuss GRUB recovery using Live cd. For this we have to boot our system by Live cd.

Follow the step to recover grub bootloader:
1. Boot with Ubuntu Live CD
2. Open gnome-terminal
Give the commands:
3. sudo grub
then it shows grub> like this
grub>find /boot/grub/stage1
it’ll give a output like this (hd0,7)  7 is here for example, itĺl be number of ur partition.
grub>root (hd0,7)
grub>setup (hd0)
grub>quit

Then reboot your machine. I think your boot loader should recovered.
there is another way.
1. Boot with Fedora CD 1.
2. write
linux rescue
it’ll open a shell
write
grub

then write previous grub command

Spacial thanks to Suzan bhai & Asad

Note: For hda1,sda1 it’ll be (hd0,0),hda2,sda2 it’ll be (hd0,1),hdb1,sdb1 it’ll be (hd1,0)

20 Comments

Leave a Comment
  1. sage / Jan 31 2008 5:46 am

    Hi,
    I have followed this procdure several times and and it works fine. But the problem is that when I boot to windows i find out that grub has disappeared on the next boot. Any ideas? it almost feels like mbr is being written over everytime boot to windows.

  2. ranacse05 / Jan 31 2008 8:48 am

    try now.I hope it’ll work now.Dont forget to info me 🙂

  3. sage / Feb 8 2008 6:02 am

    somehow it works now. i dont know what happened this time. i couldnt even execute grub after the first procdure but when i booted to xp and restarted, grub was still there. i was surprised. so just to make sure I rebooted to xp and when I restarted grub was still alive. So I dont know what I did different this time but I want to say thanks.

    sage

  4. KooW / Mar 6 2008 10:37 am

    Thanks!
    Just what i was looking for.

  5. mahfuz / Apr 1 2008 6:26 am

    thank for that. it works nicely.

  6. durgesh nautiyal / Jul 2 2008 1:01 pm

    hi, bro thanks a lot i was totally messed up .

    good luck.

  7. rob / Aug 16 2008 10:48 am

    thanks a lot. tried the first way. worked just fine!
    greetings from switzerland.

  8. Antoon S. / Aug 30 2008 9:24 pm

    It doesn’t work for me. ;-(

    Grub doesn’t recognize the command. It keeps saying: Error 27: Unrecognized command

    What do I do now?

    Pls help!

  9. Monty / Nov 3 2008 10:41 pm

    Hi,
    I have followed this procdure several times and and it works fine. But the problem is that when I boot to windows i find out that grub has disappeared on the next boot. Any ideas? it almost feels like mbr is being written over everytime boot to windows.

  10. revribhav / Jan 31 2009 3:22 pm

    I have bootable groub cd,it recovers PC linux Os,however,It does not recover linux mint.

  11. sanoop / Mar 4 2009 11:04 am

    get linux live cd

  12. abhilash / Oct 31 2009 7:30 am

    this is not working for me don’t know why?
    it says device access denied

    • ranacse05 / Oct 31 2009 11:57 am

      which distro are u using ?

  13. Sunny / Dec 8 2009 1:02 pm

    Thanks a lot , it really helped me , since i got messed up using the mounting partitions and not getting success through that, your way is best.

  14. khalid / Jan 17 2010 2:03 am

    Thanks a lot, it really help me in
    Best regards from

    Indonesia..

  15. MrcS / Mar 20 2010 1:18 am

    Big thanks from Brazil!

  16. abdo taha / May 29 2010 8:07 am

    thank you very much
    it works greatly

  17. Blogger / Nov 23 2010 12:19 pm

    Visit this…Nice explanation of Recovering GRUB after windows XP installation.

    http://jaydeepwagh.blogspot.com/2010/05/recovering-grub-bootloader-after.html

Trackbacks

  1. Problemas graves!! « no-tngo-idea
  2. Where is fedora?

Leave a reply to durgesh nautiyal Cancel reply