LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-26-2004, 06:32 PM   #1
Lucinda
Member
 
Registered: May 2004
Location: Atlanta, GA
Distribution: Slackware Current
Posts: 54

Rep: Reputation: 15
LIL Error When Booting..What Do I Try Next?


I upgraded to Slack Current a few days ago and everything was going well. I haven't made any changes to my system files since then and didn't install any new software yesterday. This morning I tried to boot my machine and got the error message "LIL" when trying to load LILO. I have LILO on my MBR and I don't run any other OS except linux.

The explanation for the LIL error is:

" 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."

I couldn't boot with the cd I made from "makerescue" but I was able to boot with a Slax live cd. This morning I could get into the system fine after booting (via root=/dev/hda3), but noticed that once I was in, my hard drive was being recognized as /dev/ide/host0/bus0/target0/lun0/ instead of hda3!! Other than that, I could operate as "root" on /hd3. When I rebooted this evening, I wasn't able to do that anymore. I can't access "root=/dev/hd3" at boot time. The message I get back is that the kernel isn't available on that partition. Nor is it available on /dev/ide/host0/bus0/target0/lun0/part3.

I added a linear option to my lilo.conf file, but that didn't work. I couldn't run /sbin/lilo from my position as "root" on the Slax live cd because I didn't have proper permissions to the files on my hard drive (how can I change this??)


This is from my lilo.conf file:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
linear
append = "hdc=ide-scsi"
boot = /dev/hda
#compact
install = /boot/boot.b
map = /boot/map
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda3
label = Linux
read-only
# Linux bootable partition config ends



When I boot with the Slax live disk, my hda drive is no longer recognized. Instead, it becomes /dev/ide/host0/bus0/target0/lun0/. When I run /part3/sbin/lilo -v -v from that drive I get:

root@slax:/mnt/disc0part3# /sbin/lilo -v -v
LILO version 22.5.7.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2003 John Coffman
Released 20-Aug-2003 and compiled at 19:15:26 on Aug 25 2003.

Warning: LBA32 addressing assumed
raid_setup returns offset = 00000000 ndisk = 0
BIOS VolumeID Device
Reading boot sector from /dev/hda
pf_hard_disk_scan: ndevs=2
0300 3DB012B3 /dev/ide/host0/bus0/target0/lun0/disc
0800 2D6EE8C9 /dev/scsi/host1/bus0/target0/lun0/disc
device codes (user assigned pf) = 0
device codes (user assigned) = 0
device codes (BIOS assigned) = 0
device codes (canonical) = 3
Fatal: creat /boot/map~: Read-only file system

(The last "fatal" error is due to me running the program as "root" on the Slax live cd and not as root on hda3).

The output I get from running fdisk -l as "root" on the Slax live cd is :

Disk /dev/ide/host0/bus0/target0/lun0/disc: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 8 64259+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 9 138 1044225 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part3 139 4866 37977660 83 Linux

I tried to run /sbin/lilo -v -v -v >/boot/lilo.log 2>/boot/lilo.logerr from dev/ide/host0/bus0/target0/lun0/part3, but it didn't work because I didn't have permission to write to the /boot directory and I was unable to change this permission while logged on as "root" on the Slax live cd. Is there some way that I can become root on / on my hard drive so that I can change permissions to allow me access to files and directories?

I entered the bios settings on my Dell Dimension 4500, but I didn't see any information about the hard drive, so I can't tell if there is a geometry mismatch or not.

I also have an external hard drive and CF card reader that the Slax live cd also recognizes.

Any idea what I can try next? Fortunately, I have my system backed up to my external hard drive. What else can try other than a complete reinstall? What could suddenly be causing this error?

Thanks,
Lucinda
 
Old 05-26-2004, 11:03 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
You can run lilo from a knoppix cd using chroot. Boot up with knoppix and open a console and run:

$ su
<Enter>
# mount /dev/hda3 /mnt/hda3
# chroot /mnt/hda3
# /sbin/lilo -v

I'm not sure about the slax live cd but in knoppix all the partitions are mounted "nodev" and as a result, lilo will not run; you get a permission denied error even as root and it won't allow you to do chroot IIRC. Using the mount command per the above fixes that in knoppix(i.e. including the "/dev/hdxx" with the mount point in the mount command) and lilo will run and write to your mbr.
 
Old 05-27-2004, 07:29 PM   #3
Lucinda
Member
 
Registered: May 2004
Location: Atlanta, GA
Distribution: Slackware Current
Posts: 54

Original Poster
Rep: Reputation: 15
Here's where I'm at today, following up with my post from yesterday.

I haven't been able to get makebootdisk to make a proper LILO boot disk for me (maybe the files are too big?), but I managed to find an old Syslink boot disk that I could boot with. I used this to get into my system and create a new Syslink boot disk with my new kernel. I can boot up my system NO PROBLEM with the Syslink boot disk. Everything looks and functions as it should. But I don't want to be relegated to booting off a floppy for the rest of my life...

So it looks like my hard drive itself is fine.

I then tried this:
lilo -u /dev/hda

followed by lilo and rebooted, but I had no luck.

