The fields
Block 2 of the volume (byte 1024), 162 bytes of fields (named as Inside Macintosh names them: drSigWord and so on), the rest of the block unused. All numbers are big-endian. The alternate MDB in the second-last block has the same fields. Offsets are from the start of the block.
| Offset | Size | Field | What it holds |
|---|---|---|---|
| 0 | 2 | drSigWord | The signature $4244, the letters BD. (An MFS volume has $D2D7, an HFS Plus volume H+, and neither is read.) |
| 2 | 4 | drCrDate | When the volume was created: seconds since 1 January 1904 00:00, in local time. |
| 6 | 4 | drLsMod | When it was last changed, same units. |
| 10 | 2 | drAtrb | Attribute bits: bit 7 hardware locked, 8 unmounted cleanly, 9 spare bad blocks, 11 volume inconsistent, 15 software locked (the constants of the Linux driver, which cites Inside Macintosh: Files p. 2-61 for them). |
| 12 | 2 | drNmFls | The number of files in the root folder. |
| 14 | 2 | drVBMSt | The first block of the volume bitmap (3). |
| 16 | 2 | drAllocPtr | The allocation block where the search for free space begins next. |
| 18 | 2 | drNmAlBlks | The number of allocation blocks. |
| 20 | 4 | drAlBlkSiz | The size of an allocation block in bytes, a multiple of 512. |
| 24 | 4 | drClpSiz | The default clump size: how many bytes are added when a file grows. |
| 28 | 2 | drAlBlSt | The 512-byte block where allocation block 0 begins (4 on an 800 KB floppy). |
| 30 | 4 | drNxtCNID | The catalog node number the next new file or folder gets. |
| 34 | 2 | drFreeBks | The number of free allocation blocks. |
| 36 | 28 | drVN | The volume name: a length byte and up to 27 Mac Roman characters. |
| 64 | 4 | drVolBkUp | The last backup (0: never). |
| 68 | 2 | drVSeqNum | The backup sequence number. |
| 70 | 4 | drWrCnt | How many times the volume was written. |
| 74 | 4 | drXTClpSiz | The clump size of the extents tree. |
| 78 | 4 | drCTClpSiz | The clump size of the catalog tree. |
| 82 | 2 | drNmRtDirs | The number of folders in the root folder. |
| 84 | 4 | drFilCnt | The number of files on the volume. |
| 88 | 4 | drDirCnt | The number of folders on the volume (the root folder not counted: the real volumes here agree with that). |
| 92 | 32 | drFndrInfo | Eight longs for the Finder (the number of the system folder and others). Not decoded. |
| 124 | 2 | drEmbedSigWord | The signature of an embedded volume: H+ ($482B) when an HFS Plus volume lies inside this one; 0 otherwise. |
| 126 | 4 | drEmbedExtent | Where the embedded volume starts and how many allocation blocks it takes (two 16-bit numbers). |
| 130 | 4 | drXTFlSize | The size in bytes of the extents tree file. |
| 134 | 12 | drXTExtRec | The first three extents of the extents tree: three pairs of a start and a count, each 16 bits. |
| 146 | 4 | drCTFlSize | The size in bytes of the catalog tree file. |
| 150 | 12 | drCTExtRec | The first three extents of the catalog tree. |
The viewer reads the MDB with the checks: the signature, the allocation block size a multiple of 512, the bitmap and first allocation block in order, and the allocation blocks inside the image. The alternate MDB must have the signature and agree with the first on the block count, size and name. The files and folders the catalogue holds must equal drFilCnt and drDirCnt, and the root's count of its children must equal what the catalogue has; the bitmap's free blocks must equal drFreeBks. The sizes of the two tree files (drXTFlSize, drCTFlSize) cannot be more than the three extents in the MDB hold (these files have no overflow extents); a larger size is reported as a problem.
On the two real volumes (800 KB: 1,594 allocation blocks of 512 bytes, from block 4; both named New Disk) the fields are: the bitmap starts at block 3, the extents tree is 12 blocks at allocation block 0, the catalog tree 12 blocks at 12 (and, in the second volume, a further 12 blocks at 196), the counts agree with the catalogue, and the alternate MDB (block 1598) equals the first.