linux kernel 2.4.10 possibly breaks LILO
Summary:
Modifying /etc/lilo.conf and running "lilo" when using kernel version 2.4.10 does not appear to modify the boot sector accordingly, even though I receive no errors or warnings. On next reboot, LILO is configured as it was previous to my changes. I am therefore unable to modify LILO configuration in any way while using 2.4.10.
Machine summary:
AMD Athlon 1 GHz
VIA 686b southbridge
512 MB PC133 SDRAM/dev/hda = 30 GB Western Digital ATA-100 drive/dev/hda1 is root partition and active partition
Linux 2.4.10
LILO 21.7-5
Details:
I recently built the latest 2.4.10 kernel from source and installed it (upgraded from 2.4.7). Ran "lilo", and the new image booted and I was happily running 2.4.10. I then made some changes to /etc/lilo.conf, re-ran "lilo", and rebooted. On reboot, the my changes were not apparent, and the previous configuration was used.
I began experimenting more, making drastic changes to /etc/lilo.conf. No matter what I did to lilo.conf (even changing from "linear" to "lba32" and back), running "lilo" produced no change to the startup.
I used a floppy to boot into 2.4.7, ran "lilo", rebooted, and noticed that my changes had registered.
I then built kernel version 2.4.9, and did the same experiment. My change to /etc/lilo.conf registered fine on the next reboot.
As a result, I have concluded that something has changed between 2.4.9 and 2.4.10 that causes LILO to be unable to overwrite the boot sector of the active partition. I also tried using LILO 22.0-beta, and the problem persisted.
My kernel configurations for both 2.4.9 and 2.4.10 are almost identical.
I do not know if this is something specific to my own machine, but it is consistently reproducible. I have used versions 2.4.5, 2.4.7, 2.4.9, and 2.4.10, and LILO fails to work ONLY on 2.4.10. No errors are printed by LILO, and doing "lilo -q -v" before rebooting seems to indicate that everything happened properly (though I think that only reads the map file, not the actual boot sector).
I would appreciate a response regarding this issue. I have not seen anything posted about this yet, so it could be something specific to my machine - it's just strange that it just started happening on 2.4.10.
Thanks for any assistance you can provide.
Signature · 4 lines
Ken Zalewski -- Director of Information Technology Document Development Corporation 1223 Peoples Avenue, Troy, NY 12180 [email protected] http://www.cs.rpi.edu/~kennyz/
Quoted 5 lines · Ken Zalewski
Modifying
/etc/lilo.confand running "lilo" when using kernel version 2.4.10 does not appear to modify the boot sector accordingly, even though I receive no errors or warnings. On next reboot, LILO is configured as it was previous to my changes. I am therefore unable to modify LILO configuration in any way while using 2.4.10.
It is likely the blkdev-in-pagecache change which caused this problem. If you have a mounted filesystem on the same device as the bootsector you are writing (e.g. /dev/hda1) and the bootsector shares a block with the filesystem (e.g. 2kB or 4kB blocks and ext2/ext3) then any changes made to the bootsector are overwritten as soon as you make any change to the filesystem.
To test this theory (if possible) you could remount the filesystem read-only before running LILO. This would only work if you had a setup like /dev/hda1 is / and /dev/hdX is /boot, because you still need to be able to write into /boot. If /boot is in the root fs, it is not possible to do this. If you CAN do this, then you need to reboot after running LILO.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
--- Ken Zalewski <[email protected]> wrote: >
Summary:
Quoted 4 lines
Modifying
/etc/lilo.confand running "lilo" when
using kernel version
2.4.10 does not appear to modify the boot sector
.tux.org/lkml/
Negative here, I just modify lilo.conf, add the option prompt; run lilo and reboot. It works fine.
I use 2.4.10 with preemt patch...
I believe the others options will work too.
=====
S.KIEU
http://travel.yahoo.com.au - Yahoo! Travel
- Got Itchy feet? Get inspired!