How to Restore GRUB after Windows installation

What to do:
Put the Linux liveCD or boot disk you created while the installation; on the floppy drive, boot the system and run grub command

Remember that for grub (hd0,1) means hda (primary controller master), second partition.

Now we need to tell grub where are the grub files:

If you know where they are, type something like:
root (hd0,1)

else if you have no idea, type:
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.

type quit and reboot.
The menu will appear again.
If you want to make some changes to the boot menu, you must edit the file: /boot/grub/menu.lst
$ gksu gedit media/disk/boot/grub/menu.lst


About saysprasad

Im a freedom lover.
This entry was posted in Linux Tweaks and tagged , , , , , , . Bookmark the permalink.

7 Responses to How to Restore GRUB after Windows installation

  1. Sunil Kumar. N says:

    It is very use full to us for departmental training. Thank you …

  2. saysprasad says:

    Hello Mr.Sunil Kumar,
    You are always welcome. Please feel free to comment about your further requirements.

  3. binu says:

    need detailed information abt restore grub after installing winXP

  4. james says:

    hai sunil
    very very thanks for ur valluable suggestions.

  5. Sagar says:

    Hey nice effort!!!!

    But you can find best solution of this problem over here:

  6. Rajesh.RS, PTC says:

    i am using linux 10.04 and there is no file named menu.lst so that i can change the boot order

  7. Rajesh.RS, PTC says:

    pl tell me what is the other file?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s