Misplaced Pages

IMG (file format): Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 02:12, 23 April 2013 editSega381 (talk | contribs)Extended confirmed users, Pending changes reviewers3,628 edits corrected formula← Previous edit Revision as of 02:23, 23 April 2013 edit undoSega381 (talk | contribs)Extended confirmed users, Pending changes reviewers3,628 edits IMG raw disk image format: corrected links, some rewordingNext edit →
Line 10: Line 10:


==IMG raw disk image format== ==IMG raw disk image format==
The ''.img'' ] is used by files which contain raw dumps of a ], commonly called ]s. Since a raw image consists of a ]-by-sector binary copy of the source medium, the actual format of the file contents will depend on the ] of the disk from which the image was created. A similar file extension, ''.ima'', is used by some tools to refer to the same type of raw disk image files. The ''.img'' ] is used by files called ]s, which contain raw dumps of a ]. Since a raw image consists of a ]-by-sector binary copy of the source medium, the actual format of the file contents will depend on the ] of the disk from which the image was created (such as a version of ]). The ''.img'' file extension was originally use for ] raw disk images only, though it is currently used to refer to ] disk images as well.


A similar file extension, ''.ima'', is used by some tools to refer to the same type of raw disk image files. A variant of the format is called IMZ, and consists of a ]ped version of a raw disk image. These files use the ''.imz'' file extension, and are commonly found in compressed images of floppy disks.
The ''.img'' file extension was originally associated to ] raw disk images only, though it is currently used to refer to ] disk images as well.


The file size of a raw disk image will always be a multiple of the sector size &mdash; generally 512 bytes, but other sizes such as 128 and 1024 exist. More precisely the file size corresponds to <tt><abbr title="CHS">Cylinders&times;Heads&times;(Sectors per track)&times;(Sector size)</abbr></tt>, e.g., <tt>1440KB=80&times;2&times;18&times;512</tt> for 80 cylinders (tracks) and 2 heads (sides) with 18 sectors per track. A typical raw disk image of a disk begins with a ].
A variant of the format is called IMZ, and consists of a ]ped version of a raw disk image. These files use the ''.imz'' file extension, and are commonly found in compressed images of floppy disks.


Raw disk images of optical media (such as ]s and ]s) are usually referred to as ]s, and use the ''.iso'' file extension. Functionally, however, they are equivalent to IMG files, though their internal format follows the structure of an ] file system such as ] (for CDs) or ] (for DVDs).
The file size of a raw disk image will always be a multiple of the sector size &mdash; generally 512 bytes, but other sizes such as 128 and 1024 exist. More precisely the file size corresponds to <tt><abbr title="CHS">Cylinders&times;Heads&times;(Sectors per track)&times;(Sector size)</abbr></tt>, e.g., <tt>1440KB=80&times;2&times;18&times;512</tt> for 80 cylinders (tracks) and 2 heads (sides) with 18 sectors per track. A typical raw disk image of a floppy disk begins with a ], where the first byte is normally hexadecimal EB (code for a 8bit short jump, offset in the 2nd byte) with third byte 90 (code for a NOP), or rarely EA (code for a 16bit jump, offset in 2nd and 3rd byte).

Raw disk images of optical media (such as ]s and ]s) are usually referred to as ]s, and use the ''.iso'' file extension. Functionally, however, they are equivalent to IMG files, though their internal format follows the structure of an optical media file system such as ] (for CDs) or ] (for DVDs).


===Tools=== ===Tools===

Revision as of 02:23, 23 April 2013

IMG file format may refer to several different and incompatible file formats, which usually just have the use of the .img file extension in common:

This article will focus on the first format indicated above, raw disk image files that use the .img extension.

IMG raw disk image format

The .img file extension is used by files called disk images, which contain raw dumps of a magnetic disk. Since a raw image consists of a sector-by-sector binary copy of the source medium, the actual format of the file contents will depend on the file system of the disk from which the image was created (such as a version of FAT). The .img file extension was originally use for floppy disk raw disk images only, though it is currently used to refer to hard drive disk images as well.

A similar file extension, .ima, is used by some tools to refer to the same type of raw disk image files. A variant of the format is called IMZ, and consists of a gzipped version of a raw disk image. These files use the .imz file extension, and are commonly found in compressed images of floppy disks.

The file size of a raw disk image will always be a multiple of the sector size — generally 512 bytes, but other sizes such as 128 and 1024 exist. More precisely the file size corresponds to Cylinders×Heads×(Sectors per track)×(Sector size), e.g., 1440KB=80×2×18×512 for 80 cylinders (tracks) and 2 heads (sides) with 18 sectors per track. A typical raw disk image of a disk begins with a FAT boot sector.

Raw disk images of optical media (such as CDs and DVDs) are usually referred to as ISO images, and use the .iso file extension. Functionally, however, they are equivalent to IMG files, though their internal format follows the structure of an optical disc file system such as ISO 9660 (for CDs) or UDF (for DVDs).

Tools

The raw IMG file format is used by several tools:

References

  1. GEM Raster File Format description
  2. LibDsk suite of tools for accessing discs and disc image files
Disk image file formats
Comparison of disc image software
Optical discs
Hard disks
Floppy disks
CDDADisc Description Protocol
Convention: Any item in this table that has the form of "A+B" or "A+B+C" indicates a disk format that spans multiple files, where A contains the bulk of the data, and B and C are sidecar files.
Categories: