How to fix "Disk Not Ejected Properly" error on external backup drive in MacBook Air

Ran Disk Utility First Aid on my external Time Machine backup disk after a “disk not ejected properly” notification that popped up overnight while the MacBook Air was sleeping (a power glitch?)


Full text of First Aid run:


Running First Aid on “Backup 3TB” (disk 7s1)


Checking the file system and repairing it if necessary

Volume was successfully unmounted

Performing fsck_apfs -y -x /dev/rdisk7s1

error: container disk /dev/rdisk7 is mounted < what does this mean?

File system check exit code is 65

Restoring the original state found as mounted

File system verify or repair failed (-69845)


Operation failed...


Is my drive hosed or not? Backups have been running fine. Disk is a 3TB Western Digital HD, formatted APFS with one volume named Backup 3TB.


Connected to an M1 MB Air, 16GB, 1TB, Monterey 12.7.4


[Re-Titled by Moderator]

MacBook Air 13″, macOS 12.7

Posted on Mar 17, 2024 2:19 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 18, 2024 8:05 AM

Drive DX confirmed the drive is actually OK.



On their website they had an explanation of why First Aid failed:


macOS does not support diagnosing external drives using S.M.A.R.T. technology “out of the box” . In order to allow your Mac to diagnose external drives, you will need to install a special third party driver. 


You’d think Apple could at least post a message about this when running First Aid. Hope this is of help to others who come here for help.


Thanks to BDAqua and Tesserax!

Similar questions

7 replies
Question marked as Top-ranking reply

Mar 18, 2024 8:05 AM in response to BDAqua

Drive DX confirmed the drive is actually OK.



On their website they had an explanation of why First Aid failed:


macOS does not support diagnosing external drives using S.M.A.R.T. technology “out of the box” . In order to allow your Mac to diagnose external drives, you will need to install a special third party driver. 


You’d think Apple could at least post a message about this when running First Aid. Hope this is of help to others who come here for help.


Thanks to BDAqua and Tesserax!

Mar 18, 2024 9:45 AM in response to mudbucker

mudbucker wrote:

Drive DX confirmed the drive is actually OK.

It is best to post the complete DriveDx text report here so we can review it to confirm. While DriveDx usually does a good job analyzing a hard drive, the interpretation of SSD health is much more complicated..


On their website they had an explanation of why First Aid failed:

macOS does not support diagnosing external drives using S.M.A.R.T. technology “out of the box” . In order to allow your Mac to diagnose external drives, you will need to install a special third party driver. 

You’d think Apple could at least post a message about this when running First Aid. Hope this is of help to others who come here for help.

No, you misunderstand the difference between First Aid and DriveDX. First Aid is only scanning & repairing the file system and performs no checks of the physical drive or the drive's health attributes. Well, to be completely accurate, Disk Utility & macOS may show a "SMART status" indicator, but this is only triggered once the drive is nearly useless and only for internal drives. I've only ever seen Disk Utility/macos show a "Smart status: failed" message two times in twenty years, although I have replaced hundreds if not thousands of bad hard drives in that time.


DriveDx is actually check the physical health of the drives. Most drives these days have their own built-in SMART health monitoring system which keeps track of the physical characteristics of the drive & its behavior. DriveDx can alert the user to potential issues as soon as the drive begins to show signs of possible failure instead of waiting until the failure is imminent like Disk Utility/macOS. The drives will set a SMART failure status once those health attributes reach a critical level....meaning the drive is usually already unusable & needs immediate replacement.


When First Aid finds file system corruption, it could be caused from unexpected disconnect of the drive, or something else that corrupted the file system such as a bug. Or the file system corruption could be caused by a drive hardware failure.


It also appears your issues are when running First Aid on a Time Machine backup drive. I'm not sure how this may affect things, especially when trying to scan the Container portion. A TM backup these days is read-only, except when TM is writing the backups to the external drive.


If you have erased the whole physical external drive and still having issues, then most likely there is some sort of hardware issue with the external drive....maybe just the cable, adapter, enclosure, or possibly even the computer port....or it may be the physical drive (inside the enclosure) that has the problem.

Mar 17, 2024 9:47 PM in response to mudbucker

I suggest that you try using DriveDx to fully examine this drive for errors. If nothing else, DriveDx will be a very valuable tool to have in your "troubleshooting toolbox." You can post its report here if you need any assistance interpreting its results. Just include the report using the "Additional Text" tool on the forum's editor.


Depending on what it finds, can address, whether or not, the drive is recoverable. If it doesn't find any errors, then try first unmounting the drive from your Mac, and then, physically removing, and then, reinstalling it. Then run Disk Utility's First Aid again. You may need to run it multiple times.

Mar 18, 2024 4:59 AM in response to mudbucker

-69716 System verify Storage Repair failed…

on an iMac (late 2012) with a 1TB Fusion Drive.

anyway, long story short... needed to recreate the fusion drive from the recovery terminal (after Backup, of course). After recreation, installation worked fine. 

This is definitely a Fusion hardware issue. I think that the drive is bad and needs to be replaced.


MacOS Update Hangs with "Storage system verify or repair failed (-69716)"


Try one of these two…

You can use Drive DX to possibly get a better view of Drive health…

https://binaryfruit.com/drivedx


Thanks to Jack-19…


It may be wise to run SMART Utility to check the drives' health.

Mar 18, 2024 9:53 AM in response to mudbucker

Hmm, I just noticed that you ran Disk Utility's First Aid against a Disk Image and not the actual drive itself.


I suggest you try running First Aid on the actual drive listed under the External category in the DU and see its results. This is what I believe you did in the first place, based on what your originally posted.


***UPDATE***


Looks like HWTech already caught this and has provided an excellent description on the differences between these utilities.

Mar 18, 2024 4:38 AM in response to BDAqua

This is getting confusing.


I erased the disk, checked it with First Aid and it paeds swith flying colors. Used it for hourly backups overnight, then ran First Aid again and got the same error as before.


Is this related to APFS containers? Is there really nothing wrong with the disk?


Here's screenshots running First Aid on the top level, then at the container, then at the volume in the container.





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 "Disk Not Ejected Properly" error on external backup drive in MacBook Air

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