Next Previous Contents

4. Moving LILO configuration files

Sometimes, one must play with LILO configuration files. The good news is that (1) they are movable and (2) you can tell Linuxconf about it. Just go to the "List all configuration files" menu, scroll to the /etc/lilo.conf line and select the edit button. Enter the new path of the LILO configuration file. Be aware that LILO expects to find its configuration file in /etc/lilo.conf. When moving the file, it has to go to a subdirectory holding an etc subdirectory in which you will place the file lilo.conf (for example: /mnt/tmp/etc/lilo.conf).

4.1 Why move LILO anyway?

There are different reasons why one would want to do this. Here are some of those reasons:

On the other hand, some distributions properly install all the files needed for booting in a /boot directory, which is kept in a separate partition, if your root directory is not entirely below the 1024 cylinder mark. In that case, you are not likely to need to move LILO at all.

4.2 How to move? And where?

On a machine dedicated to Linux, where you have a large drive with more than 1024 cylinders, many people will create a smaller partition for the basic OS and a larger for the data, insuring that all LILO files fits under the 1024 cylinder limit.

This is often annoying as it makes management more complex. You end up with two partitions partly filled.

Another solution is to create a very small partition (a few megs) at the beginning of the disk and reserve that for LILO configuration and kernel files. In this way, you can create a single large root partition which is easier to manage.

(One can argue that creating a single large partition is a bad idea as it puts "all the eggs in the same basket." Given the design of the EXT2 filesystem, which distributes management information all over the partition, with replication, I doubt this applies anymore).

So you have a partition which fits the bill. It is all accessible from the BIOS? Here are the steps to follow. Suppose this partition is mounted under the lilo directory and you want to put all the configuration files in the root of this partition.

You can activate this moved configuration like this

        /sbin/lilo -r /lilo

And you can do this with Linuxconf by telling it the /etc/lilo.conf is now /lilo/etc/lilo.conf. From now on, using Linuxconf, this should be completely invisible to you or whoever manages your machine.

Next Previous Contents