LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-11-2004, 08:19 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 9

Rep: Reputation: 0
GRUB MBR overwritten by WIN98 MBR


my LINUX grub MBR is overwritten by Windows MBR and now i am unable to boot from Linux. can anybody can help in this regard? here is all all situation. sorry for poor english.

once i have installed windows and linux dual boot. like this
c: windows 98 fat32
d: windows 2000 fat32
e: nothing fat32
f: red hat linux ext2
e: swap

GRUB was installed by linux in MBR.
every thing was working fine
i have c: as only primary and active partition.

then my windows corrupted so i decided to reinstall windows.

i re-installed windows2000 and then comes the problem with GRUB . i dont know wut was that but when i boot the system prompted grub and nothing else i was unable to boot any OS. then i thought that it is problem related to MBR and then installed win98 from win98 bootable CD. win98 got itself right and installed properly with its own MBR overwritten to grub. then i installed win2000 from win98 and now both windows working well. but i lost my linux. i am not getting any way to boot with linux. i have no linux bootable floppy. and i have no backup of MBR. now wut should i do to get dual boot system working? can i do that without installing any os again?
Old 11-11-2004, 08:22 AM   #2
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
Windows is notoriously anti-social, and hates sharing space with other OSes. It's at its happiest when you install it on a hard drive first, and THEN add other OSes afterwards, behind it's back.

If you haven't got one already, get hold of a bootable linux disk - Damnsmalllinux is only a 50mb download. That'll get you back into a Linux system, and you can re-install Grub in the MBR from there.
Old 11-11-2004, 10:37 AM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Wheezy
Posts: 5,858

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
If you have linux installation cd's, you should be able to boot from the first cd, instead of re-installing.
When you are finally in Linux, open a terminal and type grub <enter> to get to the grub prompt.

Then, from the grub prompt:

grub> root (hd0,5) (where hd0,5 is the root of my Linux. edit to suit your setup).

grub> install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0) /grub/stage2 0x8000 (hd0,5)/grub/menu.lst (where your menu.lst or grub.conf file is located. edit to suit your system).

I believe that will get grub working again.

PS Your poor english is better than the english used be some english-speaking natives I've seen on this board.

Last edited by bigrigdriver; 11-11-2004 at 10:39 AM.
Old 11-11-2004, 10:50 AM   #4
Registered: Aug 2002
Posts: 14,006

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Another method.
Use the 1st install CD and boot to rescue mode. At the prompt type in:
chroot /mnt/sysimage
Old 11-11-2004, 12:42 PM   #5
LQ Newbie
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks a lot you people. i am realy glad to see your replys. i will try them soon and tell you about the results. thanks again.
Old 11-11-2004, 06:15 PM   #6
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 929

Rep: Reputation: 32
I suggest RedHat Rescue (CD 1). I did the exact same thing when I went from 98 to ME. I just hit that Rescue mode, and it practically walked me right through the reinstating of LILO (I like LILO better, but it should do the same for GRUB).
Old 11-12-2004, 07:06 PM   #7
LQ Newbie
Registered: Nov 2004
Posts: 9

Original Poster
Rep: Reputation: 0
thanks a lot guys!
i booted the system with CD1 in rescue mode and then used only

chroot /mnt/sysimage
grub-install /dev/hda

commands to get it right.

i am very glad and thank you very much for you kind replies.

thanks a lot again.

Old 11-14-2004, 04:25 PM   #8
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 929

Rep: Reputation: 32
I bet it even told you about that, didn't it?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MBR is overwritten and GRUB is lost satish427 Red Hat 3 10-13-2004 12:48 PM
Cant boot from Win98 or XP bootable CD after recovering MBR zeejdeej Linux - Laptop and Netbook 2 09-23-2004 01:42 AM
win98 captured the mbr... help me recapture it with grub sudheernair Linux - General 1 04-26-2004 06:16 AM
Reinstalled Windows, MBR overwritten Chapster Linux - Newbie 10 11-30-2003 07:47 AM
?overwritten MBR? sharon63 Linux - Newbie 2 08-21-2003 06:46 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration