Solved

Linux Mandrake lilo problem

Posted on 2000-03-08
8
284 Views
Last Modified: 2013-12-15
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?
0
Comment
Question by:indicus
8 Comments
 
LVL 2

Expert Comment

by:bernardh
ID: 2597369
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.
0
 

Author Comment

by:indicus
ID: 2597635
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?
0
 
LVL 1

Expert Comment

by:friebele
ID: 2598157
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.
0
 

Author Comment

by:indicus
ID: 2598690
Adjusted points to 100
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:indicus
ID: 2598691
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.
0
 
LVL 1

Accepted Solution

by:
friebele earned 100 total points
ID: 2598889
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.
0
 
LVL 2

Expert Comment

by:Reinier
ID: 2600172
Friebele is right. In /etc/lilo.conf change the line

boot=/dev/hda

to

boot=/dev/hda?

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.

0
 

Author Comment

by:indicus
ID: 2600670
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.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now