document updated 13 years ago, on Apr 29, 2011
instructions for creating a dos-bootable .img file
Get the msdos.sys/io.sys/command.com from a Win95 or Win98 boot disk.
dd if=/dev/zero of=floppy288.img bs=1024 count=2880
/sbin/mkdosfs floppy288.img
ms-sys -1 -f floppy288.img
su
mount -o loop floppy288.img /mnt
cp msdos.sys /mnt/
cp io.sys /mnt/
cp command.com /mnt/
umount /mnt
To test it, use qemu:
qemu -fda floppy288.img
HOWTO make a floppy image bigger than 2.88mb:
- get an existing .img file (perhaps using the above)
- use newmkfloppyimg.sh to extend it to several megabytes (up to 10mb?)
- when loading the .img with MEMDISK, use the cylinder/sector/head parameters that mkfloppyimg.sh printed out. They look something like:
memdisk floppy c=8 s=32 h=64 /images/floppy.img
- ... for more information on the cylinder/sector/head paramters, see the "fdgeo.pl" file within the SYSLINUX source tarball, or these:
[1]
[2]
[3]
[4a]
[4b]
[oversize.zip]
HOWTO make a hard-disk image that MEMDISK can load: