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.

Posted on Mar 21, 2026 3:04 AM

Reply
10 replies

Mar 21, 2026 11:57 AM in response to m7taha

That is interesting and something I've never seen. That's certainly unallocated space!

Given everything that you've already attempted, this looks like a prime example of directory corruption.


I think the only way to fix this is to "...take off and nuke the entire site from orbit. It's the only way to be sure."


Backup your data. Then boot into recovery and erase and reformat the drive. Then reinstall macOS and finally recover your data from your backup. This is one of those times when your backup will earn its keep.


One saving grace here in your situation is that the drive is only 256 GB and your Mac is very fast, so backing up and recovering your stuff won't take long.


Edit - What was on this "secondary APFS volume" before you deleted it?

Mar 21, 2026 7:34 AM in response to m7taha

m7taha wrote:

[...]
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.

The startup drive cannot be repaired unless the computer is booted from another drive or in Recovery mode.

Have you tried running Disk Utility's First Aid on the drive while booted in recovery?

(It's an obvious thing, but you didn't include it in your very thorough post.)

How to repair a Mac storage device with Disk Utility - Apple Support


Mar 21, 2026 9:25 PM in response to m7taha

m7taha wrote:

The secondary volume was created intentionally to have two separate partitions. It was used for storing files separately from the main macOS volume. I deleted it thinking I will be able to merge back into the main container, which is when this problem started.

You actually created a new partition which made major changes to the drive layout. Modifying partitions is very risky and should be 100% avoided. People always realize much later that one or more partitions is too small and will almost always run into problems to fix things as you have discovered here.


While I have several posts on this forum with instructions to merge that "(free space)" back into the APFS Container, it won't do any good because of the file system issues reported by Disk Utility. This is why Disk Utility is refusing to merge it back together. Either you need to run First Aid from Recovery Mode by following the instructions in the following Apple article, or you need to erase the disk (aka the Volume Group) if the Container has errors/warnings that remain.

How to repair a Mac storage device with Disk Utility - Apple Support


Use the "If you cannot use Erase All Content & Settings" option if the Container has any unfixed errors/warnings, otherwise you can use the first option:

Erase your Mac and reset it to factory settings - Apple Support


Fortunately for you, macOS has a new option for creating new APFS volumes within the same Container as your OS installation. These new APFS volumes act a lot like partitions, but instead of making major risky changes to the drive layout (partition table), the APFS volumes share the same storage pool so you do not have to designate any sizes. You can put size restrictions on a new APFS volume if you wish, but I don't know if they can be changed later....for a simple data volume I don't think it you should put any restrictions on it. @D.I. Johnson provide a link to an Apple article about creating APFS volumes.





Mar 21, 2026 2:57 PM in response to m7taha

m7taha wrote:

The secondary volume was created intentionally to have two separate partitions. It was used for storing files separately from the main macOS volume. I deleted it thinking I will be able to merge back into the main container, which is when this problem started.

Understandable.


Something to know as you move forward is that with the new APFS drive format, partitioning a drive is no longer necessary, even for the situation you describe. Except, of course, when preparing a new drive for Mac use.


In the APFS formatted drive you can see that a container is created, and within that container are the APFS volumes. The container now manages the storage and dynamically allocates more or less space to any volume in the container that needs it or frees it. The volumes share the totality of the drive space.

Role of Apple File System - Apple Support


So, instead of repartitioning a drive, the thing to do now is simply add and/or delete APFS volumes to the container. They behave more or less like partitions the old formats used. It's much faster and safer to add or delete a volume than to repartition a drive. When you delete an APFS volume, the storage that volume has been using is automatically dumped back into the pool of storage managed by the container and made available to any other APFS volumes as they require.

Add, delete, or erase APFS volumes in Disk Utility on Mac - Apple Support



Mar 21, 2026 8:06 AM in response to D.I. Johnson

Yes, First Aid in Recovery mode was the first thing attempted. It fails with:

'Operation failed because corruption was found in the container disk3 or one of its volumes.'

Running First Aid repeatedly gives the same result. fsck_apfs also fails to repair it even with SIP disabled and when run from an external bootable USB. The container mounts automatically in every environment and cannot be repaired while mounted.

MacBook M4: APFS corruption prevents disk space reclamation

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.