Format:HFS Plus
| On this wiki | Facts · Code · Notes · Topics |
|---|
Apple's pre-APFS volume format (HFS+, case-sensitive HFSX, journaled variants): the 512-byte volume header at byte 1024 starts with "H+" (version 4) or "HX" (version 5), with a copy 1024 bytes before the end of the volume.
Overview
HFS Plus replaced HFS on classic Mac OS and was the default macOS format until APFS (see Format:APFS). Disk images of older installers and iOS-era firmware may carry it (Format:Apple Disk Image (UDIF)). Everything is big-endian.
Recognition
The volume header (HFSPlusVolumeHeader) starts at byte 1024 and is 512 bytes. Offset 0: signature "H+" (0x482B) for HFS+ or "HX" (0x4858) for HFSX; offset 2: version 4 for HFS+, 5 for HFSX; offset 4: attribute flags; offset 8: last mounted version, where "10.0" means Mac OS X, "HFSJ" a journaled volume and "fsck" / "FSK!" a volume touched by fsck_hfs; offset 12: journal info block number (when the journaled attribute bit is set); then creation, modification, backup and checkpoint dates (HFS timestamps, UTC). The alternate volume header is stored 1024 bytes before the end of the volume.
HFS wrapper
An HFS+ volume may be embedded in an older HFS volume: that volume has a Master Directory Block at byte 1024 whose drEmbedSigWord (offset 0x7C) is "H+" when a HFS+ volume is embedded. A volume need not have the wrapper; then its header is at byte 1024 of the disk.
Allocation
The allocation block containing the first 1536 bytes (reserved space plus volume header) is marked used in the allocation file; the last allocation block is marked used for the alternate header.
Analyst notes
- Unverified: the remainder of the header (block size, block counts, the five fork records for allocation, extents, catalog, attributes and startup files) is not tabulated here; read the libfshfs document before parsing.
Sources
libfshfs documentation (Joachim Metz, GFDL-1.3) at 78321de; the Linux hfsplus headers were not useful (hfsplus_raw.h only includes hfs_common.h).
Code & repositories
- https://github.com/libyal/libfshfs @
78321de1eda54b30261adf59b938781128591b2e· license: LGPL-3.0-or-later (declared by the contributor for the files used; GitHub reports LGPL-3.0 for the repository)
libfshfs by Joachim Metz; documentation/ describes HFS, HFS+ and HFSX including the volume header and wrapper.
Tested on: source read, not run: documentation read only · checked 2026-10-19; last activity 2026-10-11