External Drives STILL ejecting during sleep in Ventura

Just updated to Ventura on a Mac Studio and I noticed that I still have the issue of my external HD disconnecting when the computer goes to sleep. I know this because I get the “disk not ejected properly” message when I wake the computer.


I suppose my question is this, are we EVER going to get a fix to this long-standing problem? This has been a bug I have dealt with on multiple macs, multiple external drives, and every version of MacOS for at least the last decade. It seems like something Apple should be able to fix, and yet, every time I upgrade to the latest OS I have the smallest hope that this issue might have finally been resolved. Every time I am disappointed to see that it persists. I’m far from the only person with this issue, and it is not a specific machine or OS causing the issue, it is every mac I’ve ever had and every version of MacOS.


Please, DO NOT suggest an “SMC reset”, “failing HD cables”, “reinstalling MacOS” or any of the other useless recommendations that serve no purpose other than to send people on a quixotic and time-consuming quest. This is a well known, well-documented , longstanding bug. This is clearly a problem that Apple needs to address and I’m finally annoyed enough to post about it after yet another year of the latest OS failing to address it.


The Mac Studio wasn’t cheap, and part of the expectation a person has around what is supposed to be a powerful, desktop workstation would obviously be that— given its intention as a professional workstation— that it isn’t ejecting external drives just because it needs a nap. Before you ask, yes, the behavior continues even if you turn off “put hard drives to sleep when possible” in the energy saving preferences. The only solution is a third party app like Jettison or to set your energy savings so that the computer never sleeps.


I just want to know if Apple has ever addressed this in any official capacity and if a fix is ever coming for this? The fact that there’s a market for third party apps that have to exist to try and mitigate this long-standing bug should be kind of embarrassing. I don’t get it, you can create your own processors that exceeded everybody’s expectations while running cool to the touch but you can’t get harddrives to stop ejecting? That seems odd. Does Apple plan on addressing this? Have they ever said anything about this at all? If anybody knows, I’d appreciate it.

Mac Studio, macOS 13.0

Posted on Oct 27, 2022 12:35 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 17, 2023 11:05 AM

I've posted here a number of times, with both questions and potential solutions, but until now nothing I've tried has worked, until... drum role; I've finally solved mine without any changes to default macOS settings. My eject drives problem has been with me from Mountain Lion up to and including High Sierra. Here is what has worked for me and why I believe it can be replicated.


First, have y'all noticed that Apple has never, and I mean never sold an Apple-branded USB hub? They now sell several third-party hubs but attach a disclaimer that all warranty or trouble claims must be submitted to the makers of those hubs. Translation in plain English; they know they have a problem with USB and the fix in either the firmware or the OS is not worth the dime to corporate Apple, especially since they have a story they can lay on you if you have a USB problem, to wit: SMC and/or NVRAM reset.


The problem I believe is a race condition between arrival of a wake up signal and the distribution and initialization of 5v dc over USB. It appears random because it is, because it cannot be duplicated: there is no way to resolve this to properly initialize 5v dc over USB without a significant engineering investment, and since Apple does not own USB, the way they do Firewire and Thunderbolt, why bother?


My problem was having two external drive enclosures on a 7-port USB hub. The hub was connected to a direct port on the machine. When the eject problem occurred, both of these drives always ejected, not just one but both, always both (actually 4, since both drives have 2 partitions.) Meanwhile, a RAID enclosure with its own power supply also connected to USB, but on the other direct USB port on my MBP, never ejected. I discussed this problem with technical support at both the hub and enclosure manufacturers and got conflicting advice. One said never put more than one enclosure on any hub, the other said never put even one enclosure on any hub even though they sell a 5v dc adapter for their enclosure. Their message; attach their enclosure with its own 5v dc source directly to the machine. Reading between the lines; this is subtle finger pointing, certainly implying the problem is Apple's. So I ran my own experiments.


First, I moved one of those drive enclosures to an open direct Firewire port. Voilà, this drive now never ejects while the one still on the hub did, at least once every 2 or 3 days. Remember, for me macOS has only default settings and sleep, if done correctly, is welcome. This is the only fair way to test macOS since it is valuable to permit drives to sleep on a system that is always on.


Next, I added a dedicated 5v dc power adapter to the drive enclosure. The hub itself has its own dedicated supply. Result, now neither of my two external drives eject. Going into my third week without a reboot and with no spurious ejects.


Conclusion: Apple has a latent bug in the hardware/firmware/software implementation of 5v over USB. Don't expect a solution anytime soon from Apple since we know the problem is present in all versions of macOS from at least Mountain Lion to Ventura, even in non-Intel machines given the comments on this site.



Similar questions

127 replies

Apr 26, 2023 11:07 AM in response to jklundell

