LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 0
GRUB MBR overwritten by WIN98 MBR


Hi,


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
oneandoneis2
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
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,784

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,969

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Another method.
Use the 1st install CD and boot to rescue mode. At the prompt type in:
chroot /mnt/sysimage
grub-install
 
Old 11-11-2004, 12:42 PM   #5
TOuseef
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
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: SuSE 10
Posts: 915

Rep: Reputation: 30
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
TOuseef
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.

Bye
 
Old 11-14-2004, 04:25 PM   #8
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: SuSE 10
Posts: 915

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


Reply


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 08:00 PM.

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