Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TimC00ked

macrumors newbie
Original poster
Aug 11, 2025
7
0
I have the Mac mini m4 connected via TB4 to a OWC express 1m2 enclosure containing a samsung 990 pro ssd and I'm experiencing numerous unsafe shutdowns when the Mac goes to sleep. Around 5-10 a day. The drive doesn't eject/unmount though, so I wouldn't have known there was an issue if it wasn't for the drive's SMART stats. Is my enclosure defective and should I be concerned about these numbers? I'm trying to figure out what I should do. Would it make sense to prevent the Mac from sleeping and is there a way for the Mac to sleep while preventing the ssd from sleeping? I tried using Jettison to eject the drive when the Mac sleeps but I always have apps accessing the drive which prevents ejects. I also tried Amphetamine's drive Alive feature but that only works when the Mac is not sleeping so it's not useful for me.
 
I have the Mac mini m4 connected via TB4 to a OWC express 1m2 enclosure containing a samsung 990 pro ssd and I'm experiencing numerous unsafe shutdowns when the Mac goes to sleep.
Are you using the original 12-inch USB cable that shipped with the enclosure?
 
The usb/thunderbolt power software stack in macos is somewhat finicky and unreliable. Your best bet would be to keep the mini from going to sleep. Energy consumption difference is minimal. The alternative would be a shutdown of the mini, which would be more sustainable anyways of you let your mac sleep during nighttime.

There is no real solution to this at the moment, as Apple needs to improve their drivers.
 
  • Like
Reactions: !!!
Same enclosure, same problem, in a Studio. I use Jettison, have for years with MacBooks and externals where I’ve frequently had problems. Excellent tool.
 
Last edited:
The usb/thunderbolt power software stack in macos is somewhat finicky and unreliable. Your best bet would be to keep the mini from going to sleep. Energy consumption difference is minimal. The alternative would be a shutdown of the mini, which would be more sustainable anyways of you let your mac sleep during nighttime.

There is no real solution to this at the moment, as Apple needs to improve their drivers.

My concern with preventing sleep is that the fan will always be running at 1000 rpm so I don't know if that's good for the Mac in the long term.

Seems like this is a problem that has plagued apple devices for a while so I don't have high hopes of a fix anything soon. :(

Same enclosure, same problem, in a Studio. I use Jettison, have for years with MacBooks and externals where I’ve frequently had problems. Excellent tool.
Do you have app data on the external drive? I have, such as from the Photos app, that prevent me from easily ejecting the drive since there's always a process accessing the drive.
 
My concern with preventing sleep is that the fan will always be running at 1000 rpm so I don't know if that's good for the Mac in the long term.
It's fine, I've had Mac minis running for nearly a decade on 24/7 with the fan running. I stopped shutting them off when I started using them as a media server, it's no big deal.
Seems like this is a problem that has plagued apple devices for a while so I don't have high hopes of a fix anything soon. :(
Indeed, I remember back in 10.12 or 10.13 having issues where closing my MacBook lid for even a second would improperly eject the disk, which ended up corrupting the document that I had open. Maybe Apple is trying to do this for energy efficiency? It doesn't really make sense why they wouldn't at least force eject it first. Certainly doesn't make sense at all on a desktop.
Do you have app data on the external drive? I have, such as from the Photos app, that prevent me from easily ejecting the drive since there's always a process accessing the drive.
Yup, I've seen Jettison and to be honest I don't see the point in it. If I have the drive connect, I have files opened from it, forcibly ejecting it any way will at the very least break the open file handle, meaning I will have to re-open the documents anyways. At worst it will corrupt a document you're editing, and in the middle I see many apps don't take it very well and freeze up when the drive disappears.
 
It's fine, I've had Mac minis running for nearly a decade on 24/7 with the fan running. I stopped shutting them off when I started using them as a media server, it's no big deal.

Indeed, I remember back in 10.12 or 10.13 having issues where closing my MacBook lid for even a second would improperly eject the disk, which ended up corrupting the document that I had open. Maybe Apple is trying to do this for energy efficiency? It doesn't really make sense why they wouldn't at least force eject it first. Certainly doesn't make sense at all on a desktop.

