LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   reinstall grub (https://www.linuxquestions.org/questions/linux-newbie-8/reinstall-grub-140832/)

sau2004 01-31-2004 06:56 PM

reinstall grub
 
Hi, can someone help me please?

I had the following dualboot setup:

Redhat 9 on a Primary Slave
WinXP on Primary Master

Everything was running fine except a couple of days ago, I use acronis true image 7 to transfer my stuff from my drive on primary master to my new drive. I then proceeded to boot off the new drive, but now GRUB is gone and it just straight boots to windows xp.

I think the problem is the MBR is lost when I transferred the data. Is there anyway I can reinstall GRUB on the MBR without having to reinstall Linux again? (I currently can't boot to Linux without the bootloader) Thanks!

spuzzzzzzz 01-31-2004 07:12 PM

you'll need a bootdisk to get you into your linux system. If you didn't make one during instal, you can probably get one from one of RH's ftp sites. Once you get into linux, open up a console as root, and type
me@localhost# grub

you'll get a grub command prompt:

grub> root (hd1,0) /*or wherever your boot partition is - (hd1,0) = /dev/hdb1 */
grub> setup (hd0)
grub> quit

sau2004 01-31-2004 08:30 PM

Thank you very much! You saved my life!!!!

I don't know how to thank you!

Thanks!

spuzzzzzzz 01-31-2004 10:29 PM

Quote:

I don't know how to thank you!
Once you've become a bit more familiar with linux, visit this forum, then click on "View threads with 0 replies." Find some questions you think you can help out with and answer them.

We were all new once :).


All times are GMT -5. The time now is 01:02 PM.