Wednesday, June 4, 2008

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:

$ mkdir /mnt/ubuntu
$ mount /dev/sdaX [where X is the number of your linux partition] /mnt/ubuntu
$ mount -t proc none /mnt/ubuntu/proc
$ mount --bind /dev /mnt/ubuntu/dev
$ chroot /mnt/ubuntu
$ grub-install /dev/sda

It works for me…!



0 comments: