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

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 Best reply

Posted on Oct 31, 2022 9:08 PM

Currently I'm using Jettison so that my drives are safely ejected before sleep and storing my encryption keys for those drives in my keychain so that they can be automatically remounted when the computer wakes up. Not the most elegant solution but other than disabling sleep it's the only work around until this is fixed.


Given the potential for data corruption with a problem like this, it really is unacceptable that this has been an ongoing issue for so many users for as long as it has been. These are machines advertised as professional grade, for professional workflows. The idea that the OS itself may be responsible for corrupting a user's data or Time Machine backups seems like a pretty serious oversight. In the grand scheme of bugs and their respective levels of seriousness, something with this much potential for data loss persisting the way it has really feels like Apple fumbling the ball.

Similar questions

127 replies

May 25, 2023 1:56 PM in response to Barney-15E

Would you elaborate on where to add "pmset disksleep 0". It's odd that Ventura shows my external USB-C drive shows ejected, but Time Machine is showing no errors. Igt seems as if Ventura thinks the drive was ejected, but the SSD doesn't care...if that makes sense. I added amphetamine, but ti cannot access the Time Machine partition. It can access my media partition on the same drive so we will see if it helps.

Jun 10, 2023 9:43 PM in response to KJH1986

I also am somewhat distressed to see Apple allowing this annoying glitch of our equipment to persist, particularly when our Time Machine's external drive seems to have an ever decreasing lifetime even under more stable conditions.

Another annoyance introduced by my switch from Catalina, to improved security with Ventura, has been that in order to share screen now with Apple helpers the customary invites (to Accept and Agree) are gone, and replaced with a pop-up statement that Apple is happy to share your screen. O good! you think? Then the notification disappears and you wonder why ... so you click around a bit, then it appears and disappears again. What's this false offer? It turns out there's an invisible Option notice which will appear if you know how to request it - by hovering the mouse over some imaginary magic spot - and then finally you can click on the eventually visible Accept or Decline etc. Oh what a helpful skip that feels more like a glitchy delay. I'm very grateful for the effort to be even more helpful, but sorry to say I find the new detour confusing and the original track much simpler and more straight-forward.

Aug 11, 2023 5:49 PM in response to KJH1986

This option was moved to, of all places, the Display settings panel under 'Advanced' at the bottom where it . It makes absolutely no sense for it to be there, you would think that it would be with related settings under 'Energy Saver' which has one setting related to actual power savings and a couple sorta related. There is so little logic involved with the location of the individual settings I find myself googling every time I need to find one. I wish Apple would stop making users play "Whack-a-Mole" trying to find the randomly located settings. And I totally agree with the assessment that the new Settings app is a UI nightmare. Sad what things have come to.

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')! :)

Aug 31, 2023 6:40 AM in response to KJH1986

This just stopped happening when I went to catalina. Which to me, seems to prove there is something in OS that is different that those on the ventura/mojave sides we or at least machine I use does not know. I have not gone to ventura. Used to use an app I made to eject on sleep. Every time I try to use High sierra or mojave, the thing comes back. Tried to employ the app and, (Probably has to do with the sleep settings) the machine will wake up during the sleep several times and the app is not triggered in that case so theres a long list of "not ejected properly notifications"


Obviously, need to re-work that.


There's always the option of unplugging them untill needed but more convenient to be able to leave them

Aug 31, 2023 7:39 AM in response to SandyLenihan

Chiming in with the resolve on issue here. I am using a 3rd party usb3, machine older than usb3. If I change drives to go on the other usb ports the problem does not occur. Is it really a resolve? The issue only happens on pre- catalina with the usb hub "fl1100" I will not use ventura for machine as the processor lacks what is required for it. So wont know if ventura re-introduces that.

Aug 31, 2023 8:12 AM in response to KJH1986

Found this thread. Figured I'd chime in, as well. Three weeks ago, I upgraded to a 2023 M2 Pro MacBook Pro with Ventura 13.5.1 (from a 2010 i5 with High Sierra). In that time, I have had only two instances when I have woken my MacBook in the morning to find the dreaded “disk not ejected properly” notification on my screen. Obviously, this is still a problem that Apple REALLY needs to fix. When I'm tethered to my desk, I always have an external drive plugged in for my Time Machine backups (an OWC Mercury Elite Pro HDD directly connected to my Mac (no hubs or adapters), if that matters). I'm thinking of playing around with some of the other apps mentioned in this thread (Jettison, Ejectify) to see if they might be good fixes for the issue.

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

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!

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.



Oct 3, 2023 12:16 PM in response to johnnyjackhammer

Another Terminal command you might check out


smbutil smbstat /path/to/mounted/share


after editing sysctl to...

sudo sysctl net.smb.fs.kern_deadtimer=0
net.smb.fs.kern_deadtimer: 60 -> 0

sudo sysctl net.smb.fs.kern_hard_deadtimer=0
net.smb.fs.kern_hard_deadtimer: 600 -> 0

sudo sysctl net.smb.fs.kern_soft_deadtimer=0
net.smb.fs.kern_soft_deadtimer: 30 -> 0


the command...

smbutil smbstat /Volumes/Godzilla


shows this...

Object Type: VDIR 
   flags: 0x0 (none)
   refcnt: 1 
   fid: 0x0-0x0 
   enum flags: 0x0 (none)
   enum count: 0 
   enum timer: 53270 
current time: 54154 
meta data timer: 54127 
finder info timer: 54127 
ACL timer: 0 

lease flags: 0x0 (none)
lease key hi: 0x1942a94f3e4e421e 
lease key low: 0x1c7799f5c08f3898 
lease requested state: 0x3 (read/handle)
lease current state: 0x0 (none) 
lease parent key hi: 0x0 
lease parent key low: 0x0 
lease epoch: 0 
lease def close reuse count: 0 

Nov 13, 2023 9:29 AM in response to KJH1986

Yeah, I have the "prevent automatic sleeping on power adapter when the display is off" setting enabled, still getting the warning about drive not being ejected properly. My Time Machine disk, ofc. Ventura 13.5.2.


This has been happening for a while. I can't tell if it's a hollow warning or if there might be some data corruption, but it makes me question the integrity of Time Machine.




Nov 13, 2023 11:38 AM in response to andrus

andrus wrote:

Yeah, I have the "prevent automatic sleeping on power adapter when the display is off" setting enabled, still getting the warning about drive not being ejected properly. My Time Machine disk, ofc. Ventura 13.5.2.

This has been happening for a while. I can't tell if it's a hollow warning or if there might be some data corruption, but it makes me question the integrity of Time Machine.



All drives are mounted with the write ahead cache enabled, so it’s possible that the drive could still be writing data after the Mac finishes sending it, but in the case of the Mac going to sleep and the drive being ejected during the cached write, that is probably not a possibility

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 ID.