All newer versions than 2.5.6-r2 of lilo fail giving following error: ---cut--- root@syl maik(0) # lilo -v5 LILO version 22.5.8, Copyright (C) 1992-1998 Werner Almesberger Development beyond version 21 Copyright (C) 1999-2003 John Coffman Released 10-Oct-2003 and compiled at 12:27:48 on Jan 26 2004 raid_setup: dev=0008 rdev=0300 raid_setup returns offset = 00000000 ndisk = 0 BIOS VolumeID Device Reading boot sector from /dev/hda geo_get: device 0300, all=1 pf_hard_disk_scan: (58,0) /dev/vg00/lv00 Caching device /dev/vg00/lv00 (0x3A00) pf_hard_disk_scan: (33,0) /dev/ide/host0/bus1/target0/lun0/disc Fatal: cache_add: LILO internal error ---cut--- I use a A7V133 incl. promise raid controllers. However, the promise just work as normal ide controllers, not raid devices. The system has grown some days, so the setup is somewhat strange: ---cut--- maik@syl ide(0) $ cat hd*/model Maxtor 34098H4 1st Promise Master IBM-DTLA-307030 1st Promise Slave PIONEER DVD-RW DVR-106D 1st Via Master ASUS DVD-ROM E608 1st Via Slave MAXTOR 6L080J4 2nd Promise Master ---cut--- The 2nd VIA is disabled by bios. I use kernels compiled with boot-offboard-chipset first. Using a modified [1] lilo-2.5.6-r2 everything is working fine. Using anything never fails. I thought it is based on the glibc233 patch but in line with info given in bug 39362, it has nothing to do with. My lilo.conf: ---cut--- boot = /dev/hda vga = 0x317 read-only lba32 prompt install = menu timeout = 80 append = "mem=nopentium hdc=ide-scsi hdd=ide-scsi max_scsi_luns=1" default = 2423-r1-xfs image = /boot/vmlinuz-2.4.23r1 label = 2423-r1-xfs root = /dev/hda7 image = /boot/vmlinuz-gentoo label = 2420-r3-xfs root = /dev/hda7 image = /boot/vmlinuz-2.4.21xpdl label = deb-XPDL-2.4.21 root = /dev/hde5 image = /boot/vmlinuz-2.4.18 label = deb_XFS_2.4.18 root = /dev/hde5 image = /boot/memtest.bin label = memtest86 ---cut--- My Standard mounts from fstab: ---cut--- /dev/hda2 /boot ext2 defaults,noatime 1 1 /dev/hda7 / xfs noatime 0 0 /dev/hda9 /usr xfs defaults 0 0 /dev/hdb1 /tmp xfs defaults,noexec 0 0 /dev/hda5 /var/tmp xfs defaults /dev/hdb5 /games xfs defaults 0 0 /dev/vg00/lv00 /multimedia xfs user 0 0 ... ---cut--- Partitions: ---cut--- maik@syl ide(0) $ cat /proc/partitions major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq 58 0 70254592 vg00/lv00 0 0 0 0 0 0 0 0 0 0 0 33 0 78177792 ide/host0/bus1/target0/lun0/disc 58 874 1265 230 5 508 513 10 -2 3284960 36379952 33 1 48163 ide/host0/bus1/target0/lun0/part1 1 3 8 10 0 0 0 0 0 10 10 33 2 1 ide/host0/bus1/target0/lun0/part2 1 0 2 0 0 0 0 0 0 0 0 33 5 7815591 ide/host0/bus1/target0/lun0/part5 9 21 90 30 0 0 0 0 0 30 30 33 6 70308441 ide/host0/bus1/target0/lun0/part6 40 821 1093 170 5 508 513 10 0 150 180 3 0 40021632 ide/host0/bus0/target0/lun0/disc 5572 14853 161851 38540 2277 2343 34897 5220 -1 3251360 39708362 3 1 2048256 ide/host0/bus0/target0/lun0/part1 1 3 8 10 0 0 0 0 0 10 10 3 2 56227 ide/host0/bus0/target0/lun0/part2 8 21 58 120 1 0 2 0 0 90 120 3 3 1 ide/host0/bus0/target0/lun0/part3 1 0 2 0 0 0 0 0 0 0 0 3 5 5124703 ide/host0/bus0/target0/lun0/part5 33 72 676 270 15 64 598 70 0 310 340 3 6 1542208 ide/host0/bus0/target0/lun0/part6 1 3 8 10 0 0 0 0 0 10 10 3 7 8795556 ide/host0/bus0/target0/lun0/part7 2739 4429 56704 17520 1408 1195 18520 1840 0 16470 19360 3 8 5855661 ide/host0/bus0/target0/lun0/part8 31 71 638 170 4 60 512 20 0 160 190 3 9 9767488 ide/host0/bus0/target0/lun0/part9 2751 10233 103701 20320 849 1024 15265 3290 0 19950 23610 3 64 30018240 ide/host0/bus0/target1/lun0/disc 88 166 1540 330 152 173 2238 120 -1 3284650 39665102 3 65 1536160 ide/host0/bus0/target1/lun0/part1 49 77 837 190 147 113 1725 120 0 280 310 3 66 1 ide/host0/bus0/target1/lun0/part2 1 0 2 0 0 0 0 0 0 0 0 3 69 20480008 ide/host0/bus0/target1/lun0/part5 30 71 637 90 5 60 513 0 0 80 90 3 70 512032 ide/host0/bus0/target1/lun0/part6 2 0 16 0 0 0 0 0 0 0 0 3 71 7489912 ide/host0/bus0/target1/lun0/part7 1 3 8 0 0 0 0 0 0 0 0 ---cut--- Reproducible: Always Steps to Reproduce: 1. Emerge any never lilo version 2. run lilo 3. Actual Results: Fatal: cache_add: LILO internal error Expected Results: root@syl ide(0) # lilo Added 2423-r1-xfs * Added 2420-r3-xfs Added deb-XPDL-2.4.21 Added deb_XFS_2.4.18 Added memtest86 root@syl ide(1) # emerge info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.23-xfs-r1) ================================================================= System uname: 2.4.23-xfs-r1 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acl acpi alsa apm arts avi berkdb bonobo cdr crypt cscope cups curl dga dierctfb doc dvb dvd dvdr emacs encode esd ethereal fastcgi foomaticdb gb gd gdbm ggi gif gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile imap imlib innodb jack java joystick jpeg kde ladcca lcms ldap libg++ libwww lirc mad matroska mbox mcal mikmod motif mozilla mpeg mysql naspda ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang slp snmp socks5 spell ssl svga sysl tcltk tcpd tetex tiff truetype usb videos wmf x86 xml2 xmms xosd xv zlib"
> pf_hard_disk_scan: (33,0) /dev/ide/host0/bus1/target0/lun0/disc > Fatal: cache_add: LILO internal error > Maxtor 34098H4 1st Promise Master > IBM-DTLA-307030 1st Promise Slave > PIONEER DVD-RW DVR-106D 1st Via Master > ASUS DVD-ROM E608 1st Via Slave > MAXTOR 6L080J4 2nd Promise Master > The 2nd VIA is disabled by bios. Looks to me like /dev/ide/host0/bus1/target0 might be the 2nd Promise Master. Since you have disabled the 2nd VIA in bios, maybe that's why lilo thinks the device name or number does not match. I would remove devices until finding which one is causing the error, to focus the bug report exactly where the problem is. > All newer versions than 2.5.6-r2 Did you mean 22.5.6?
> > The 2nd VIA is disabled by bios. Sorry, I was totaly wrong here. I disabled the primary VIA. The cdroms are at secondary. When I enable the primary VIA it is probed for hda and due to hd mismatch afterwards it all end in kernel panic. > Looks to me like /dev/ide/host0/bus1/target0 might be the 2nd Promise Master. Yes, bus1 is second Promise. > Since you have disabled the 2nd VIA in bios, maybe that's why lilo thinks the > device name or number does not match. The other way round, sorry :(. > I would remove devices until finding which one is causing the error, to focus > the bug report exactly where the problem is. Detaching hde (2nd promise) make all lilo > 2.5.6 work, too. > > All newer versions than 2.5.6-r2 > Did you mean 22.5.6? I dunno details :(, this is what works even with my strange setup: /usr/portage/sys-boot/lilo/lilo-22.5.6-r2.ebuild
Found some time to change my setup: VIA 1 master: hda (Maxtor 34098H4 former on Promise 1 master) VIA 1 slave: hdb (IBM-DTLA-307030 former on Promise 1 slave) VIA 2 master: DVD-burner (same as former) VIA 2 slave: DVD (same as former) Promise 1 master: hde (MAXTOR 6L080J4 former Promise 2 master) I enabled both VIA, and disables "onboard ATA 100 bios" load from bios. The old setup was a relict from times I had a A7V(plain), where speed on Promise is promised ;) to be faster than on VIA. I think my new setup is much more common now, no more problem with any version of lilo :). In spite there must be some differences making the never versions of lilo fail with the old setup I would like to change [1] serverity as the problem will rarely hit someone else, IMHO. [1] If I should not do so, please drop me a note.
re-open if sys-boot/lilo-22.6 + latest stable kernel has issues