============================================== make boot ram dd if=/vmlinuz of=/dev/fd0 /sbin/vidmode /dev/fd0 0 /sbin/ramsize /dev/fd0 1440 /sbin/rdev /dev/fd0 /vmlinuz ============================================== make boot noram dd if=/vmlinuz of=/dev/fd0 /sbin/vidmode /dev/fd0 0 /sbin/ramsize /dev/fd0 0 /sbin/rdev /dev/fd0 /vmlinuz ============================================== - run echo image= | /sbin/lilo -C - -b /dev/fd0 -v -v -v If you've already installed LILO on your system, you might not want to overwrite your old map file. Use the -m option to specify an alternate map file name. ------------------------------------ In some cases*, it may be desirable to install LILO on a floppy disk in a way that it can boot a kernel without accessing the hard disk. * E.g. if no hard disk is accessible through the BIOS. The basic procedure is quite straightforward (see also section "BIOS restrictions"): - a file system has to be created on the file system - the kernel and boot.b have to be copied to the floppy disk - /sbin/lilo has to be run to create the map file This can be as easy as /sbin/mke2fs /dev/fd0 [ -d /fd ] || mkdir /fd mount /dev/fd0 /fd cp /boot/boot.b /fd cp /zImage /fd echo image=/fd/zImage label=linux | /sbin/lilo -C - -b /dev/fd0 -i /fd/boot.b -c -m /fd/map umount /fd The command line of /sbin/lilo is a little tricky. -C - takes the configuration from standard input (naturally, one could also write the configuration into a file), -b /dev/fd0 specifies that the boot sector is written to the floppy disk, -i /fd/boot.b takes the first and second stage loaders from the floppy, -c speeds up the load process, and -m /fd/map puts the map file on the floppy too. ============================================== single user mode linux init=/bin/sh boot single user mode ============================================== -----------------------------------