LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-11-2003, 08:29 AM   #1
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Rep: Reputation: 30
Getting rid of GRUB


I used family machine to test drive Linux (dual boot with Windows 98). I love Linux and have since built my own machine with only Linux on it. This morning I tried to rededicate the old machine to windows for the kids. Using Partition Magic, I removed the partitions for Linux. When rebooting, Grub prompt comes up and I can't seem to get around it.

Anyone have suggestions? This is a pretty serious situation here as far as the kids are concerned.
 
Old 01-11-2003, 08:48 AM   #2
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
More info...
Possible commands are: background blocklist boot border cat chainloader cmp color configfile debug display displayapm displaymem embed find foreground fstest geometry halt help hide impsprobe initrd install ioprobe kernel lock makeactive map md5crypt module modulenounzip partnew parttype password pause read reboot root rootnoverify savedefault serial setkey setup shade splashimage terminal testload testvbe unhide uppermem vbeprobe viewport
 
Old 01-11-2003, 09:01 AM   #3
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Been there, done that and got the tee-shirt.

Grub was in your MBR and now cannot find its files it had put on the now-deleted Linux partitions. You want to put your Windows computer back to the way it was. It is as simple as having Windows put its boot loader back in the MBR.

If you have a Windows boot disk, use it to start the computer and type this:

fdisk /mbr

Windows will overwrite the non-working Grub with its original, working boot loader.

If you don't have a boot disk, use the Windows 98 CD and have it do a Rescue boot (I think it does that). You do not want to reinstall the program, though! This would start your computer and allow you to access fdisk from the hard drive.

Your computer will work, the kids will be happy, you will be a hero!

Good luck

Last edited by deadbug; 01-11-2003 at 09:06 AM.
 
Old 01-11-2003, 09:25 AM   #4
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Deadbug, I do appreciate your suggestions. Unfortunately, the system did not come with a windows CD--a practice I think is terribly wrong--and I could not find a boot disk. Royally screwed here...

I am reinstalling Linux right now to see if that helps me.
 
Old 01-11-2003, 09:55 AM   #5
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Deadbug,

It would appear that all is well here after reinstalling RH8 and letting it create the partitions again. (Wiping sweat from brow)

I guess I will get my act together before I try that again. I was drastically unprepared. lol

Thanks, man!
 
Old 01-11-2003, 10:06 AM   #6
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Yeah, reinstalling Red Hat, put Grubs configuration files back on and will now let you start both programs. If you still want to remove Red Hat from the computer, first, use Windows to fix the MBR, then delete the partitions. With Windows now working, load it and at a DOS prompt type:

fdisk /mbr

This will overwrite Grub and then you can delete the Red Hat partitions and rededicate that space to Win98.

Glad to hear you are at least out of the dog house now!
 
Old 01-11-2003, 10:28 AM   #7
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Deadbug, I have my courage back and so I did the fdisk /mbr at DOS prompt. I then thought I'd reboot to see the effect. My assumption was that it would boot Windows. Instead it says "Missing operating system"

What now, mate?

Should I boot with Partition Magic disk and just delete the partitions? It doesn't feel right...
 
Old 01-11-2003, 01:58 PM   #8
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Deadbug,

A couple of things... First: I am having trouble with affero. Don't know why. I have used it before, but can't seem to today. I will get it straightened out and I won't forget you for the help with smartes' post.

Second: I am back to square one--a dual boot system that I'd like to re-dedicate to windows exclusively. The last thing you told me was to fdisk /mbr and then remove linux partitions with Partition Magic, but I am a little gun shy as a result of what I just went through. I can only assume that I should do it again and carry on to the second step which is remove the linux partitions, but I am very weary, as Linux was what enabled me to fix the missing operating system problem. If it's gone I fear I will be hopelessly lost.
 
Old 01-11-2003, 02:04 PM   #9
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Don't delete them yet--we need to get your system running until we can make sense of this.

Put the Red Hat boot disk in and get linux running. In a terminal window, type:

grub-install /dev/hda

That will get Grub working again.

Now, back to the basic idea--obviously, "Missing operating system" wasn't supposed to happen!

Does Windows boot with Grub installed?

Anyone else who is looking at this have any ideas? A non-NT system (Win98) and fdisk /mbr didn't fix the MBR.
 
Old 01-11-2003, 02:17 PM   #10
deadbug
Member
 
Registered: Oct 2002
Location: San Antonio, Texas
Distribution: MDK 8.0, 9.0; RH 7.2, 8.0, 9.0, FC3, FC4, FC5
Posts: 355

Rep: Reputation: 30
Looks like we're posting at the same time!

Sorry about the confusion over grub-install and /sbin/grub-install. I thought Red Hat would put the /sbin directory in root's path; apparently not. I'll keep that in mind in future posts!

Anyway, your system is back working as a dual boot and I'm heading away for the weekend. Let's give it til tomorrow evening to see if someone can help us with why fdisk /mbr didn't work.

Have a good one
 
Old 01-11-2003, 02:41 PM   #11
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Deadbug, ok. I am happy to sit on my hands for a while. I am still having trouble with affero, but I want you to know I really do appreciate your help.

Have a great weekend and be safe.

Kind regards,
TAH
 
Old 01-12-2003, 02:34 PM   #12
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Just a thought - check the partitions (with msdos fdisk) and make sure that the Windows partition is marked active. You may need to try the fdisk /MBR again.
 
Old 01-12-2003, 02:40 PM   #13
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
msdos fdisk? I'm afraid I may need some very specific instructions here to do what you suggest, i.e., to check if they're active.

Regarding trying fdisk /MBR again: I have done that per your suggestion to someone else. In fact, I did it twice and with the capitals (MBR). No luck. I get "Missing operating system" just as before.
 
Old 01-12-2003, 03:03 PM   #14
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You need the windows/dos version of fdisk and it has to be the same dos/win version as what's on your machine.

The fdisk application is menu-driven dos utility and it''s pretty much self-explanatory. Unfortunately I don't have a dos console to test on at the moment otherwise I could refresh my memory.
 
Old 01-12-2003, 03:34 PM   #15
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
hmmmm

I am not sure how to proceed from here.... "You need the windowos/dos version of fdisk...[same as what's on your machine]"

I'm lost
 
  


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
Getting rid of 'Grub' bigoli MEPIS 5 06-14-2005 06:45 AM
Getting rid of 'Grub' bigoli MEPIS 3 06-12-2005 06:01 PM
Getting grub to get rid of itself ? anjanesh Linux - Newbie 1 02-16-2005 07:26 AM
Can't get rid of GRUB aaronfg Linux - Newbie 2 12-07-2004 11:47 AM
How do I get rid of GRUB? Amerist Linux - Software 2 04-13-2002 08:49 AM


All times are GMT -5. The time now is 11:31 AM.

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