You don't state the external connection but I assume it is USB. My research suggested an Apple problem with its implementation of USB 3.0 and I posited that USB 2.0 hubs were immune to the problem, but alas, even after many days of zero "improper ejects", and many dozens, perhaps hundreds of sleep/wake events, I still get an occasional improper eject event (like once every 3 weeks or so) even with an older USB 2.0 hub. Apple just does not give good USB. As Apple will not own up to the problem, and obviously can't or won't debug a race condition, we are stuck and just have to live with the problem. Me, my next laptop will not be a Mac. I'm leaning towards a Framework modular running Ubuntu. It's a lot of work moving off the Apple platform but when my current machine dies I'll switch. Another annoying macOS problem (I run High Sierra) just happened, and it happens every 2 weeks or so, and only a reboot fixes it. My integrated monitor goes black even while my remote monitor is alive and well, and nothing I've tried will wake it up. I am typing this into a window on my external HP, and when done, and I post this I'll reboot. Man does all this suck.

Aug 23, 2023 7:06 AM in response to KJH1986

You are problem! The problem old style hard drive had to 'Sleep' the years Windows administration have years have said "Macs are to chatty on the network" and so in Mac OS Time stopped Bonjour! So what is happening is the hard drive doesn't get a ping to wake up from Mac OS anymore! So reboot to clear your cache and try it again to see if you get the error on SMB sense MAX OS Venture use SMB 3 now while windows only products sleep all the time and is waiting for Windows machine to wakie it up (be chatty')! :)

Sep 9, 2023 11:24 AM in response to KJH1986

adding to the discussion of the usb bugs on ventura:


same here, started in Mojave (or maybe before that), worse after ventura upgrade and still worse/happening after most recent ventura upgrades (now at 13.5.2 (22G91)) and it continues and happens frequently as drives go missing while it is awake as well.


well known/documented bug for many years in Mac OS, I don't understand why it's not only persisted but gotten worse.


iMac 2020 5K intel

Oct 3, 2023 11:47 AM in response to KJH1986

I am having a similar problem and also may have some insight and a potential course of action. I have a Mac mini with attached storage and mount the attached HDDs using SMB on my iMac. If I step away for some time and come back only one of the mounted shares remains mounted - out of 6 shares. The one that remains mounted has my Photos.app library and Music.app library on it. The others are just bulk storage.


I am assuming that it remains only because there is an active link to the data on it and the others are unceremoniously unmounted because there is no activity on those shares.


The question is how do I cue macOS to maintain an active link all of the mounted shares? OR make those permanent. Maybe there is a autofs setting?


Or maybe the answer is here



Sounds like a MacOS SMB configuration setting, as you suggest.
In a terminal, tryCode:

sysctl -a | grep net.smb

My guess is it's one of those _deadtimer parameters. Try setting them to zero, one at a time, to see if you can find teh one that matters. To change these:Code:

sudo sysctl net.smb.fs.kern_deadtimer=0

etc.
Make a note of their current value before changing; you can just reset these to their previous values the same way if required.



Dec 24, 2023 4:44 AM in response to leroydouglas


KJH1986 wrote:

Just updated to Ventura on a Mac Studio and I noticed that I still have the issue of my external HD disconnecting when the computer goes to sleep.

Please, DO NOT suggest an “SMC reset”, “failing HD cables”, “reinstalling MacOS” or any of the other useless recommendations that serve no purpose other than to send people on a quixotic and time-consuming quest.

I just want to know if Apple has ever addressed this in any official capacity and if a fix is ever coming for this?







leroydouglas

User level:
Level 10
183,017 points
Oct 28, 2022 6:40 AM in response to KJH1986




or on line Apple Support


Outside the USA—Contact Apple for support and service by phone
See a list of Apple phone numbers around the world.
Contact Apple for support and service - Apple Support

You can file a bug report /submit your Apple Feedback here: Product Feedback - Apple

neither of which has done or will do any good based on long time experience. like the OP, the bug persists through numerous OS versions and updates.

Feb 26, 2024 10:36 AM in response to KJH1986

Here's one other clue to what may be the cause of this currently unresolved disk eject mystery.


I recently bought a MacStudio running Sonoma 14.3.1 and added two identical 2TB Samsung 980 Pro SSD drives in identical housings (Orico). One was formatted for strictly Mac work, using APFS format. The second was formatted using ExFAT for use on both Mac and PC's. Both are on their own Thunderbolt port on the back of the system, and the hardware seems to show there are 4 Thunderbolt busses.


I generally sleep my system when I step away for more than two hours, including overnight when it will be off for 14 or more hours at a stretch.