I then used "hdparm" to see how linux sees my hard drive and got these results:
hdparm -g /dev/hda

/dev/hda:
geometry = 4866/255/63, sectors = 78177792, start = 0

So it is seeing 4866 cylinders, 255 heads and 63 sectors.

I then ran "/sbin/lilo -v -v -v >/boot/lilo.log 2>/boot/lilo.logerr" and got nothing back in the .logerr file (good) and the .log file produced this for lilo:

******************************************

raid_setup returns offset = 00000000 ndisk = 0
BIOS VolumeID Device
Reading boot sector from /dev/hda
pf_hard_disk_scan: ndevs=1
0300 3DB012B3 /dev/hda
Resolve invalid VolumeIDs
Resolve duplicate VolumeIDs
0300 3DB012B3 /dev/hda
device codes (user assigned pf) = 0
device codes (user assigned) = 0
device codes (BIOS assigned) = 0
Filling in '/dev/hda' = 0x80
device codes (canonical) = 1
Device 0x0300: BIOS drive 0x80, 255 heads, 4866 cylinders,
63 sectors. Partition offset: 0 sectors.
Using serial number 3DB012B3 on bios 80
Device 0x0303: BIOS drive 0x80, 255 heads, 4866 cylinders,
63 sectors. Partition offset: 2216970 sectors.
Using serial number 3DB012B3 on bios 80
Warning: Unable to determine video adapter in use in the present
system.
Using MENU secondary loader
Calling map_insert_data
Secondary loader: 17 sectors (0x3200 dataend).
bios_boot = 0x80 bios_map = 0x80 map==boot = 0 map S/N: 3DB012B3
Mapping message file /boot/boot_message.txt
Device 0x0303: BIOS drive 0x80, 255 heads, 4866 cylinders,
63 sectors. Partition offset: 2216970 sectors.
Using serial number 3DB012B3 on bios 80
Calling map_insert_file
Message: 1 sector.
BIOS data check will include auto-suppress check

Boot image: /boot/vmlinuz -> vmlinuz-ide-2.4.26
Device 0x0303: BIOS drive 0x80, 255 heads, 4866 cylinders,
63 sectors. Partition offset: 2216970 sectors.
Using serial number 3DB012B3 on bios 80
Setup length is 10 sectors.
Mapped 2457 sectors.
Added Linux *
<dev=0xc0,hd=54,cyl=122,sct=29>
"ro root=303 hdc=ide-scsi"

BIOS VolumeID Device
80 3DB012B3 0300
Writing boot sector.
/boot/boot.0300 exists - no boot sector backup copy made.
Map file size: 26624 bytes.
RAID device mask 0x0000
Failsafe check: boot_dev_nr = 0x0300 0xffc0

**********************************************************

which seems to indicate that lilo is seeing the same hard drive
geometry as linux (i.e. 4866/255/63).

I didn't see any obvious errors in dmesg after booting with the
Syslink boot disk, and the part relevant to hda is shown as:

**********************************************************

hda: MAXTOR 6L040J2, ATA DISK drive
blk: queue c03b73e0, I/O limit 4095Mb (mask 0xffffffff)
hdc: LITE-ON LTR-24102M, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 78177792 sectors (40027 MB) w/1819KiB Cache, CHS=4866/255/63,
UDMA(100)
hdc: attached ide-cdrom driver.
hdc: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 hda2 hda3
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
8regs : 2288.400 MB/sec
32regs : 1466.800 MB/sec
pIII_sse : 2562.400 MB/sec
pII_mmx : 2286.000 MB/sec
p5_mmx : 2261.200 MB/sec
raid5: using function: pIII_sse (2562.400 MB/sec)
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.8(17/11/2003)
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
FAT: bogus logical sector size 0
UMSDOS: msdos_read_super failed, mount aborted.
FAT: bogus logical sector size 0
FAT: bogus logical sector size 0
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,3)) ...
for (ide0(3,3))
ide0(3,3):Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 120k freed
Adding Swap: 1044216k swap-space (priority -1)
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 690M
agpgart: Detected Intel i845 chipset
agpgart: AGP aperture is 64M @ 0xf8000000
scsi0 : SCSI host adapter emulation for IDE ATAPI devices

*********************************************************

I have to admit, I don't know how to interpret the dmesg results. Any obvious problems there?

And I did add LBA32 to my lilo.conf which is supposed to allow lilo to bypass any cylinder limits on the hard drive, but that didn't work either.

I don't understand why lilo doesn't like the hard drive. Like I've said, it's worked fine, I made no changes to lilo and then suddenly the "LIL"... message popped up. Maybe I should consider using a new loader (i.e. GRUB?). Or will doing something with "udev" help?

Thanks for your help,
Lucinda
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
URMPI... lil help admstng Mandriva 2 12-28-2004 09:58 PM
how do i fix lilo when i get a LIL- while booting saqres Linux - General 6 10-07-2004 03:34 PM
lilo error :lil- domeili Linux - Newbie 1 10-28-2003 08:35 AM
need a lil c++ help Patchorus Programming 7 09-16-2003 01:05 AM
LIL- error message on bootup gedi1 Linux - General 5 10-04-2001 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:15 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