Re: linux kernel 2.4.10 possibly breaks LILO

From: Andreas Dilger (
Date: Thu Sep 27 2001 - 00:01:52 EST

On Sep 26, 2001 23:48 -0400, Ken Zalewski wrote:
> 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.

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?"               -- Dogbert

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:00:53 EST