If your Mac shows errors like “Invalid node structure”, “Keys out of order”, or “Invalid sibling link”, your HFS+ catalog directory (the on-disk index of every file and folder) is likely damaged. Disk Drill can often fix this by rebuilding the catalog with its HFS+ Rebuild Directory method. Preview the reconstructed folder tree, then either write the new directory to the disk or mount the found items as a virtual disk to recover your data safely.

Download Disk Drill data recovery app Download now

What is the HFS+ Catalog Directory (Catalog File)?

It’s the master index of an HFS+ volume. HFS+ stores this index as a B-tree (a balanced tree) inside a special on-disk Catalog File. That B-tree contains a record for every file and folder, keyed by the parent folder’s ID and the item’s name. The catalog is one of several “special files” that make an HFS+ volume work (others include the Extents Overflow, Allocation, Attributes, and Startup files).

How Does the HFS+ Catalog Get Corrupted?

Common real-world causes include:

Typical symptoms and error messages. When Disk Utility / fsck_hfs checks an HFS+ volume, you might see:

  • Invalid node structure, Invalid record count, Invalid B-tree node size
  • Invalid sibling link, Keys out of order
  • “The volume could not be repaired” (exit code 8), sometimes followed by (-69845) in Disk Utility logs

These are all consistent with catalog B‑tree damage.

Before You Rebuild: Do This First (Best-practice Checklist)

  1. Stop writing to the affected disk/volume.
  2. Create a Byte-to-Byte backup (sector-level image) of the whole device to another healthy drive. Disk Drill includes a free Byte-to-Byte Backup tool; scan the image, not the failing disk.
  3. If the drive shows I/O errors or disconnects, prioritize imaging over any repair attempt; repeated writes can make things worse.

Disk Drill`s Unique HFS+ Rebuild Directory (Catalog) Method

When Disk Drill detects lightweight directory damage on an HFS+ volume, it exposes a purpose-built workflow:

  1. Look for the Rebuild button. In eligible cases, Disk Drill shows “Rebuild HFS+ catalog file” when you right‑click the corresponding HFS+ partition.rebuild a corrupted catalog directory disk drill mac step 01
  2. Click “Rebuild HFS+ catalog file”. Disk Drill reads the partition/boot sector and uses that metadata to locate the HFS+ catalog’s B-tree, then reconstructs the directory.rebuild a corrupted catalog directory disk drill mac step 02
  3. Preview the result. You’ll see a virtual file tree representing the rebuilt catalog. Verify the folder structure and key files.rebuild a corrupted catalog directory disk drill mac step 03
  4. Choose how to proceed:
    • Rebuild — write the new catalog back to the original volume (fastest way to make the disk mountable again).
    • Mount data as a disk — mount the rebuilt tree to a virtual disk and copy data out (safest if you want to avoid any writes to the problem drive).
    • Or go Back to try other recovery methods.

Good to Know (and Limits)

  • Rebuilding the catalog changes metadata structures, not your file contents. If the media is failing, write‑backs may still be risky—prefer imaging and Mount data as a disk when in doubt.
  • Many modern Macs default to APFS, but external disks and older Time Machine sets may still be HFS+, so these instructions remain relevant. (Time Machine now prefers APFS but still supports Mac OS Extended.)
.updated: October 27, 2025 author: CleverFiles Team