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 Jan 10, 2023 7:29 AM

Same issue here. I have spent more than 10 hours on the phone with apple to try and fix all the way upto tier 3 support. They go back to it must be all 20something drives I've tried and only and issue with the 1 computer i'm calling about. haha! Ridiculous. Same issue on 12 macs, and all sorts different drives, connection methods, os version and hardware. The mac pro's are by far the worst though.


It is not just a single eject it is an ongoing failed to eject, remounting, failed to eject and remount. This can happen a few hundred times over night. SSD's, HDD, thunderbolt, usb, firewire even. Powered drives, and usb bus powered.


What I've found so far is the same drives causing issue when connected through another powered medium wont have the issue. So my thunderbolt arrays connected via a thunderbolt display, or usb drive connected through a powered dock. A powersource between the mac and drive is required.


I've been experimenting with an app call ejectify which will force eject a drive when the display sleeps or computer sleeps. It works to eject but the mac is remounting then while sleeping and it'll fail to eject again. Disabling Powernap should prevent the remounting this but it doesn't work.

Similar questions

127 replies
Question marked as Top-ranking reply

Jan 10, 2023 7:29 AM in response to KJH1986

Same issue here. I have spent more than 10 hours on the phone with apple to try and fix all the way upto tier 3 support. They go back to it must be all 20something drives I've tried and only and issue with the 1 computer i'm calling about. haha! Ridiculous. Same issue on 12 macs, and all sorts different drives, connection methods, os version and hardware. The mac pro's are by far the worst though.


It is not just a single eject it is an ongoing failed to eject, remounting, failed to eject and remount. This can happen a few hundred times over night. SSD's, HDD, thunderbolt, usb, firewire even. Powered drives, and usb bus powered.


What I've found so far is the same drives causing issue when connected through another powered medium wont have the issue. So my thunderbolt arrays connected via a thunderbolt display, or usb drive connected through a powered dock. A powersource between the mac and drive is required.


I've been experimenting with an app call ejectify which will force eject a drive when the display sleeps or computer sleeps. It works to eject but the mac is remounting then while sleeping and it'll fail to eject again. Disabling Powernap should prevent the remounting this but it doesn't work.

Feb 2, 2023 6:28 PM in response to perlboy_emeritus

Thanks for the update. I was open to the idea that this could be the cause but I wasn't too hopeful because, as I said, I had this issue on a MBP and I never woke that machine with the trackpad. We shouldn't have to do this level of experimentation to resolve this issue, but it's clear that Apple has no intention of helping us out here. This has been an issue for years on multiple forums and the only responses anybody has ever gotten from Apple on this are cookie-cutter, "computing 101" basic trouble shooting suggestions or speculation that a particular hub or drive is the cause of the issue. The problem is too ubiquitous across a variety of different Macs, with different OS versions, different hubs, and different drives for that to be true. It's just a case of totally passing the buck. Given their response, I've given up on any hope that Apple intends to address this in any serious way.


If you haven't already, I suggest you look up an app called "Jettison". It's been the only workaround I've found short of using "Amphetamine" (another app) or built in settings to just prevent your Mac from ever going to sleep. I prefer the Jettison solution personally. It's an app built and sold to specifically address this longstanding issue. It's not free and it's far from the ideal solution, but at least it's something, which is more than we've gotten from Apple on this despite years of people reporting this issue and writing about it on multiple forums.

Apr 21, 2024 3:17 AM in response to Old Toad

I respectfully disagree. While enabling that option 'fixes' the issue as it just doesn't prevent the computer for sleeping automatically, it doesn't really 'fix' it if one enables sleep mode manually (some of us do).


Conversely, as @Finest Planet reports, a different enclosure may very well provide a more solid 'fix'... luck permitting. It all depends on how the chipset implements the ACPI states. I've had that happen before, as I wrote in another post — this was several years ago on an Intel-based Mac (I can't recall which version of macOS), and I had to go through three different USB-SATA adapters before I found one that worked properly, incidentally by Verbatim. The others either exhibited this same behavior, or would continuously spin up and down while the iMac was sleeping.

Also, just recently, I had to return a TP-Link powered usb hub because it would hard reset when my new M2 Pro Mac Mini went to sleep. It has fancy lights on each of the ports, and no amount of fiddling with settings on the Mac would prevent all of them from brutally shutting down and then lighting up again. The same devices — especially a Toshiba 4 TB USB HDD which I always keep attached — work perfectly fine when connected to an old Anker powered hub. I put my Mac to sleep every night and never once have I woken up to an ejection warning with the Anker (and I did the same with the old iMac as well).


