Saturday, September 25, 2010

REINSTALLING GRUB 2 AFTER WINDOW INSTALLING

Insert ubuntu 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 sda2

sudo mount /dev/sda2 /mnt
sudo mount --bind /dev /mnt/dev
sudo chroot /mnt
update-grub
grub-install /dev/sda2
grub-install --recheck /dev/sda2
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

Thursday, September 23, 2010