Friday, March 7, 2008

Reinstalling Grub

Many of you have experienced the problem of reinstalling windows when we have a linux os also in our system.After reinstallation ,the grub boot loader of the linux os will be gone so we will not be able to enter linux.

I had this problem too and i tried surfing the net and asking some people how to overcome this,almost all of them told that we cannot reinstall windows without affecting the Grub and so the only way to get back the Grub is too reinstall the Grub.

I was confused whey they said to reinstall the Grub,i asked them do you mean to reinstall the linux os itself.They said no,thats what most people do but it's not needed.Reinstalling Grub is totally a easier job and will take only up to some 5 or 10 minutes.

So this is how the reinstallation process takes place,

  • First Reinstall your Windows Operating System.Now the Grub Boot loader will be gone from your system and your system boots directly to windows.

  • Now load your Linux live cd or installation cd and boot up

  • Once you have entered your terminal,type the following command to enter into grub mode
grub

then type if you know where your windows is located

root (hd0,1)

or else do this

find /boot/grub/stage1

and then the root command with the correct parameters:

setup (hd0)

to install it on hd0, that is MBR of the first HD.

Now restart the system and grub will be loaded.

No comments:

Blog Advertising - Get Paid to Blog
 
ss_blog_claim=53ab9bac924dea44b1dbb3f3db9fbf21