Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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.
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!
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...
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.