The icon represents an internal hard drive within a generic file icon. | |
Filename extension | .dmg, .smi, .img |
---|---|
Internet media type | application/x-apple-diskimage |
Uniform Type Identifier (UTI) | com.apple.disk-image |
Developed by | Apple Inc. |
Type of format | Disk image |
Position(in Hex) | Length (in bytes) | Description |
---|---|---|
000 | 4 | Magic bytes ('koly'). |
004 | 4 | File version (current is 4) |
008 | 4 | The length of this header, in bytes. Should be 512. |
00C | 4 | Flags. |
010 | 8 | Unknown. |
018 | 8 | Data fork offset (usually 0, beginning of file) |
020 | 8 | Size of data fork (usually up to the XMLOffset, below) |
028 | 8 | Resource fork offset, if any |
030 | 8 | Resource fork length, if any |
038 | 4 | Segment number. Usually 1, may be 0 |
03C | 4 | Segment count. Usually 1, may be 0 |
040 | 16 | 128-bit GUID identifier of segment |
050 | 4 | Data fork checksum type |
054 | 4 | Data fork checksum size |
058 | 128 | Data fork checksum |
0D8 | 8 | Offset of XML property list in DMG, from beginning |
0E0 | 8 | Length of XML property list |
0E8 | 120 | Reserved bytes |
160 | 4 | Master checksum type |
164 | 4 | Master checksum size |
168 | 128 | Master checksum |
1E8 | 4 | Unknown, commonly 1 |
1EC | 8 | Size of DMG when expanded, in sectors |
1F4 | 12 | Reserved bytes (zeroes) |
mount -o loop,ro -t hfsplus imagefile.dmg /mnt/mountpoint
).[15][16] darling-dmg is a FUSE module enabling easy DMG file mounting on Linux.[17]hdiutil(1)
– Darwin and macOS General Commands Manual