Apple Disk Image
Apple Disk Image is a disk image format commonly used by the macOS operating system.[src] When opened, an Apple Disk Image is mounted as a volume within the Finder.[src] An Apple Disk Image can be structured according to one of several proprietary disk image formats, including the Universal Disk Image Format (UDIF) from Mac OS X and the New Disk Image Format (NDIF) from Mac OS 9.[src] An Apple disk image file's name usually has ".dmg" as its extension.[src] A disk image is a compressed copy of the contents of a disk or folder.[src] To see the contents of a disk image, one must first open the disk image so it appears on the desktop or in a Finder window.[src]
Apple Disk Image is a disk image format commonly used by the macOS operating system.[src] When opened, an Apple Disk Image is mounted as a volume within the Finder.[src] An Apple Disk Image can be structured according to one of several proprietary disk image formats, including the Universal Disk Image Format (UDIF) from Mac OS X and the New Disk Image Format (NDIF) from Mac OS 9.[src] An Apple disk image file's name usually has ".dmg" as its extension.[src] A disk image is a compressed copy of the contents of a disk or folder.[src] To see the contents of a disk image, one must first open the disk image so it appears on the desktop or in a Finder window.[src] typedef struct { uint8_t Signature[4]; // magic 'koly' uint32_t Version; // 4 (as of 2013) uint32_t HeaderSize; // sizeof(this) = 512 (as of 2013) uint32_t Flags; uint64_t RunningDataForkOffset; uint64_t DataForkOffset; // usually 0, beginning of file uint64_t DataForkLength; uint64_t RsrcForkOffset; // resource fork offset and length uint64_t RsrcForkLength; uint32_t SegmentNumber; // Usually 1, can be 0 uint32_t SegmentCount; // Usually 1, can be 0 uuid_t SegmentID; uint32_t DataChecksumType; // Data fork checksum uint32_t DataChecksumSize; uint32_t DataChecksum[32]; uint64_t XMLOffset; // Position of XML property list in file uint64_t XMLLength; uint8_t Reserved1[120]; uint32_t ChecksumType; // Master checksum uint32_t ChecksumSize; uint32_t Checksum[32]; uint32_t ImageVariant; // Unknown, commonly 1 uint64_t SectorCount; uint32_t reserved2; uint32_t reserved3; uint32_t reserved4; } __attribute__((packed, scalar_storage_order("big-endian"))) UDIFResourceFile; The XML plist contains a (blocks) key, with information about how the preceding data fork is allocated.[src] The main data is stored in a base64 block, using tables identified by the magic .[src] This structure contains a table about blocks of data and the position and lengths of each "chunk" (usually only one chunk, but compression will create more).[src] The data and resource fork information is probably inherited from NDIF.[src] O'Reilly Mac DevCenter Tip 16-5.[src] Create a Disk Image from a Directory in the Terminal[src]
18 sentences · 18 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Apple Disk Image." encyclopegia.org, 2026, https://encyclopegia.org/wiki/apple-disk-image. Accessed 30 November 2026.
Chicago
"Apple Disk Image." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/apple-disk-image.
APA
encyclopegia.org. (2026). Apple Disk Image. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/apple-disk-image
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON