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 11:50, 8 July 2014 edit80.194.52.34 (talk) Blanked the page← Previous edit Revision as of 11:53, 8 July 2014 edit undoSatellizer (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, File movers, IP block exemptions, Pending changes reviewers, Rollbackers40,729 editsm Reverted 2 edits by 80.194.52.34 identified as test/vandalism using STikiNext edit →
Line 1: Line 1:
{{About|a raw disk image file format with .img filename extension|Apple Inc.'s disk images using the .img filename extension|Apple Disk Image|disk images based on the ISO 9660 file system|ISO image|the GPS device map format|Garmin .img}}
{{ref improve|date=February 2014}}
'''IMG''', in computing, refers to ]s with <code>.img</code> ] that store raw ] of ]s, ]s, or ]s.

==Overview==
The <code>.img</code> ] is used by ] files, which contain raw dumps of a ] or of an ]. 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 ]). Raw disk images of ] (such as ]s and ]s) contain a raw image of all the ] in a disc (which can include audio, data and video tracks). In the case of ]s and DVDs, these images usually include not only the data from each sector, but the ] and error correction fields for each sector as well.

Since IMG files hold no additional data beyond the disk contents, these files can only be handled by programs that can detect their ]s. For instance, a typical raw disk image of a floppy disk begins with a ], which can be used to identify its file system. Disc images of optical media are usually accompanied by a descriptor file which describes the layout of the disc, and includes information such as track limits which are not stored in the raw image file.

===Filename extensions and variants===
The <code>.img</code> file extension was originally used for ] raw disk images only. A similar file extension, <code>.ima</code>, is also used to refer to floppy disk image files by some programs. A variant of IMG, called IMZ, consists of a ]ped version of a raw floppy disk image. These files use the <code>.imz</code> file extension, and are commonly found in compressed images of floppy disks created by ].

] uses the <code>.img</code> file extension for raw images of ] disks, calling the format simply "raw".

] stores optical disc images in <code>.img</code> files and generates additional ]s (with <code>.ccd</code> extension) for each image to hold the necessary ]. The ] format stores disc images in <code>.bin</code> files, which are functionally equivalent to <code>.img</code> image files, and uses <code>.cue</code> files as descriptor files.

===Size===
The file size of a raw disk image is always a multiple of the sector size. For floppy disks and hard drives this size is typically 512 bytes (but other sizes such as 128 and 1024 exist). More precisely, the file size of a raw disk image of a magnetic disk corresponds to:
:<tt><abbr title="CHS">Cylinders × Heads × (Sectors per track) × (Sector size)</abbr></tt>
E.g. for 80 cylinders (tracks) and 2 heads (sides) with 18 sectors per track:
:<tt>80 × 2 × 18 × 512 = 1,474,560 bytes</tt> or 1440&nbsp;]

For optical discs such as CDs and DVDs, the raw sector size is usually 2,352, making the size of a raw disc image a multiple of this value.

==Comparison to ISO images==
]s are another type of optical disc image files, which commonly use the <code>.iso</code> file extension, but sometimes use the <code>.img</code> file extension as well. They are similar to the raw optical disc images, but contain only one track with computer data obtained from an optical disc. They can not contain multiple tracks, nor audio or video tracks. They also do not contain the control headers and error correction fields of ] or ] sectors that raw disc images usually store. Their internal format follows the structure of an ] file system, commonly ] (for CDs) or ] (for DVDs). The ] and ] formats, which usually contain raw disc images, can also store ISO images instead.

==Tools==
The raw IMG file format is used by several tools:
* RaWrite and ] use the IMG disk image format to read and write floppy disk images.
* ] and can mount a raw image of a floppy disk to emulate a floppy drive under ].
* ] supports reading IMG files for creating ]s.
* ] allows manipulation of ] floppy disk images in ] systems.
* Programs such as ''dsktrans'' from the ''LibDsk''<ref></ref> suite of command-line tools (available for ], ], and ]) will convert between different raw disk image formats.
* ] can be used in ] to create raw disk image files of disks.
* ] uses IMG files as its default format for ] disk images.
* can read and write disk images to/from USB drives.
* VLC can play DVD IMG files.

==References==
{{reflist}}

{{Disk images}}

{{DEFAULTSORT:Img (File Format)}}
]
]

Revision as of 11:53, 8 July 2014

This article is about a raw disk image file format with .img filename extension. For Apple Inc.'s disk images using the .img filename extension, see Apple Disk Image. For disk images based on the ISO 9660 file system, see ISO image. For the GPS device map format, see Garmin .img.
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "IMG" file format – news · newspapers · books · scholar · JSTOR (February 2014) (Learn how and when to remove this message)

IMG, in computing, refers to binary files with .img filename extension that store raw disk images of floppy disks, hard drives, or optical discs.

Overview

The .img filename extension is used by disk image files, which contain raw dumps of a magnetic disk or of an optical disc. 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). Raw disk images of optical media (such as CDs and DVDs) contain a raw image of all the tracks in a disc (which can include audio, data and video tracks). In the case of CD-ROMs and DVDs, these images usually include not only the data from each sector, but the control headers and error correction fields for each sector as well.

Since IMG files hold no additional data beyond the disk contents, these files can only be handled by programs that can detect their file systems. For instance, a typical raw disk image of a floppy disk begins with a FAT boot sector, which can be used to identify its file system. Disc images of optical media are usually accompanied by a descriptor file which describes the layout of the disc, and includes information such as track limits which are not stored in the raw image file.

Filename extensions and variants

The .img file extension was originally used for floppy disk raw disk images only. A similar file extension, .ima, is also used to refer to floppy disk image files by some programs. A variant of IMG, called IMZ, consists of a gzipped version of a raw floppy disk image. These files use the .imz file extension, and are commonly found in compressed images of floppy disks created by WinImage.

QEMU uses the .img file extension for raw images of hard drive disks, calling the format simply "raw".

CloneCD stores optical disc images in .img files and generates additional CloneCD Control Files (with .ccd extension) for each image to hold the necessary metadata. The CUE/BIN format stores disc images in .bin files, which are functionally equivalent to .img image files, and uses .cue files as descriptor files.

Size

The file size of a raw disk image is always a multiple of the sector size. For floppy disks and hard drives this size is typically 512 bytes (but other sizes such as 128 and 1024 exist). More precisely, the file size of a raw disk image of a magnetic disk corresponds to:

Cylinders × Heads × (Sectors per track) × (Sector size)

E.g. for 80 cylinders (tracks) and 2 heads (sides) with 18 sectors per track:

80 × 2 × 18 × 512 = 1,474,560 bytes or 1440 kB

For optical discs such as CDs and DVDs, the raw sector size is usually 2,352, making the size of a raw disc image a multiple of this value.

Comparison to ISO images

ISO images are another type of optical disc image files, which commonly use the .iso file extension, but sometimes use the .img file extension as well. They are similar to the raw optical disc images, but contain only one track with computer data obtained from an optical disc. They can not contain multiple tracks, nor audio or video tracks. They also do not contain the control headers and error correction fields of CD-ROM or DVD sectors that raw disc images usually store. Their internal format follows the structure of an optical disc file system, commonly ISO 9660 (for CDs) or UDF (for DVDs). The CUE/BIN and CCD/IMG formats, which usually contain raw disc images, can also store ISO images instead.

Tools

The raw IMG file format is used by several tools:

References

  1. 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: