Linux Mandrake lilo problem

I have a compaq deskPro 5100, Win98SE, and Mandrake share the drive I installed both OS's, with Lilo in the MBR, but then I installed PQ's BootMagic, which I like very much, and it over wrote the MBR.
I have tried going into that part of the setup and instead of installing Lilo to the MBR, install it into the first sectors of the Linux partition. This didn't work.  I have made the rescue and boot disks, but I am lost as to setting up lilo to boot from the linux parttion rather than the MBR, and using the liloconf, to set it u, rather than blowing the whole thing away to reinstall.  How do I rescue this lilo setup?
Who is Participating?
friebeleConnect With a Mentor Commented:
OK. You are going to have to excuse me because I am not infront of my home computer and don't have an output of lilo.conf in front of me at the moment. From memory, do this:
open a terminal and change to superuser (type su) or login in linux as root. In the terminal open up the configuration file in an editor (kwrite /etc/lilo.conf). Near the top of configuration file should be a reference to a partition (I think refers to boot) which shows the location of where lilo is written. It is identified by /dev/hda (meaning it is currently writing to the MBR of your primary hard disk. Change this to /dev/hda? where ? is your linux root partition number. If you are not sure of the number it should be referenced further into the configuration file where your kernal is identified. Alto you will see a menu reference to "other" which is your windows partition (/dev/hda1). As you will be using boot magic you do not need this reference so remove the couple of lines under this heading. When done, save the file, close the editor, and type "lilo". A message should be written to the screen listing the labels (only linux) and that all OK.

If you have a problem (ie lose access to windows) you can overwrite the boot manager by booting with a windows startup disk, and type "fdisk /mbr" to replace the master boot record to boot windows.
if your BootMagic managed to identify your linux boot partition and you can boot linux through that boot manager, then don't bother to install lilo at the MBR or other linux partition. but if you want to restore the old state of your mbr, then use the command /sbin/lilo -u or fdisk /mbr.
indicusAuthor Commented:
That is the thing, even though the boot manager will recognize the linux partition, if I choose that partition at boot time it just sits there.  My theory is that I loaded lilo into the MBR rather than the first sector of the linux partition, at the time of original setup.  Basically what I want to do is load lilo into the first sectors of the linux partition, or in essence when I choose the linux OS from the Boot Manager, that it will come up, since the BootManager resides in the MBR, lilo cannot, it has to go somewhere else, but where?
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Although Boot Magic recognises your linux partition, it does not know where to find your boot image. Firstly boot up linux (with a rescue disk). Change the lilo.conf file so that lilo is written to hda? where ? is your linux root partition. As lilo will be directly run by BootMagic, you should remove other operating systems and only leave linux. Then run lilo. Reboot your system if you need to configure boot magic from another operating system (eg Win98) and reconfigure boot magic so that it reads your linux partition. Therefore when you select linux in Boot Magic, it reads lilo from your linux partition and then starts up.
indicusAuthor Commented:
Adjusted points to 100
indicusAuthor Commented:
O.K. so far so good...I like that idea, now you wrote, and I quote "Change the lilo.conf file so that lilo is written to hda? where ? is your linux root partition."
Now How in detail do I change lilo.conf, again I must apologize for my newbieness.  That's why I'm asking the questions, and you guys are answering them.  I really do want to learn Linux but I need to run Win98, even if it is a trimmed down version, I am using it for testing, and code debugging. total Win98SE install is +-175Mb, just for debugging files. No Internet Explorer or other MS addons. Linux will be the Main OS for this machine. but I do need details, as so far the farthest I have gotten on Linux witht hat particular machine is installation!
Thanks again for your pacience and help.
Friebele is right. In /etc/lilo.conf change the line




And since lilo is now going to be sort of a chain loader you might want to consider changing some other options to. Look at "man lilo.conf" and read about the boot, timeout, delay and prompt keywords.

indicusAuthor Commented:
Thank you for the walk through, I had gotten as far as booting w/ the rescue disk before, when I first encountered the problem, but I didn't know how to edit lilo.conf, but I am sure that I can stumble through it now that the picture is a bit clearer. I have noticed that the rescue boot up severly limits what I can do. Just learning...and havin' fun.
Thank You all for the help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.