LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub Boot loader installation problem (https://www.linuxquestions.org/questions/linux-newbie-8/grub-boot-loader-installation-problem-452963/)

Farrukh Fida 06-08-2006 04:40 PM

Grub Boot loader installation problem
 
hello,
I've two O.S Windows XP and Linux.But when i reinstall windows XP
then my boot loader grub not working...note i install linux on my MBR
not on 1st boot sector.
so only windows XP is working..
I try to reinstall the grub by booting the linux in rescue mode.
and i m using following command
]#grub-install
but my grub not recover
So sir any one is there plz help me...Beacause i never want to reinstall my Linux.

bigrigdriver 06-08-2006 05:17 PM

From the grub manual:

The usage is basically very simple. You only need to specify one argument to the program, namely, where to install the boot loader. The argument can be either a device file (like /dev/hda) or a partition specified in GRUB's notation. For example, under Linux the following will install GRUB into the MBR of the first IDE disk:

# grub-install /dev/hda

From your post:

]#grub-install
but my grub not recover

You did not specify the device in which to install grub to the MBR.

pixellany 06-08-2006 05:25 PM

One thing to consider is putting grub on a floppy. This way, when you (re-)install Windows, it does not wipe out GRUB.

Farrukh Fida 06-08-2006 07:34 PM

Quote:

Originally Posted by pixellany
One thing to consider is putting grub on a floppy. This way, when you (re-)install Windows, it does not wipe out GRUB.

Thanks all of u to help me.


All times are GMT -5. The time now is 11:45 PM.