Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Linux Mandrake lilo problem

Posted on 2000-03-08
8
288 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:indicus
ID: 2598690
Adjusted points to 100
0
 

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

856 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