In the examples below, the following variables are used: ${devfloppy}: The path to your floppy drive under the /dev file system (e.g. /dev/scsi/host0/bus0/lun0/disc for a USB floppy) ${mntpoint}: The floppy mount point (e.g. /mnt/floppy). ${kver}: The kernel version (e.g. 2.4.16) ${kdir}: The kernel "/boot" directory (e.g. /boot/linux/) ${lver}: The LILO version (e.g. 22.1) ${ldir}: The LILO "/boot" directory (e.g. /boot/lilo/) ${kimg}: The kernel bzImage name ${lconf}: The configuration file to use with LILO (e.g. lilo.floppy.conf) Boot Floppy: fdformat ${devfloppy} mke2fs ${devfloppy} mount ${devfloppy} ${mntpoint} mkdir ${mntpoint}/dev ${mntpoint}/etc ${mntpoint}/tmp mkdir -p ${mntpoint}/${kdir} ${mntpoint}/${ldir} cp -a /dev/null /dev/zero ${mntpoint}/dev # NOW YOU MUST COPY ANY OTHER DEVICES YOU WISH TO USE ONTO THE FLOPPY. # ONE OF THESE MUST BE THE /dev/floppy/0 OR /dev/scsi/host0/.../disc # THAT DEFINES THE FLOPPY, AND ANOTHER SHOULD BE THE HARD DISC THAT # CONTAINS THE ROOT PARTITION (e.g. /dev/ide/host0/.../lun0/*) cp -a ${kdir}/${kimg} ${mntpoint}/${kdir} cp -a ${ldir}/* ${mntpoint}/${ldir} lilo -C ${lconf}