LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-30-2001, 04:14 PM   #1
johnnyd
LQ Newbie
 
Registered: Apr 2001
Posts: 17

Rep: Reputation: 0
Angry


Well I did it again. After make bzImage wouldn't make an image file, and my changes to xf86config toasted everything, I redid the .config file by doing a make menuconfig, that got me the bzImage file I desired. copied the bzImage file to /boot , changed ther /etc/lilo.conf file, ran sbin/lilo and everything ran fine. Then when I rebooted my cahine starts to boot and the get to LIL- and thaT'S it. LILO won't run. I can boot from an old bootimg floppy and with the setup CD but that doesn;t matter because I don't know what to change....OY VEY

Any ideas guys?
 
Old 04-30-2001, 05:19 PM   #2
billsabub
Member
 
Registered: Feb 2001
Posts: 109

Rep: Reputation: 15
From: /usr/share/doc/lilo-21.4.4/README

LIL The second stage boot loader has been started, but it can't load the descriptor table from the map file. This is typically caused by a media failure or by a geometry mismatch.

Have you done any other tweaking with your system? Partitions, etc.?
 
Old 04-30-2001, 05:24 PM   #3
johnnyd
LQ Newbie
 
Registered: Apr 2001
Posts: 17

Original Poster
Rep: Reputation: 0
I didn't do anything to the partitions. I added a network card and was messing with the video drivers, and I think I enabled sound.

DO you know how to repair this or am I forced to to a re-install?
 
Old 04-30-2001, 07:19 PM   #4
billsabub
Member
 
Registered: Feb 2001
Posts: 109

Rep: Reputation: 15
Here are some causes of LILO errors. Step through them (I know you said you've done some, so give the others a try).

Disk error codes can indicate problems such as an open floppy door, a drive timeout, a controller error, a media problem, a BIOS error, or even transient read problems (which can be overcome by rebooting). Overall, some common problems with LILO include

* Not rerunning /sbin/lilo following a kernel change

* Incorrect use of /sbin/lilo in creating a new boot map

* Installing and booting Linux from a very large (2GB+) partition

* Installing another operating system (such as Windows 95, which overwrites the MBR) after installing Linux and LILO

* Errors in /etc/lilo.conf after manual edits

* A corrupted MBR

* Installation of LILO in a Linux swap partition (which should be impossible)

* A missing Linux kernel image (error in /etc/lilo.conf)

* Installing Linux on and booting from a DOS partition and then defragmenting the DOS partition

* Passing incorrect kernel messages at the LILO: prompt

If you run into trouble, definitely peruse Almesberger's readme file, found under the /usr/doc/lilo directory. Take his advice: Don't panic! With a little forethought, detection, and perseverance, you should be able to avoid or overcome problems.

Or, from http://sunsite.dk/linux-newbie/Linux_LILO.htm :

I quote from my good handbook "Red Hat Linux Unleashed" by Kamran Hussain, Timothy Parker, et al., published by SAMS Publishing:
"When LILO loads itself, it displays the word LILO. Each letter is printed before or after performing some specific action. If LILO fails at some point, the letters printed so far can be used to identify the problem. [...]
LI [...] This is caused either by geometry mismatch or by moving /etc/lilo/boot.b without running the map installer.
LIL [...] This is typically caused by media failure or geometry mismatch."
The geometry means the number of sectors/heads/cylinders used in the hard drive configuration of your BIOS. Hope this helps!
It is a very good idea to have a handbook for Linux or at least a general UNIX handbook. Handbooks for Windows are useless, handbooks for Linux are great! "Red Hat Linux Unleashed" is a very good handbook but I am sure there are many other equally good ones.
With a LILO error like above, you can boot your machine using a Linux or DOS boot floppy. There seems to be several general possibilities to correct such a LILO error, depending on what is wrong:
1. If LILO simply got corrupted (does not seem very common), you can remove and re-install it. You can remove LILO by running under Linux:
lilo -u /dev/hda
or, under DOS:
FDISK/MBR
which rewrites the hard drive master boot record (MBR), in which LILO resides, and replaces it with "clean" DOS stuff. You will lose access to Linux if you rebooted your computer after removing LILO (if this happend, you can boot Linux from the floppy and re-install LILO on top of the DOS MBR).

To re-install LILO, simply re-run the command lilo (as root).
2. Specify the option
linear
at the top of your /etc/lilo.conf file. This is particularly useful for large drives (>8 GB). See man lilo.conf for details. The option "linear" is safe--it should not affect a properly working system, so you can specify this option is any case.

You may also want to play with the method by which BIOS accesses your harddrive. Fore example, turn the LBA ("linear or large block access") mode on/off in your BIOS to see if this helps.

Instead of the option "linear" you may try specifing the option (helpful to overcome the 1024 cyliner limit with larger hardrives and newer BIOSes):
lba32
This is a new option so it won't work with the stock LILO supplied with RH6.1 or lower. Use the latest Mandrake or RedHat if having the "LI" kind of problems--hard drives are bigger and bigger, and BIOS makers put new tricks to support them.

3. Look into your BIOS setup and figure out how the specified hard drive geometry does not match your hard drive. From under Linux, you can display the hard drive geometry using (for example, for the first IDE hard drive):
hdparm -g /dev/hda

You can typically easily find the recommended manufacturer geometry on the web using Google to search for your harddrive model number.

4. Put LILO on another partition (different hard drive) and, using fdisk, make this partition bootable (if your system supports booting from another drive). Or swap your hardrives so that the one that is better supported by your old BIOS comes as the first hard drive on your first IDE interface (DOS drive "C").
5. Maybe you prefer to use "loadlin" instead of "lilo". From under DOS, locate your CDROM and see the program /dosutils/loadlin.exe. It boots Linux from DOS.

6. Get rid of LILO and use GRUB. Mandrake 7.2 contains GRUB as the default boot loader.
 
Old 05-01-2001, 11:00 AM   #5
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
it sounds like you didn;'t copy the System.map file after the install to the /boot directory either. after compile, in the /usr/src/linux folder there should be this System.map file for your compiled kernel. this need to accompany it.

often an old System.map will work but not always so on the safe side you should always copy as well (making sure you back up the old one).

Alex
 
Old 05-01-2001, 02:59 PM   #6
johnnyd
LQ Newbie
 
Registered: Apr 2001
Posts: 17

Original Poster
Rep: Reputation: 0
Angry Still not fixed......

Well I re ran lilo, edited lilo.conf (several times), copied the new System.map file to /boot

and it still won't budge from LIL-

I didn't do anything to the partitions, all I did was tweak the kernel for devices. I can boot from the bootimage on a floppy and the install CD no problem.

I am stumped and frustrated. Everywhere I look tells me what the problem is but doesn't give a decent solution, except for the few replies I got here.

Can anyopne point me in a direction to tackle this problem further?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Peanut linux installation woes r121 Linux - Newbie 2 05-27-2005 12:39 PM
Linux for PPC woes bakuretsu Linux - General 3 07-11-2003 09:12 AM
Linux MD RAID woes eck Linux - Hardware 0 01-11-2003 08:52 PM
Linux woes Eoin Linux From Scratch 3 12-21-2002 02:09 PM
Linux installation/questions and woes...... johnnyd Linux - General 1 04-25-2001 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration