e01.org

Apple Disk Image

Apple Disk Image is a disk image format commonly used by the macOS operating system. When opened, an Apple Disk Image is mounted as a volume within the Finder. 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. An Apple disk image file's name usually has ".dmg" as its extension. A disk image is a compressed copy of the contents of a disk or folder. 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. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

Apple Disk Image is a disk image format commonly used by the macOS operating system. When opened, an Apple Disk Image is mounted as a volume within the Finder. 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. An Apple disk image file's name usually has ".dmg" as its extension. A disk image is a compressed copy of the contents of a disk or folder. 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. 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. The main data is stored in a base64 block, using tables identified by the magic . 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). The data and resource fork information is probably inherited from NDIF. O'Reilly Mac DevCenter Tip 16-5. Create a Disk Image from a Directory in the Terminal

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Apple Disk Image". 1790623166. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377312907

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·