While Apple could probably do something better to handle this, the problem often lies in the way the sleep status is handled on the device. In theory, when the Mac goes to sleep, each device should switch to status D3Hot (sleep but powered), but many just drop to D3Cold (sleep and unpowered, i.e. unresponsive). At that point, it's as if one had tugged the drive out of the port, and the error appears. To exacerbate the problem, macOS tends to keep checking on devices, which leads to them being reconnected and disconnected multiple times over the course of a sleep session. Even when the device itself handles D3Hot properly, it's often woken up by the system — with an HDD that's easy to tell because it spins up. Some of it may also depend on which ACPI status the Mac goes into, which is not entirely clear (anything between S0ix and S3, I'd reckon.)

This has some basic info: https://en.wikipedia.org/wiki/ACPI#Power_states, and this page by Microsoft is quite enlightening: https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/device-sleeping-states. (Some of it is about Windows, but that's just because this is a manual about the the Windows kernel's internals.)


So while never going to sleep is a valid workaround at the expense of wasting power, a "proper" solution is using devices that implement sleep modes properly. It's impossible to know beforehand, though, which makes this issue very frustrating, especially as a single broken device in the chain (a hub, an adapter...) will screw everything up. It's why I haven't bitten the bullet on the Satechi stand hub — it looks great on paper and it's nice to have an NVMe SSD within it, but what if it ends up choking on sleep each night?

May 8, 2023 6:12 AM in response to KJH1986

The 'prevent hard drives from sleeping' toggle in the system preferences is specifically designed for mechanical drives. SSD drives do not have mechanical components and thus are not impacted by this setting.


The SSD drives plugged into the USB ports on your system will be impacted because the USB ports deactivate when the computer goes to sleep. The ports are powered down, thus resulting in the 'disk not ejected properly' errors.


I discovered this over the weekend. I came back to find about 10 disk ejected errors on my screen. This means that the hub periodically got power (probably woke up for network wake) and then went back to sleep multiple times powering down the USB ports and then ejected the drive again.


This is NOT an issue of your computer, but the type of drive being used. However, Apple should include an option to not shut down USB ports or at least let us know if there is one with continuous power. I have to upload HUGE files that take hours or days and in Ventura, there is no way to keep the computer from sleeping and it causes major issues for cloud work.


EDIT: Check under the 'advanced' tab in Displays settings and check 'Prevent automatic sleeping when the display is off" and see if that works for your situation.

Sep 20, 2023 3:53 PM in response to KJH1986

FIXED (for me): I have been struggling with my external hard drive “disk not ejected properly” message for years. It randomly and often disconnects my external hard drive, usually during sleep. I have tried everything, including new drives & new enclosures. The other day, I decided to disconnect an old USB 3 hub I have had plugged into a USB port for years. It worked! No more disconnecting of my external drive! I hope this works for some of you!

Jan 9, 2023 11:10 AM in response to KJH1986

I may have found a solution.. time will tell.


I'm running a 14" MBP M1 Pro on Ventura 13.1, connected to a Bridge ProDock, connected to a Studio Display and an internal hard drive. I too am having the "disk not ejected properly" messages after waking from sleep. I thought it may initially be due to my Bridge ProDock, but I don't think that's the case—especially after finding this thread.


I went into System Preferences > Displays > Advanced and found this toggle option. I suspect this may address the issue, but I only just found it: Prevent automatic sleeping on power adapter when the display is off.



Jan 30, 2023 11:58 AM in response to Barney-15E

Preventing sleep in this way has solved the problem for me.


I use my MBP in clamshell mode in a Brydge vertical dock with my HDD connected to that, and an external display & peripherals.


  • I have Settings > Battery > Low Power Mode set to "Never"
  • I have Settings > Displays > Advanced > Prevent automatic sleeping on power adapter when the display is off set to "on"
  • In have Settings > Desktop & Dock > Hot Corners > bottom-right set to Put display to sleep


When I want to turn off the display, I basically mouse into that bottom right corner. My settings prevent sleep, which seems to prevent my drives from being automatically disconnected. It still 'locks' the display to wake up the screen, and it still allows Time Machine to run its backups, which I like. I'm unsure whether there's any downside to not allowing Sleep.

Mar 28, 2023 4:56 PM in response to guguii

I've now been totally free of spurious disk ejects for 35 days, that's at least 400+ sleep/wake-up cycles. Any lingering doubt I had re Apple's latent race condition defect associated with its USB 3.0 implementation is history. They broke it and now won't fix it and are too mercenary to admit it. Blame it on the hub manufacturers and keep pushing the worthless SMC/NVRAM reset koolaid. I encourage any macOS user with an external monitor with a built-in USB hub to try attaching any external drive enclosures to it rather than ANY of the ubiquitous multi-port hubs on the market. They probably all use the same chip-set.

Feb 14, 2024 4:55 PM in response to KJH1986

FWIW I have been stuggling with this for a few months now since buying a Seagate 12TB desktop drive.

I've actually upgraded to Sonoma but have the same issue.


I can shed a little light on this though - it appears that the issue is related to the firmware on the external drive.

