How to reinstall Grub after reinstalling Windows XP/Vista/Win7/Win 8


Now grub is updated to grub 2,after a long period of "no development" in grub code.

The issue is grub 2 is totally different from its predecessor. menu.lst doesnt even exist. It is replaced by grub.cfg which have little resemblance with menu.lst which makes things a liitle difficult.



Now with the release of Windows 7,most people must be upgrading their old windows.This results in loosing grub. The method to restore grub 2 is entirely different from reinstalling old grub,so dont attempt old methods (even Auto Super Grub Disk software wont work)



Insert ubuntu 9.10 karmic live cd



Select "Try ubuntu without any change to current system" option



Open Accessories >terminal



Type:

sudo fdisk -l



This command will list all partions in hard disk

find the partion ,in my case it is sda3



sudo mount /dev/sda3 /mnt

sudo mount --bind /dev /mnt/dev

sudo chroot /mnt

update-grub

grub-install /dev/sda3

grub-install --recheck /dev/sda3

sudo umount /mnt/dev

sudo umount /mnt



Now reboot, you will find that grub only contain ubuntu

Dont panic!!! we are not yet done



Boot to ubuntu

Open Accessories >terminal

Type:



sudo update-grub



Now reboot

You will now have the update grub2!!!!!!!



Comments

Popular posts from this blog

How To Install Compiz Fusion Desktop Effects In Ubuntu

Ubuntu 9.10 Karmic Koala Review

Top Things to do after installing Ubuntu