Monday, March 23, 2009

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 Fedora Live CD
2. Open shell
3. mount the linux partition using the command
example: mkdir /mnt/tmp
mount /dev/hda3 /mnt/tmp
3.Type the commands:
grub
4.Then it shows grub> like this
grub>find /boot/grub/stage1
5.It will give a output like this (hd0,7) 7 is here for example, it will be number of ur partition.
grub>root (hd0,7)
grub>setup (hd0)
grub>quit

Then reboot your machine from the hard disk.
Note: For hda1,sda1 it will be (hd0,0),hda2,sda2 it’ll be (hd0,1),hdb1,sdb1 it’ll be (hd1,0)

Read more...

  © PC Template PC by PC 2008

Back to TOP