Yup, I've seen Jettison and to be honest I don't see the point in it. If I have the drive connect, I have files opened from it, forcibly ejecting it any way will at the very least break the open file handle, meaning I will have to re-open the documents anyways. At worst it will corrupt a document you're editing, and in the middle I see many apps don't take it very well and freeze up when the drive disappears.

That’s good to hear that your Mac has been running like this for this long without issues. Preventing sleep might even be better for the external drive since it leads to less power cycles although the average temp of the driver will be higher. Mine tends to hover around 45C.

I could understand this if your MacBook was running on battery power but like you said for a desktop it doesn’t make sense. It seems like a simple thing to fix too.

I definitely wouldn’t want to force eject. I’m actually not sure why there’s so many processes accessing my drive since the data isn’t changing that much on it. I get around 5 power cycles an hour due to them.
 
Samsung-990-Pro_OWC-1M2_081220251545.pngSamsung-990-Pro_Unsafe-Shutdowns_OWC-1M2_081220251545.png
From what I could uncover, the only real possibility of data corruption is, by the SSD controller not receiving a shutdown command, the buffer data may not have been dealt with, including but not limited to purged.

I tried to find official/expert sources but only came across forum posts.

If it makes you feel any better, the problem(?) is not specific to macOS. It actually doesn’t appear limited to external drives. One example:


P.S. The WD_BLACK SN850X I have in another 1M2 has over 25k unsafe shutdowns. One of the SSDs I’m using as a Time Machine drive has nearly 8,500 unsafe shutdowns recorded. I haven’t seen any data corruption.
 
  • Like
Reactions: TimC00ked
View attachment 2536928View attachment 2536929
From what I could uncover, the only real possibility of data corruption is, by the SSD controller not receiving a shutdown command, the buffer data may not have been dealt with, including but not limited to purged.

I tried to find official/expert sources but only came across forum posts.

If it makes you feel any better, the problem(?) is not specific to macOS. It actually doesn’t appear limited to external drives. One example:


P.S. The WD_BLACK SN850X I have in another 1M2 has over 25k unsafe shutdowns. One of the SSDs I’m using as a Time Machine drive has nearly 8,500 unsafe shutdowns recorded. I haven’t seen any data corruption.
wow I got rookie numbers compared to you. How long have you had the drive for?

Maybe the risk for data corruption is low (none?) because this will only happen if the Mac mini is sleeping. I don't know if the Mac mini reduces the power right away to the ports or if that's only done after sleeping for a prolonged amount of time. In either case, if the Mac is sleeping, the external drive isn't being written to so there won't be any buffer data, or the ssd's read/write speeds are fast enough that it has enough time to write the buffer data between the time it takes the Mac mini to sleep and unsafely shutdown the drive.
 
Quite a thread we got going.

On my external (WD SN850X) are my Lightroom image files, my Photos library, a couple of Music libraries a symlinked folder for MobileSync/Backup (5 devices), some relatively dormant folders and a partition for a clone of the Studio. About 3 tb, out of 4, in use, pretty much constant data access, more than the internal.

I’ve been using Jettison since Mountain Lion primarily on MacBooks. Never had an issue. It dosen't eject a drive if it’s in use. At times I see a delay in sleep so I assume it has sufficient intelligence to subsequently invoke sleep. When I wake the Studio the drives are back before my ASD, which as any ASD owner can attest, is very fast. On the website is an FAQ dealing with oddball situations and how to deal with them.
 
Quite a thread we got going.

On my external (WD SN850X) are my Lightroom image files, my Photos library, a couple of Music libraries a symlinked folder for MobileSync/Backup (5 devices), some relatively dormant folders and a partition for a clone of the Studio. About 3 tb, out of 4, in use, pretty much constant data access, more than the internal.

I’ve been using Jettison since Mountain Lion primarily on MacBooks. Never had an issue. It dosen't eject a drive if it’s in use. At times I see a delay in sleep so I assume it has sufficient intelligence to subsequently invoke sleep. When I wake the Studio the drives are back before my ASD, which as any ASD owner can attest, is very fast. On the website is an FAQ dealing with oddball situations and how to deal with them.
I just tested with Jettison and my Photos library is preventing the drive from ejecting. The process"photolibraryd" is always running and sometimes "photoanalysisd" and "mediaanalysisd" also are. These are background processes that run even when the Photos app isn't open.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.