Prevent External Drives from Sleeping

 I have a Retina 4K, 21.5-inch 2019 iMac with 3 GHz 6-core Intel Core i-5 just updated to macOS Sonoma 14.1 with 2x USB external HDDs (Seagate ST4000VN 008) formated as Mac OS Extended (Journaled) with GUID Partition Map.


They keep going to sleep - apart from it not being good to keep spinning up and spinning down mechanical HDDs, it's really annoying. There's a very noticeable delay when I want to access the drives.


And yes, I have "Put hard disks to sleep when possible" turned off in System Settings.


This seems to be a long standing issue with the macOS with no reliable solution?


I have tried a couple of 3rd party solutions (Amphetamine and Jon Stovell extensions) - not found one so far that is satisfactory.


The only "solution" which I've found is to format the drives as APFS - this stops them sleeping (and generates snapshots) but seems to be generally regarded as not a good thing for HDDs …


I guess it's to do with how the manufacturers (Seagate in this case) manage the drives which it seems is not controllable from the macOS.


Any good reason not to but the drives back to APFS?

iMac (2017 – 2020)

Posted on Nov 9, 2023 12:49 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 12, 2023 8:07 AM

Maybe not a good solution, but I can add my successful experience, starting with some older LaCie enclosures with Seagate Disks. There were two problems, possibly related to each other:

1) Disks started to sleep (irrespective of poset parameters and system preferences) and I had to wait quite some time to access the discs afterwards. This seems to be your problem.

2) Disks were unexpectedly ejected from time to time (was described on LaCie website, too).

Now with a new Mac mini 2023 I was so frustrated that I finally bought two new USB-C enclosures (which made the access to the discs faster!) and formatted the discs with APFS. And both problems disappeared!

I did not realize any performance problems with APFS on these old discs (Seagate Barracuda 7200.14 AF with SATA 3.1, 6 Gb/s). And I think the fact that Time Machine decided to use APFS on an erased disc tells us that APFS is OK for HDD today.

I must admit that sometimes I thought that one of the discs still slept, but there was no delay to access the contents. No problems left at a reasonable cost and improved performance.


21 replies
Question marked as Top-ranking reply

Nov 12, 2023 8:07 AM in response to larry666

Maybe not a good solution, but I can add my successful experience, starting with some older LaCie enclosures with Seagate Disks. There were two problems, possibly related to each other:

1) Disks started to sleep (irrespective of poset parameters and system preferences) and I had to wait quite some time to access the discs afterwards. This seems to be your problem.

2) Disks were unexpectedly ejected from time to time (was described on LaCie website, too).

Now with a new Mac mini 2023 I was so frustrated that I finally bought two new USB-C enclosures (which made the access to the discs faster!) and formatted the discs with APFS. And both problems disappeared!

I did not realize any performance problems with APFS on these old discs (Seagate Barracuda 7200.14 AF with SATA 3.1, 6 Gb/s). And I think the fact that Time Machine decided to use APFS on an erased disc tells us that APFS is OK for HDD today.

I must admit that sometimes I thought that one of the discs still slept, but there was no delay to access the contents. No problems left at a reasonable cost and improved performance.


Jan 5, 2024 12:02 AM in response to Affilmity

In the case of the Ugreen enclosures I was using, all this is irrelevant. The sleep behaviour of the drives is set in the firmware of the Ugreen enclosure. Ugreen do, if you chase them hard enough, provide a MS Windows tool to change the firmware settings but they don't have a macOS tool. In fact, the support people I was talking with didn't even seem aware of the macOS.


Having got some rather more expensive, better quality StarTech enclosures, the problem no longer exists.

Jan 1, 2024 12:49 PM in response to larry666

Terminal:


sudo pmset -a disksleep 0


Worked for me. The -a means ALL so covers everything. 0 means zero minutes so NEVER. I actually changed the 0 to 30 (minutes) for me as I do want drives to take a break if not being used.


My attached APFS drives were fine. The issue was with my 2 Sabrent 5 HDD drive enclosures connected via Thunderbolt/USB4. At times I have all ten drives mounted - and it was ridiculous with the constant barrage of spinning down, spinning up over and over.


Whoever posted the Terminal command - many thanks!!


Mac Studio 2023 M2 Max Sonoma 14.2.1


Nov 9, 2023 4:32 AM in response to larry666

larry666 wrote:

Why would this work when system settings doesn't?

System Setting only loads once the Operating System is loaded.


pmset runs even before the Operating System loads




pmset -g shows disksleep is already at 0 …

I rarely use Terminal but, however, sudo pmset -a disksleep 0, which I think is correct to stop all disks from sleeping, seems to have worked …

Good and welcome


Am pleased the suggestion may have solved this issue or at least was helpful.

Nov 9, 2023 6:44 AM in response to larry666

larry666 wrote:

But the external HDDs are going to sleep after System Settings has loaded …?

Seems I spoke too soon - HDDs went to sleep again.

I guess this is to do with the way Seagate is managing the drives?


Unless I and reading the tea leaves wrong - who or what is Managing the Seagate drive ?


macOS, for a very long time does Not Require Seagate ( Third Party Drive Management Software ) or any Third Party Software to Manage External Drive





Back to me last comment, any reason not to put the drives back to APFS when this doesn't happen?


Dec 11, 2023 3:42 AM in response to LucilleX

I finally managed to contact support at Ugreen, the enclosure manufacturers. They had no understanding of macOS which wasn't helpful …


After quite a lot of prodding by me, they sent me a link to download a tool to change the enclosure firmware settings, to turn off the automatic sleep function. It was a Windows tool …🙄🙄😡


That will teach me to buy cheap Chinese manufactured goods.

Nov 9, 2023 7:59 AM in response to Owl-53

The Seagate drives are in Ugreen enclosures connected directly to the iMac into the USB 3.1 ports, not via a hub. I was just wondering if there's any firmware in the drives or enclosures that are causing issues?


They show up in Disk Utility OK and First Aid shows no problems.


As far as I'm concerned, the drives are managed by the macOS …


I run Carbon Copy Cloner for backup to a NAS - that accesses the drives every hour.

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.

Prevent External Drives from Sleeping

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