I have 2xLacie 8TB Porsche design drives and the 16TB Seagate. The issue is only ever with the Seagate, the Lacie are always mounted without any issues. I'm using an M1 MacBook Pro and have the drives running from the built in hub on my Studio Display. Moving the Seagate to a free port directly on the Mac makes no difference. The Mac is pretty well always run in clamshell mode.


The Seagate is not consistent. It will sometimes disconnect overnight while other times it's fine. I even tried mounting it to a separate machine - a MacBook Air M1 - and had the same issue. It's annoying because the Seagate is my Time Machine drive. Luckily I also have TM set to backup to my NAS, so I have alternating backups.


I suspect that it's something to do with the way some controllers handle sleep mode. Seagate drives are the only ones that have had this issue for me (I have a portable Seagate that did the same).

Jan 10, 2023 12:10 AM in response to KJH1986

Hi just throwing my hat in as well. Having the issue since months on my MBP M1.

Did anyone find an entry in a log file that documents the moment when a drive is being ejected?

I might, but not sure, so if some of you could cross check?

For the time when the drives have been ejected, there is an entry in the wifi.log file (-> see below)


The issue applies to external drives, no matter what connection type (USB or TB), with or without external power supply for the drive, connection over a dock (OWC) or directly, or daisy chained. Sometimes drives will not be mounted back. In more than one instance even my internal Data volume has been ejected.

In one case, an external disk has been ejected several time while doing a search in spotlight for a file.


Apple so far has been going though the standard routine, including deep diagnostics (nothing found) but replacing the IO Ports (USB-C), nothing changed, even under Ventura...

So far the problem only happens to be on my MBP M1, not on my other, older Macs.


I do get the issue on an erratic basis. Some days are just fine, and some... oh well... So far I could not figure out if there is something different between the turbulent days and the days when is just runs smoothly. After trying most or all of the common suggestions - looking at the wifi.log file, I might turn off WLAN on my MBP for a while and see if it happens again or not.

Jan 30, 2023 11:14 AM in response to KJH1986

I'm not familiar with your hardware or your version of macOS, but I've had this problem for donkeys' years on my Pro, now running High Sierra 10.13.6. (Why such an old Pro and an old OS? Mine is the last Pro you could modify, before Apple began soldering everything in place.). I've tried all those stupid solutions you mentioned including removing the battery from the machine between troubleshooting iterations. However, just recently something occurred to me that I'm now investigating. What I have been in the habit of doing to wake the machine up is tapping on the track pad until I get a response. Sometimes this tapping, or rubbing, gets very vigorous when the machine fails to immediately awake, and when it does I often but not always get the awful, dreaded messages that my external drives, including my RAID drives have been incorrectly ejected. I've only had one catastrophic failure of an SSD in an external enclosure I use as a secondary backup device, but it and the enclosure were under warranty (the great folks at OWC,) so the drive was replaced, no questions asked. Now I am experimenting with different ways to wake the machine up, and I am avoiding the track pad completely. My theory: some gesture on the track pad is signaling the OS to eject the drives. I've never understood the track pad's gesture interface well enough to use it effectively, but that does not mean I am not inadvertantly using it in a counter intuitive way, and causing the drives to eject. So far the spacebar seems to always work and I have not had any of my disks eject since embracing this idea. Go figure... Your mileage may vary, but at least this sort of experimentation is low-key and unobtrusive.

Jan 31, 2023 12:19 PM in response to KJH1986

I'm curious: did you buy a Magic Track-pad with your Studio? I've written several posts to your thread re my experience with waking my MBP by touching and swiping its track-pad. I am now convinced that my erratic and unfocused banging away on the track-pad is what was causing my external drives to be ejected. I'm not a track-pad gestures expert {not IMHO one of Apple's better implementations, almost as stupid as thumb-typing) so I rely on a mouse, but that pad is so conveniently located that I had been, until a week ago, using it to wake up a sleeping Mac (not a sleeping bee, but close :-) .). I now use the space-bar, one press and like magic, macOS awakes and all my seven drives are still mounted. I have tried all the many technical solutions advanced by Apple or the Apple community, and none, and I mean absolutely none worked. Also, a very long telephone session with Apple support in which one of their minions walked me through exactly the same steps and procedures I performed by myself. I can read and follow written instructions as well as the next CS type with an MS, so I learned absolutely nothing by letting that dude lead me through the "SMC reset, etc" evolutions. And since none of those special sleep settings ever made any difference, I ignore them and set computer sleep and display sleep to 15 mins, and boxes checked to put disks and network to sleep, which I think are the defaults for 10.13.6. Interestingly, I use Carbon Copy Cloner for backup, and of course, it has to wake the machine at 2, 3 and 4 A.M. to perform all of my nightly backups, and it has never ejected a drive in error. Clearly, the CCC code knows how to wake the OS and unmount and mount drives without breaking anything. Does Apple, really, and is their track-pad code really bug free?


Please tell all of us who are very interested in this issue exactly how you wake your machine? What keys or input devices do you press or activate? Curious minds would like to know.

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.