imgtool.exe

This tool is use to is used to identify, create and manage disk images. This tool is particularly powerful as it will allow you to manipulate the files in a disk image directly. It is also quite dangerous as you could really mess up the image, so keep a backup!

Here's a quick summary of imgtool's options...

Option Description
create Creates a disk image file in the format you specify
dir Lists the files and folders on a disk image.
get Gets a single file from a disk image and saves it to you drive.
put Adds a file from your drive to a disk image.
getall Gets all the files from a disk image.
del Deletes a file on the specified disk image.
mkdir Creates a new directory on a disk image.
readsector Extract the data from a sector on a disk image.
writesector Writes data to a sector on a disk image.
identify Tries to recognise the format of a disk image file.
listformats Lists all the disk formats supported by imgtool.
listfilters Lists all the file filters supported when using the get and put options.
listdriveroptions Lists the driver's requirements for heads, sectors, etc when using the create option.

create
Full Command imgtool.exe create <format> <output file> [--option=value...]
imgtool create <format> <imagename> [--(createoption)=value]
imgtool dir <format> <imagename> [path]
imgtool get <format> <imagename> <filename> [newname] [--filter=filter] [--fork=fork]
imgtool put <format> <imagename> <filename>... <destname> [--(fileoption)==value] [--filter=filter] [--fork=fork]
imgtool getall <format> <imagename> [path] [--filter=filter]
imgtool del <format> <imagename> <filename>...
imgtool mkdir <format> <imagename> <dirname>
imgtool rmdir <format> <imagename> <dirname>...
imgtool readsector <format> <imagename> <track> <head> <sector> <filename>
imgtool writesector <format> <imagename> <track> <head*gt; <sector> <filename>
imgtool identify <imagename>
imgtool listformats
imgtool listfilters
imgtool listdriveroptions <format>
Note You can find out the available options of a disk format by using the command imgtool.exe listdriveroptions <format>
Supported Formats amiga_floppy - Amiga floppy disk image (OFS/FFS format)
apple2_do_prodos_525 - Apple ][ DOS order disk image (ProDOS format)
apple2_nib_prodos_525 - Apple ][ Nibble order disk image (ProDOS format)
apple2_po_prodos_525 - Apple ][ ProDOS order disk image (ProDOS format)
apple35_2img_prodos_35 - Apple ][gs 2IMG disk image (ProDOS format)
apple35_dc_mac_hfs - Apple DiskCopy disk image (Mac HFS Floppy)
apple35_dc_mac_mfs - Apple DiskCopy disk image (Mac MFS Floppy)
apple35_dc_prodos_35 - Apple DiskCopy disk image (ProDOS format)
apple35_raw_mac_hfs - Apple raw 3.5" disk image (Mac HFS Floppy)
apple35_raw_mac_mfs - Apple raw 3.5" disk image (Mac MFS Floppy)
apple35_raw_prodos_35 - Apple raw 3.5" disk image (ProDOS format)
coco_dmk_os9 - CoCo DMK disk image (OS-9 format)
coco_dmk_rsdos - CoCo DMK disk image (RS-DOS format)
coco_jvc_os9 - CoCo JVC disk image (OS-9 format)
coco_jvc_rsdos - CoCo JVC disk image (RS-DOS format)
coco_os9_os9 - CoCo OS-9 disk image (OS-9 format)
coco_vdk_os9 - CoCo VDK disk image (OS-9 format)
coco_vdk_rsdos - CoCo VDK disk image (RS-DOS format)
concept - Concept floppy disk image
cqm_bml3 - CopyQM floppy disk image (Basic Master Level 3 format)
cqm_fat - CopyQM floppy disk image (FAT format)
cqm_mac_hfs - CopyQM floppy disk image (Mac HFS Floppy)
cqm_mac_mfs - CopyQM floppy disk image (Mac MFS Floppy)
cqm_os9 - CopyQM floppy disk image (OS-9 format)
cqm_prodos_525 - CopyQM floppy disk image (ProDOS format)
cqm_prodos_35 - CopyQM floppy disk image (ProDOS format)
cqm_rsdos - CopyQM floppy disk image (RS-DOS format)
cqm_vzdos - CopyQM floppy disk image (VZ-DOS format)
cybiko - Cybiko Classic File System
cybikoxt - Cybiko Xtreme File System
d88_bml3 - D88 Floppy Disk image (Basic Master Level 3 format)
d88_fat - D88 Floppy Disk image (FAT format)
d88_mac_hfs - D88 Floppy Disk image (Mac HFS Floppy)
d88_mac_mfs - D88 Floppy Disk image (Mac MFS Floppy)
d88_os9 - D88 Floppy Disk image (OS-9 format)
d88_prodos_525 - D88 Floppy Disk image (ProDOS format)
d88_prodos_35 - D88 Floppy Disk image (ProDOS format)
d88_rsdos - D88 Floppy Disk image (RS-DOS format)
d88_vzdos - D88 Floppy Disk image (VZ-DOS format)
dsk_bml3 - DSK floppy disk image (Basic Master Level 3 format)
dsk_fat - DSK floppy disk image (FAT format)
dsk_mac_hfs - DSK floppy disk image (Mac HFS Floppy)
dsk_mac_mfs - DSK floppy disk image (Mac MFS Floppy)
dsk_os9 - DSK floppy disk image (OS-9 format)
dsk_prodos_525 - DSK floppy disk image (ProDOS format)
dsk_prodos_35 - DSK floppy disk image (ProDOS format)
dsk_rsdos - DSK floppy disk image (RS-DOS format)
dsk_vzdos - DSK floppy disk image (VZ-DOS format)
fdi_bml3 - Formatted Disk Image (Basic Master Level 3 format)
fdi_fat - Formatted Disk Image (FAT format)
fdi_mac_hfs - Formatted Disk Image (Mac HFS Floppy)
fdi_mac_mfs - Formatted Disk Image (Mac MFS Floppy)
fdi_os9 - Formatted Disk Image (OS-9 format)
fdi_prodos_525 - Formatted Disk Image (ProDOS format)
fdi_prodos_35 - Formatted Disk Image (ProDOS format)
fdi_rsdos - Formatted Disk Image (RS-DOS format)
fdi_vzdos - Formatted Disk Image (VZ-DOS format)
hp48 - HP48 SX/GX memory card
hp85_tape - HP85 tape image
hp9845_tape - HP9845 tape image
imd_bml3 - IMD floppy disk image (Basic Master Level 3 format)
imd_fat - IMD floppy disk image (FAT format)
imd_mac_hfs - IMD floppy disk image (Mac HFS Floppy)
imd_mac_mfs - IMD floppy disk image (Mac MFS Floppy)
imd_os9 - IMD floppy disk image (OS-9 format)
imd_prodos_525 - IMD floppy disk image (ProDOS format)
imd_prodos_35 - IMD floppy disk image (ProDOS format)
imd_rsdos - IMD floppy disk image (RS-DOS format)
imd_vzdos - IMD floppy disk image (VZ-DOS format)
vtech1_vzdos - Laser/VZ disk image (VZ-DOS format)
mess_hd - MESS hard disk image
pc_chd - PC CHD disk image
pc_dsk_fat - PC floppy disk image (FAT format)
psionpack - Psion Organiser II Datapack
td0_bml3 - Teledisk floppy disk image (Basic Master Level 3 format)
td0_fat - Teledisk floppy disk image (FAT format)
td0_mac_hfs - Teledisk floppy disk image (Mac HFS Floppy)
td0_mac_mfs - Teledisk floppy disk image (Mac MFS Floppy)
td0_os9 - Teledisk floppy disk image (OS-9 format)
td0_prodos_525 - Teledisk floppy disk image (ProDOS format)
td0_prodos_35 - Teledisk floppy disk image (ProDOS format)
td0_rsdos - Teledisk floppy disk image (RS-DOS format)
td0_vzdos - Teledisk floppy disk image (VZ-DOS format)
thom_fd - Thomson .fd disk image, BASIC format
thom_qd - Thomson .qd disk image, BASIC format
thom_sap - Thomson .sap disk image, BASIC format
ti99_old - TI99 Diskette (old MESS format)
pc99fm - TI99 Diskette (PC99 FM format)
pc99mfm - TI99 Diskette (PC99 MFM format)
v9t9 - TI99 Diskette (V9T9 format)
ti99hd - TI99 Harddisk
ti990hd - TI990 Hard Disk
Examples imgtool dir coco_jvc_rsdos myimageinazip.zip
imgtool get coco_jvc_rsdos myimage.dsk myfile.bin mynewfile.txt
imgtool getall coco_jvc_rsdos myimage.dsk
imgtool create amiga_floppy mydisk.adf --filesystem=ofs