fat_imgen
fat_imgen is a utility you can use to create and modify FAT12 floppy images with. It is licensed under the Simplified BSD license.
Binaries
Windows and Linux users can download the latest stable binaries from the project's download page.
Source code
The source code (not guaranteed to work) can be downloaded from the SVN repository. The source code shows many aspects of working with FAT12 images.
Usage
This program can create or modify a FAT12 floppy image. Usage: fat_imgen -c -f IMG-FILE [-s FILE] [-i FILE] [-F] or: fat_imgen -m -f IMG-FILE -s FILE or: fat_imgen -m -f IMG-FILE -i FILE or: fat_imgen -m -f IMG-FILE -s FILE -i FILE or: fat_imgen -e -f IMG-FILE -x FILE -o FILE [-F] or: fat_imgen -b -o FILE [-F] Main operation mode: -c Create an image. -m Modify an image. -e Extract a file from an image. -b Create a standard FAT12 boot sector. File selection: -f IMG-FILE Use IMG-FILE as the image file. -s FILE Use FILE as boot sector in the image. -i FILE Insert FILE into the image. -x FILE Extract FILE from the image. -o FILE Write output to FILE. Generic modifiers: -F Overwrite the output file. Informative output: --help Display this information. --version Display version information.