LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2001, 01:26 PM   #1
cgb_78
LQ Newbie
 
Registered: Dec 2001
Posts: 2

Rep: Reputation: 0
Cant clear GRUB from MBR


I am trying to get back to my original state. Which is just booting Windows98. I did have linux on another hard drive but I cleared it because of other problems. When I did have linux I was using the GRUB boot loader. Well after deleting linux I started my windows98 hard drive which unfortunately wouldn't boot. The word GRUB just popped up on the screen when it got to the point to start Windows98. So I booted it with windows98 boot disk did a fdisk /mbr but that did not solve the problem like many claim it should. I found a utility that specializes in manipulating the mbr. I have wiped the mbr using it and then restored back to what it should be with windows98. However I still get that dang word "GRUB" popping up on boot up from my hard drive.

The only thing I haven't really checked are the files used to start up windows98 (io.sys. command.com,msdos.sys). Would GRUB write anything in these files when grub was installed. I would just like to start windows98 back up.


I have even looked at the mbr and have seen nothing that references GRUB nor spelling that word out. Any help is appreciated on getting that darn GRUB word eliminated.

Thank You
 
Old 12-03-2001, 02:04 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
to wipe out your MBR... issue this command: fdisk /MBR and that should have done it.. not sure why it would still pop up with the word grub at boot time... it might not hurt to look at your startup files for windows.

Last edited by trickykid; 12-03-2001 at 02:06 PM.
 
Old 12-03-2001, 02:31 PM   #3
cgb_78
LQ Newbie
 
Registered: Dec 2001
Posts: 2

Original Poster
Rep: Reputation: 0
Yeah, your right the "fdisk /mbr" should clear the mbr and maybe its doing it in my instance and its just something in a startup file for windows 98 that causes the word "GRUB" to appear when starting up.


I have done "fdisk /mbr" so many times and has still done nothing for my problem. I wish there was some kind of acknowledgment after issuing the "fdisk /mbr" so then the user
would at least know that it did what it should have.

Thank you for the information. I am at work right now but I plan on checking this evening the files used when first starting up to see if "GRUB"is written anywhere in nature in those files.
 
Old 12-03-2001, 03:23 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
case sensitive???

well... it's meant to be a secret feature that no one knows about... i can certainly imagine 1985 M$ engineering deciding to hide it even more...

Last edited by acid_kewpie; 12-03-2001 at 03:55 PM.
 
Old 12-03-2001, 03:45 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
i don't think the mbr/MBR in fdisk /MBR is case sensitive.. i am just use to doing it in CAPS... don't know why.. just do.. but not 100% sure.. i guess it wouldn't hurt to try cgb_78, if you were doing it in lower case....
 
Old 12-04-2001, 06:25 AM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Unfortunately guys, I have bad news. Certainly Microsoft's offering of fdisk will only rewrite the mbr with the previous offering. Here's a nightmare scenario:

Install Windows. MBR = Windows, OldMBR = None
Install Linux. MBR = Linux, OldMBR = Windows
Reinstall Linux. MBR = Linux, OldMBR = Linux

After this reinstallation, it won't matter how many times you type 'fdisk /mbr', you'll still get the linux bootloader popup (in this case, the grub prompt).

I had the same problem as above (except replace Linux with QNX) and I'm affraid the only way I got round it was:

Put harddisk in mate's machine. Burned CD of all important stuff. Put harddisk back in my machine and format partition(s), re-install Windows and all relevant software. Copy stuff from CD.

Think of it as an unfortunate spring-clean.

I did find a util (once) that would let you copy the mbr to a floppy (as a file), and in an emergency would let you re-install the mbr from the file stored on the floppy. One big problem, though, was the fact that it was Windows only. Did offer a command line interface, however, so if you were in a pickle (as you are) you could do all your mbr things from the prompt. Can't remember what it is called. Will look on CDs/DVDs tonight and post ASAP I find it.
 
Old 12-04-2001, 12:59 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by Thymox
Unfortunately guys, I have bad news. Certainly Microsoft's offering of fdisk will only rewrite the mbr with the previous offering.
After this reinstallation, it won't matter how many times you type 'fdisk /mbr', you'll still get the linux bootloader popup (in this case, the grub prompt).
hmmm.. that is strange, i have loaded back and forth, mixed around with and inbetween installs of windows and linux, and fdisk /mbr in windows always works for me, never had any problem with grub or lilo getting stuck there somehow, or at least a small popup of it and then continues to boot into windows...
 
Old 12-05-2001, 06:04 AM   #8
gui10
Member
 
Registered: Mar 2001
Distribution: enigma, slack8
Posts: 677

Rep: Reputation: 30
i probably get the most weird stuff happening to me in this forum coz my experiences seem always unique, but here's my 2 cents worth anyway...

wanting to try many distros, i tried one after the other over the first half year i was learning to use linux (while dual booting with win98)... there was even once i installed mandrake after redhat and at the interactive startup, got the 'Welcome to Redhat' message (ho ho ho). in the end, i think the hard drive got angry at me and decided to develop a rash of bad sectors... lol

well i had to get rid of the old drive and put in a new one.
decided to slow down the pace of re-installations... ho ho ho...

anyway, just some trivial stuff to share...
 
Old 12-06-2001, 07:00 AM   #9
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
I think some of the problems I faced (see above) was that I was only using 1 partition for Linux (I only had a 6Gb drive), so if I removed it (i.e. made it VFAT again, and formatted it) then although there was Lilo/Grub in the MBR, it was pointing to files which didn't exist. Whatever was going wrong, I found that Microsoft would only replace the MBR with the preceding one, whatever that may have been.

Oh, BTW, found the Windows program that allows you to:
a) Copy the MBR to a floppy-image
b) Copy the floppy-image to the MBR

It's called: DriveStar (same company that made BootStar). I'm pretty sure I've read that they are currently producing a Linux version.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub to mbr rekaye1005 Linux - General 1 10-18-2005 08:20 PM
Grub on MBR vivekian SUSE / openSUSE 13 02-20-2005 10:49 PM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 05:25 PM
How to Clear the Master Boot Record(MBR) hazarcon Linux - Newbie 2 09-15-2004 04:12 AM
Grub and MBR, need some help entm Linux - General 3 05-13-2002 04:49 AM


All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration