How to fix overallocation warnings

Hi


I found a thread on here from a few years ago, offering a solution to the problem of overallocation warnings when using Disk Utility's first aid on an APFS container. The solution suggested the following...


1) Create a bootable clone on an external drive, I used Carbon Copy Cloner and a Samsung T5.

2) Boot from the clone (press and hold the option key before power-up to get the boot menu)

3) Run ** first aid on the internal APFS container -> expand detail view

4) Scroll detail view up to find the path and name of the drive. In my case, it was /dev/disk0s2

5) Open Terminal

6) Enter sudo fsck_apfs -y -o /dev/disk0s2

The command will check all volumes of the container and then fix the overallocation

at the end of the procedure:


----


I followed these steps, but entering sudo fsck_apfs -y -o /dev/disk0s2 into Terminal instead gives this:


fsck_apfs: invalid option -- o


usage: fsck_apfs [-q | -n | -y] [-l] device


       -l            live fsck (lock down for verify-only)


       -q            quick check if the superblock and checkpoint superblock are valid.


       -y            always repair (answer "yes" to questions)


       -n            verify only (answer "no" to questions)



Can anyone offer an explanation of the above or how to proceed?


Huge thanks to anyone who replies!


J


MacBook Pro, OS X 10.11

Posted on Aug 26, 2023 5:07 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 28, 2023 1:38 PM

Make sure to use only one hyphen (aka "dash") and make sure that the character following it is a lower case letter "Oh".


Make sure when performing this trick that you are booted to an OS which is the same or newer than the one which created the APFS file system on the drive you are trying to repair. The following notice was take from the "fsck_apfs" man page:


man  fsck_apfs


-o   Repair overallocations; please do not run an older fsck_apfs on newer systems with this option.


FYI, there should be no need to clone the drive in order to do this....you should be able to boot into either Recovery Mode or Internet Recovery Mode and run this command. Besides, bootable clones are no longer recommended because of all the new security features Apple has enabled which has caused a lot of failures when attempting a bootable clone (especially on an Apple Silicon Mac).



Similar questions

1 reply
Question marked as Top-ranking reply

Aug 28, 2023 1:38 PM in response to John Cooney

Make sure to use only one hyphen (aka "dash") and make sure that the character following it is a lower case letter "Oh".


Make sure when performing this trick that you are booted to an OS which is the same or newer than the one which created the APFS file system on the drive you are trying to repair. The following notice was take from the "fsck_apfs" man page:


man  fsck_apfs


-o   Repair overallocations; please do not run an older fsck_apfs on newer systems with this option.


FYI, there should be no need to clone the drive in order to do this....you should be able to boot into either Recovery Mode or Internet Recovery Mode and run this command. Besides, bootable clones are no longer recommended because of all the new security features Apple has enabled which has caused a lot of failures when attempting a bootable clone (especially on an Apple Silicon Mac).



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to fix overallocation warnings

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