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)
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.
try now.I hope it’ll work now.Dont forget to info me 🙂
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
Thanks!
Just what i was looking for.
thank for that. it works nicely.
hi, bro thanks a lot i was totally messed up .
good luck.
thanks a lot. tried the first way. worked just fine!
greetings from switzerland.
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!
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.
I have bootable groub cd,it recovers PC linux Os,however,It does not recover linux mint.
get linux live cd
this is not working for me don’t know why?
it says device access denied
which distro are u using ?
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.
Thanks a lot, it really help me in
Best regards from
Indonesia..
Big thanks from Brazil!
thank you very much
it works greatly
Visit this…Nice explanation of Recovering GRUB after windows XP installation.
http://jaydeepwagh.blogspot.com/2010/05/recovering-grub-bootloader-after.html