boot floppy creation kit

smagnuson at smagnuson at
Fri Jul 21 18:25:22 UTC 2006



Used the boot floppy creation kit available from here:


Had to make a few adjustments to get it to work.  



:cat mkbootfloppy



# mkbootfloppy - creates a 1.44Mb bootfloppy image

# Copyright (c) 2002-2003 Per Liden <per at>

# Version 1.2



if [ "$1" = "" ]; then

        echo "usage: `basename $0` <vmlinuz>"

        exit 1



if [ "`id -u`" != "0" ]; then

        echo "you must be logged in as root to do this"

        exit 1



for file in ./lilo.conf ./message $1; do

        if [ ! -f $file ]; then

                echo "error: $file not found"

                exit 1




dd if=/dev/zero of=boot.img bs=1k count=1440

losetup /dev/loop/4 boot.img

mke2fs -qm0 /dev/loop/4

mount /dev/loop/4 /mnt

cp ./message /mnt

cp $1 /mnt/vmlinuz

lilo -C ./lilo.conf

umount /mnt

losetup -d /dev/loop/4


# End of file



Anything that was /dev/loop4 I needed to change to /dev/loop/4

dd command to write to the floppy I had to change from: dd if=boot.img
of=/dev/fd0 to dd if=boot.img of=/dev/floppy/0.


You can find the original documentation here:


Curious to know if this is just my setup or if the docs need updating.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the CRUX mailing list