First Aid to APFS USB Drive Workaround

Possible workaround for running disk utility first aid on external USB disc drive:


Boot into single user mode, power on the external USB drive, bring up the disc utility and run first aid on the disc. Has been running successfully under macOS Monterey 12.4

iMac Pro, macOS 12.4

Posted on Jun 21, 2022 9:45 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 4, 2022 8:31 AM

I was confused; two issues here. First, on the iMac Pro the Command-S did result in a different video display during login where an extensive log of startup showed; the result, as stated, really still was in "normal" mode. My mistake and confusion -- sorry!


The actual way to get the FirstAid to work was discovered a bit by accident, but it seems to work reliably. This is for the disc itself; haven't experimented with the container.


1). The external USB (MyBook1 in this case) drive was connected to power and received line power when the rest of the iMac was booted.

2) Brought up the Disc Utility application and had it showing all external discs.

3) Brought up the terminal app and prepared it for repairing the disc by typing

hurtw@Music-iMacPro ~ % diskutil repairVolume MyBook1

but not yet entering "return" to execute the command.

4) Connected the USB drive to a USB port (in my case a switchable USB hub)

5) Waited for the Disc Utility to show the presence of MyBook1 in greyed out form -- not yet mounted.

6) Immediately either requested Disc Utility to do first aid on MyBook1; since it was not yet mounted the first aid worked as the previous screen shot showed.


I tried the same from the terminal -- see attached screen shot. The timing on all this seems a bit flakey, but in general it seems to work.


It appears that the macOS unmount command will not fully unmount a drive so first aid fails, but if you catch it BEFORE the system mounts the drive then the first aid or repair will work. Conclusion: Fix the macOS unmount command so it leaves the device in the same state as when initially connected to a USB port


Attempted to paste the same thing from the terminal using the diskutil.

Similar questions

5 replies
Question marked as Top-ranking reply

Jul 4, 2022 8:31 AM in response to Barney-15E

I was confused; two issues here. First, on the iMac Pro the Command-S did result in a different video display during login where an extensive log of startup showed; the result, as stated, really still was in "normal" mode. My mistake and confusion -- sorry!


The actual way to get the FirstAid to work was discovered a bit by accident, but it seems to work reliably. This is for the disc itself; haven't experimented with the container.


1). The external USB (MyBook1 in this case) drive was connected to power and received line power when the rest of the iMac was booted.

2) Brought up the Disc Utility application and had it showing all external discs.

3) Brought up the terminal app and prepared it for repairing the disc by typing

hurtw@Music-iMacPro ~ % diskutil repairVolume MyBook1

but not yet entering "return" to execute the command.

4) Connected the USB drive to a USB port (in my case a switchable USB hub)

5) Waited for the Disc Utility to show the presence of MyBook1 in greyed out form -- not yet mounted.

6) Immediately either requested Disc Utility to do first aid on MyBook1; since it was not yet mounted the first aid worked as the previous screen shot showed.


I tried the same from the terminal -- see attached screen shot. The timing on all this seems a bit flakey, but in general it seems to work.


It appears that the macOS unmount command will not fully unmount a drive so first aid fails, but if you catch it BEFORE the system mounts the drive then the first aid or repair will work. Conclusion: Fix the macOS unmount command so it leaves the device in the same state as when initially connected to a USB port


Attempted to paste the same thing from the terminal using the diskutil.

Jul 3, 2022 8:59 AM in response to Bazuin

Bazuin wrote:

Possible workaround for running disk utility first aid on external USB disc drive:

Boot into single user mode, power on the external USB drive, bring up the disc utility and run first aid on the disc. Has been running successfully under macOS Monterey 12.4



Repair a storage device in Disk Utility on Mac - Apple Support


Mac startup key combinations - Apple Support


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.

First Aid to APFS USB Drive Workaround

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