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

Tech198

Cancelled
Original poster
Mar 21, 2011
15,915
2,152
I'm trying to prevent external hard drive from going to sleep under Mojave, after some delay has passed of non read/write..



I've un-checkd energy saver settings :"Put hard drives to sleep when possible", and "Prevent computer from sleeping" but the external WD drive still sleeps after non-activity...

eg. I'm comparing from NAS,, and since i'm doing this over Wi-Fi,, (currently no network cable), its slow, and there is enough time to pass for external drive to sleep..

Does this mean its hardware-depended on WD as why it keeps sleeping if the OS won't do it? And the next question then would be, how would i do this on a Mac ? As usually these kind of tools would favor Windows. but snce i'm using Mac software to scan files/folders. its an issue.
 
Have you tried another drive? NAS isn't THAT slow. We're usually talking milliseconds between packets, not minutes.
 
Yes, most likely the drive and nothing doing with Mac settings. Maybe no re: some program/setting to change. Per WD, only certain drives have a setting that can be flipped via a program of theirs:

https://support.wdc.com/knowledgebase/answer.aspx?ID=1376

If feeling adventurous, can put together a Launch Agent/Daemon to do a "touch" command on a zero-byte file every five minutes or so to keep the drive spinning. Plenty of existing examples in the /System /Library folders to use as a template.

https://developer.apple.com/library...stemStartup/Chapters/CreatingLaunchdJobs.html
https://ss64.com/osx/touch.html
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.