[SOLVED] Grub"2": Windows 98 installation not auto-detected
Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Grub"2": Windows 98 installation not auto-detected
I have installed Windows 98 and Debian together before. This time however I started to run into trouble from the start. There was a Win XP and Debian installation left-over, but I had made considerable changes to the hardware, so I decided to format and create new partitions (Parted). The Wind 98 installer didn't like that, and eventually, I cleared the disk with Parted and used Fdisk. When I installed Debian, it couldn't find my Win 98 installation, but I thought it would be easier to add it to Grub with a working Linux, than installing Grub via Win 98/DOS. Debian starts up fine. Windows partition visible, and I believe correct. I could use Win 98 before I installed Linux.
Information I've found so far:
I think I need to add this (somewhere?):
and this (which seems to be the way to go for the old Grub):
title Microsoft Windows 98/SE
I can't make sense out of the "new" Grub manual. In there I've found a lot of information on setup preliminaries (which the Debian already took care of for me), but I can't find the page that says where I actually edit the menu. (And, I guess, after that run update-grub.)
Most tutorials seem to be on "legacy" Grub...
Some help, please. Solution:
The reason it wasn't auto-detected seems to be that I installed Linux in another primary partition.
Add (something like) the following to /etc/grub.d/40_custom
Read the fabulous manual of Grub... There are some links to reference material in this thread. I just reformatted and created a logical partition for Linux, and it worked. Align the logical partition to cylinder heads, if you want to share ut between Linux and Windows.
Last edited by Weapon S; 07-20-2011 at 07:58 AM.
... and that's what's not happening. It's very clear to me what should be done, but Grub doesn't agree. I'm willing to fix it manually, but I rather not go as far as manually editing grub.cfg.
BTW I also ran os-prober (and then update-grub).
I had no idea I had so many partitions... (WIN98, Extended, logical in the extended, Linux, Swap, USB-Stick, ?, ?, ?)
I have version 1.98. Apparently it works completely with a template system (*shiver*), but there is a template provided to hack something in, namely /etc/grub.d/40_custom. Going to try that now. I had to read that in grub.cfg D:
Ha! That all looks like voodoo to me. :") I guess that sdb was my USB stick.
Grub to Grub2 differences: I've figured out that makeactive is replaced by parttool boot=true (and that this is only necessary for multiple Windows installations.) setdefault is replaced by some global flag somewhere in the config files.
(I'm really peeved I have to learn something obsolete, just to understand all the tutorials.)
This deals with Windows 9x for old Grub: http://www.faqs.org/docs/Linux-HOWTO...rub-HOWTO.html
Now I just have to translate rootnoverify to grub2, and we're done. I hope that the quirks Win 98 has now will be gone after that. Thank you, and good night.
I'll have to figure out what all the magic commands and numbers are. (But I'd rather have somebody giving me the answer :P)
OK, figured most part out. search will look if a device with a certain criterion exists. (In the example file system UUID.) If the set option is given, it will replace $root with the finding. drivemap maps/switches devices (ignoring paths, if they are in the arguments). -s tells it to switch the reverse too (hd0 becomes $root and $root becomes hd0). This seems unnecessary in this case...
Going to try this:
BTW I installed a KVM switch so that might be causing the mouse quirks :")
Screw this. I've blargagled my Win98 installation (with iffy drivers, not by Grub), so I'm going to nuke the whole thing and reinstall with Linux residing in a Logical partition instead of a primary... which seems what was my previous setup.