Friday, May 15, 2009

Restore ubuntu 9.10 Grub Bootloader after installing windows7

Yesterday, i tried to install windows7 over windows xp everything seemed to be perfect during the installation process .I had dual boot system with windows xp and ubuntu 9.10.This dual boot is guided by grub bootloader.After my windows 7 installation my grub boot loader was overwritten by the windows 7 boot loader.


I was presuming that i had lost ubuntu in the process.I had googled for on how to restore grub boot loader .Read some post on how to restore ubuntu grub boot loader. Finally restored the ubuntu grub boot loader.Here are some of the steps followed to restore grub boot loader.



  • Restart you machine with ubuntu 9.10 live CD.

  • After successfull logon to ubuntu live version open terminal window

  • Type sudo grub on terminal console

  • You will prompted grub prompt .

  • Under grub prompt type find /boot/grub/stage1

  • you will see  hd0,1 or similar kind depending on where linux has been installed.Note this value as this will be used in the following command

  • type root (hd0) .Note there is space between root and (hd0)

  • type setup (hd0) ,this will mark MBR to point to linux partition.

  • type quit

  • Remove the live cd and restart the machine.

  • Now you should see your famous grub loader loaded .




Powered by Qumana


No comments: