The Apple Partition Map was the partition scheme of 68k and PowerPC Macs (1986 until the Intel switch in 2006). It is found on classic Mac hard disks, CD-ROMs, and old media and images.
Overview
APM begins with a driver descriptor block (ER) at block 0 describing the block size and device drivers. Partition map entries (PM) follow from block 1; the first entry describes the map itself. Each entry records start block, block count, name, type string (such as Apple_HFS) and flags. All values are big-endian.
History
Introduced in the late 1980s for Macintosh SCSI disks.
Replaced by GPT on Intel-based Macs from 2006.
Structures
Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.
Detect Block Size
Offset
Size
Type
Field
Notes
0x0
2
u16 BE
–
0x2
2
u16 BE
Declared
Detect Block Size
Offset
Size
Type
Field
Notes
0x4
4
u32 BE
Ap Count
0x30
32
bytes
Type
Read Volumes
Offset
Size
Type
Field
Notes
0x8
4
u32 BE
Start
0xC
4
u32 BE
Count
0x10
32
bytes
Name
0x30
32
bytes
Type
Other fields read
Read in
Offset
Size
Type
Field
Notes
Read Entry
0x0
2
u16 BE
–
Read Volumes
0x4
4
u32 BE
Ap Count
Constants
Apm Module
Name
Value
Type
Notes
DriverDescriptorSignature
0x4552
ushort
“ER”
PartitionSignature
0x504D
ushort
“PM”
Implementation limits
Class
Name
Value
Notes
Apm Module
MaxEntries
256
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.