First, figure out how large the filesystem should be. Take the size of your
kernel in blocks (the
        size shown by `ls -l KERNEL'' divided by 1024 and rounded up) and
add 50. Fifty blocks is
        approximately the space needed for inodes plus other files. You can
calculate this number
        exactly if you want to, or just use 50. If you're creating a
two-disk set, you may as well
        overestimate the space since the first disk is only used for the
kernel anyway. Call this number
        KERNEL_BLOCKS. 

Put a floppy diskette in the drive (for simplicity we'll assume /dev/fd0)
and create an ext2 kernel
        filesystem on it: 

                mke2fs -i 8192 -m 0 /dev/fd0 KERNEL_BLOCKS

        The `-i 8192'' specifies that we want one inode per 8192 bytes.
Next, mount the filesystem,
        remove the lost+found directory, and create dev and boot directories
for LILO: 

                mount /dev/fd0 /mnt
                rm -rf /mnt/lost+found

kdir /mnt/{boot,dev}


cp -R /dev/{null,fd0} /mnt/dev


 cp /boot/boot.b /mnt/boot

Finally, copy in the LILO configuration file you created in the last
section, along with your
        kernel. Both can be put in the root directory: 

                cp bdlilo.conf KERNEL /mnt

        Everything LILO needs is now on the kernel filesystem, so you are
ready to run it. LILO's -r
        flag is used for installing the boot loader on some other root: 

                lilo -v -C bdlilo.conf -r /mnt