When I wake the system (using the mouse) the APFS drive never has any disk eject messages. But the ExFAT drive always has multiple disk eject messages...the more hours it slept, the more messages. (I'll track the sleep time/eject failure messages and see how often this happens, but it seems to happen once per hour.)


Sonoma doesn't have the same power down options for the drive mentioned in most of the posts in this thread...once again, Apple got rid of those options in the newest iteration of the System Settings UI. (UGH!)


I'm going to just sleep the monitor going forward and see if that stops the apparent disk error, and in theory eliminate the risk of an improper ejection. But I wonder if there is any risk of not powering down my system, with its three SSD drives, and simply sleep the monitor instead?


Might this drive format issue be a clue to what could be happening? For those who have posted in the past, is the ExFat formatted drive perhaps a clue to what's going on??




Mar 2, 2024 8:28 AM in response to functionista

This issue (ejecting when the Mac goes to sleep) started happening after my most recent update to Sonoma. I have an M1 Studio with an OWC 4 bay drive that dismounted after I left it overnight. I was downloading photos from cards. I had four other drives attached - a lexar card reader, the SD reader in the Mac, a 4 TB SSD that I keep attached all the time, an external HDD where I save my duplicate images, and an ancient GRAID. All are attached to the Mac. The only drive that gets dismounted is my OWC HDD array, it wasn't happening before I upgraded to Sonoma. I am trying this solution tonight - "prevent automatic sleeping on power adapter when the display is off," hopefully it will work. I agree that I should just dismount it and turn it off when I'm done with downloads, but sometimes I need to keep it on and be able to walk away.

Mar 18, 2024 4:19 AM in response to KJH1986

The bug is still present in Sonoma. BTW, this bug broke my external SSD drive. And when I say broke, I really mean broke. Unannounced (incorrectly stopping the power output without ejecting the disk) power interruption caused by the bug caused the disc control circuitry to corrupt. Nice work apple.


Sad: "It just works" --> "it's just broken"


If apple would care about customers, it would have fixed this bug since it was introduced over ten years ago (it's already over 12 years old). This bug is practically already at teenage. Soon it will be able to apply to college.

Mar 23, 2024 4:07 AM in response to KJH1986

I have noticed an interesting feature of the bug for me.


I use the same MacBook Pro at home and at work. At work I plug into an external monitor, and the macbook sleeps a lot, but I never get the bug on waking. At home I do not use an external monitor and I can get 10+ notifications for 'disk not ejected properly' in a short sleep session.


So the external monitor must be keeping the power on for the external HDD as well?

Mar 30, 2024 4:18 AM in response to KJH1986

I wonder if this is an odd mix of Macs being a little odd in their implementation of the USB stack, and USB chipsets devices not always behaving correctly.

Years ago I went through three different USB SATA enclosures due to sleep issues on the iMac I had at the time. With one, the disk spun down and then spun up again, about once a minute. The second one didn't even spin down, but woke the Mac back up immediately. The third one worked as expected.


Now I'm having a similar issue as many others here: I upgraded from an Intel-based iMac to a M2 Pro Mac Mini. I had an ungodly tangle of USB hubs on the iMac, in part due to logistics (couldn't keep everything on the same desk!) and took the opportunity to tidy up a little bit. I keep 3 external disks always connected: the TM backup, a 4 TB "repository" HDD, and a cheap 500 GB SSD in a SATA enclosure. I also have another 1 TB HDD in another enclosure that occasionally plug in when I needed it.

On the iMac, and on the Mac Mini until a few days ago, those were connected to two separate Anker USB hubs, each with its own power supply. I used two of them because the hubs didn't do well with more than two disks each. I was always a little tentative when plugging other things in, as it would occasionally disconnect the disks, but it was generally fine. When the Mac slept, the disks would also spin down, and then occasionally wake up through the night as the Mac did its own PowerNap thing. No messages whatsoever, and everything open from those disks would remain open and functional.


A few days ago one of those hubs just stopped working. The hub itself does work, but it doesn't "see" the external power anymore. I decided it was a sign from the universe and bought a 7-port powered hub, making sure the power brick was powerful enough. I settled on a TP-Link UH700, which I figured would be better than the random no-name things on Amazon, and for the most part it was. I can connect all four disks to it and they all just work, and I even have three higher-power ports to spare for charging something, if I wanted to.

The problem is that bringing the Mac to sleep just cuts the power off, and there's simply no way around it. I've tried everything, but by the time I wake the Mac up in the morning, the entire right side of my screen has turned into a column of disconnection warnings.

Interestingly, this hub has one LED per port for some reason. Once the Mac sleeps, I can actually see the disconnection take place. The SSD does out first, followed by the HDDs. Then they all come back together a few seconds later.

A more recent Crucial USB SSD, connected to the Mac via USB-C rather than USB-A, doesn't seem to care. Plugging the hub into a USB-C port via a simple adapter won't make any difference, however, so it's not about the physical port.


No amount of tinkering in SysPrefs's Energy pane will fix it on my end. When the Mac tells the hub "we've gone to sleep", the hub should say "ok kids, spin yourselves down" but for some reason it just goes nuclear on them. Even a single thumb drive will exhibit the same behavior, so it's not a matter of using too much current.

Considering that the other hubs worked, I am inclined to blame the hub more than Apple, though it's probably a case of both being at fault somewhere. I do wonder if 7-port hubs are inherently worse at this, because they're generally implemented as two 4-port hubs, one connected to the other (hence why 7 available ports instead of 8).


I think I'm sending it back and trying another hub, since Anker doesn't seem to manufacture the same kind I had before; or rather, they do, but not with a micro-usb power port anymore. It's frustrating because I often just leave things as they are when I put it to sleep, and not all I use will be restored upon reboot if I shut down the Mac down. Further, ejecting the disks to have a "safer" sleep isn't always convenient as I may just have things open from those disks. Leaving the Mac fully on for prolonged periods when I'm not here just doesn't sit right with me.


You'd think in 2024 these issues would be a thing of the past, yet here we are...

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.

External Drives STILL ejecting during sleep in Ventura

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