fat_imgen

From OSDev.wiki
Revision as of 09:38, 18 March 2010 by osdev>Bughunter
Jump to navigation Jump to search

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 be used to work with FAT12 floppy images.

Usage: fat_imgen -c [-F] -f IMG-FILE [-i FILE [-n FILENAME]] [-s FILE]
  or:  fat_imgen -m -f IMG-FILE -s FILE
  or:  fat_imgen -m -f IMG-FILE -i FILE [-n FILENAME]
  or:  fat_imgen -m -f IMG-FILE -i FILE [-n FILENAME] -s FILE
  or:  fat_imgen -e [-F] -f IMG-FILE
  or:  fat_imgen -e [-F] -f IMG-FILE [-o FILE] -x FILE
  or:  fat_imgen -b [-F] [-o FILE]

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.
                          (Without -o, defaults to `bootsect.bin'.)

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.
  -n FILENAME             Use FILENAME as the filename of the inserted file.
  -x FILE                 Extract FILE from the image.
  -o FILE                 Write output to FILE.

Generic modifiers:
  -F                      Overwrite the output file (e.g. image, boot sector).

Informative output:
  --help                  Display this information.
  --version               Display version information.

See also

External links