Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Disk Utility CANNOT FIX APFS volumes! Why isn't this fixed?

Disk utility cannot fix apfs volumes if they have mounted time machine volumes on them. This would be true for most users. It just says the disk cannot be unmounted and fails. The instructions tell you to reformat the disk. THIS IS DANGEROUS AND WRONG since people will erase their backups and potentially lose data.


Add to this the bug that causes the MacBook to disconnect and dismount drives attached through a dock ... randomly... and you have a recipe for data loss when users try to run Disk Utility to fix their drives.



[Link Edited by Moderator]



MacBook Pro 14″, macOS 12.4

Posted on Jun 16, 2022 2:06 PM

Reply
Question marked as Best reply

Posted on Jun 16, 2022 2:12 PM

EnterpriseCloud wrote:

Disk utility cannot fix apfs volumes if they have mounted time machine volumes on them. This would be true for most users. It just says the disk cannot be unmounted and fails. The instructions tell you to reformat the disk. THIS IS DANGEROUS AND WRONG since people will erase their backups and potentially lose data.

Add to this the bug that causes the MacBook to disconnect and dismount drives attached through a dock ... randomly... and you have a recipe for data loss when users try to run Disk Utility to fix their drives.


[Link Edited by Moderator]




you can submit your Apple Feedback Product Feedback - Apple


Similar questions

7 replies
Question marked as Best reply

Jun 16, 2022 2:12 PM in response to EnterpriseCloud

EnterpriseCloud wrote:

Disk utility cannot fix apfs volumes if they have mounted time machine volumes on them. This would be true for most users. It just says the disk cannot be unmounted and fails. The instructions tell you to reformat the disk. THIS IS DANGEROUS AND WRONG since people will erase their backups and potentially lose data.

Add to this the bug that causes the MacBook to disconnect and dismount drives attached through a dock ... randomly... and you have a recipe for data loss when users try to run Disk Utility to fix their drives.


[Link Edited by Moderator]




you can submit your Apple Feedback Product Feedback - Apple


Jun 16, 2022 3:10 PM in response to EnterpriseCloud

Apple macOS implements Time Machine local snapshots, which borrow storage on a boot device for secondary backups, when the primary backup device is unavailable. These snapshots can also return allocated storage to the available pool as the storage volume fills.


As for Time Machine not working with a Time Machine partition co-resident on an APFS boot device, log feedback with Apple.


Having primary backup storage co-resident with the same volumes being protected is not something I would generally recommend to folks, given the likelihood of catastrophic data loss with that configuration; data and backup both lost after fire, flood, dunk, theft, drop, etc.


If local external storage (HDD, SSD, etc) or network-attached (NAS) storage (e.g. TrueNAS, Synology, etc) is not an option and for whatever reason, there are hosted backups available from various providers including SpiderOak and BackBlaze.


But again, best log your feedback on this issue directly with Apple, with available details.


Jun 16, 2022 2:32 PM in response to leroydouglas

The essence of the article that the moderators deleted the link to is:


If Disk Utility fails to repair a disk or you cannot unmount it:


  1. Check that Time Machine isn’t making a backup, or due to make one soon.
  2. Eject each volume on the disk in the Finder or Disk Utility.
  3. Open /Volumes/.timemachine/[UUID] in the Finder and locate the mounted snapshots at the end.
  4. Eject each of those mounted snapshots in the Finder.
  5. Try ejecting the disk again.
  6. Run disk utility repair on the disk once it ejects successfully if you need to repair the disk.


Jun 16, 2022 2:33 PM in response to EnterpriseCloud

I'm not sure why it would be dangerous. It's only a backup. You can make another after erasing it.

Regardless, if you have a disk with problems, nobody would ever consider using that as a sole backup. They'd make a new backup on a new drive before erasing the old.

Add to this the bug that causes the MacBook to disconnect and dismount drives attached through a dock ... randomly... and you have a recipe for data loss when users try to run Disk Utility to fix their drives.

Never seen that one.

Jun 16, 2022 2:40 PM in response to Barney-15E

First of all, when I get these failures to repair the drive *there is nothing wrong with it*! The reason I am repairing it is to prevent problems from accidental ejection (or that bug which ejects it during sleep while on my dock.) Disks can be corrupted in ways that are easily fixed by Disk Utility and do not need to be replaced.


However, the disk cannot be fixed if it is apfs and has time machine volumes on it because unmounting the disk does not unmount the time machine volumes.


Instead, Disk Utility tells you to erase the drive. How many users are going to run out and get a second drive when they get this message? Probably not most of them.


Instead they will erase the drive and try to run a backup to it. If the drive was good, they lost their backup history (which arguably is the one good feature of Time Machine.) If the drive actually is bad, they they have lost all their backups, which puts in them in a precarious position.


This undocumented "feature" is ridiculous. It's a bug, which is that MacOS should unmount the Time Machine snapshots when it unmounts the drive they are stored on. It's a problem in self-consistency.



[Edited by Moderator] 


Jun 16, 2022 3:37 PM in response to EnterpriseCloud

First of all, when I get these failures to repair the drive *there is nothing wrong with it*! The reason I am repairing it is to prevent problems from accidental ejection (or that bug which ejects it during sleep while on my dock.) Disks can be corrupted in ways that are easily fixed by Disk Utility and do not need to be replaced.

The write ahead cache will already have completed by the time the Mac goes to sleep. There would not be any corruption.

If your drive controller is making your drive eject itself when the Mac goes to sleep, turn off the option to put hard drives to sleep.


Disk Utility CANNOT FIX APFS volumes! Why isn't this fixed?

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