MacBook M4: APFS corruption prevents disk space reclamation
Device: MacBook with M4 chip, macOS Tahoe 26.2
Issue: Unable to resize APFS container to reclaim unallocated disk space.
Background: I deleted a secondary APFS volume which left 60GB of unallocated free space on my internal SSD. This space is visible in diskutil list as free space between disk0s2 (185.1GB APFS container) and disk0s3 (Recovery). I am unable to reclaim this space.
What has been tried:
- diskutil apfs resizeContainer disk0s2 0 — fails with Error -69582: One or more of the given or implied APFS Volumes are locked
- diskutil apfs resizeContainer disk3 0 — same error
- fsck_apfs -fy /dev/rdisk3s5 — fails with "container /dev/rdisk3 is mounted with write access"
- Booting from external USB bootable macOS Tahoe installer
- Force unmounting disk3 before resize — unmount succeeds but resize still fails
- Disabling SIP (csrutil disable) — did not resolve the issue
- Running First Aid in Disk Utility — fails with container corruption error
Errors reported by fsck_apfs:
- error: directory valence check: directory (oid 0x3): nchildren (1) does not match drec count (0)
- error: nchildren of inode object (id 3) does not match expected value (0)
- Deferred repairs skipped
- Storage system check exit code is 8
- Error -69716: Storage system verify or repair failed
Current situation: The APFS container has minor corruption that prevents both repair and resize operations. The Mac boots and operates normally. All data is intact. The 60GB remains unallocated and inaccessible.
Request: Guidance on how to repair the APFS container corruption and reclaim the unallocated 60GB of disk space on an M4 Mac without erasing and reinstalling macOS.