You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

External harddrive won't shut down in Mavericks

Hi all,


I have an external hard drive from which I boot OS X Mavericks on my iMac late 2007. In all previous OS X versions, the harddrive would shut down whenever I put my iMac to sleep. Now with Mavericks it won't anymore. It will constantly spin while the computer is sleeping. I have to completely shut down to make the harddrive switch off. Is anybody else expierincing this kind of problem, and does anyone know how to solve this?


Cheers

Oli

iMac Core2Extreme 2.8GHz 24, Mac OS X (10.7.2)

Posted on Oct 26, 2013 3:12 AM

Reply
235 replies

Mar 10, 2014 3:27 PM in response to rodnnn

Everything was all working fine for me with my three Firewire 800 drives daisy chained to my iMac. They'd all spin down and sleep when I put my iMac to sleep, in 10.9.0, 10.9.1, and 10.9.2.


But the other day the drive in the middle of the chain went belly up so I replaced it - and now none of the three drives spin down. The new drive is a LaCie (same as the one it replaced actually).


I rebooted into Snow Leopard and all three drives spin down normally there. So it's definitely a Mavericks problem. I've filed a bug report. All of you with this problem should too if you haven't already, and be sure to include a copy of the FireWire info from your System Information app.

Mar 12, 2014 1:31 PM in response to OzziesMAC

The bad news: I don't think this is going to be fixed. I can't give any more details because I'm under NDA. Sorry.


The good news: I found a workaround that automatically ejects (and spins down!) the external drives before sleeping, and automatically remounts them when waking.


The bad news: You need to be somewhat comfortable in Terminal to set it up.


You need to install and run the Sleepwatcher daemon which can trigger events on sleep/wake. Visit this page and follow the instructions up to the point where it says


"At this point, you’ve successfully installed SleepWatcher. And if you are planning to use method 3, WAIT! There’s one more thing to do before moving on."

AND THEN STOP becuase the rest of their instructions will cause your eternal drives to unmount instead of eject (which will cause them to keep spinning instead of spinning down).


Instead, you need to follow these instructions.


Open Terminal and type:


diskutil list


Each disk will have a unique identifier that will look like this:

disk1

disk2

disk3

etc.


In addition, each disk's volume will also have its own unique identifier, like this

disk1s1

disk1s2

disk2s1

disk2s3

disk2s4

disk3s1


etc.


Now you need to open TextEdit. Ensure the TextEdit document is set to plain text and not to a rich text (if a Make Plain Text item appears in the Format menu, select it.)


You need to figure out the identifier for each of the disks and make a text file that looks like this:


#!/bin/sh

diskutil eject disk1

diskutil eject disk2

diskutil eject disk3


That's what mine looks like. The above commands eject each disk and make it spin down. These commands will be run when you sleep your Mac. Save this file to the Desktop for now with the filename "sleep.txt".


Then you need to find out the identifier for each volume and make a text file that looks like this:


#!/bin/sh

sleep 5

diskutil mount disk1s2

diskutil mount disk2s2

diskutil mount disk2s4

diskutil mount disk3s2

diskutil mount disk3s3


That's what mine looks like. Each identifier corresponds to a different volume on my external hard drives. Each command above will reattach the volume. These commands will run when you wake your Mac up. Save this file to the Desktop for now with the filename "wakeup.txt".


You now need to set the proper permissions on the above files and move them into the right places. This also requires Terminal. Copy and paste the following commands into Terminal:


cd ~/Desktop

chmod 755 sleep.txt

chmod 755 wakeup.txt

mv sleep.txt ~/.sleep

mv wakeup.txt ~/.wakeup

cd ~

sudo chown root .sleep (you will have to enter your password and press return when prompted)

sudo chown root .wakeup


After this your external drives should eject and spin down when sleeping, and spin back up and mount when waking.

Mar 12, 2014 4:12 PM in response to Király

Király wrote:


The bad news: I don't think this is going to be fixed. I can't give any more details because I'm under NDA. Sorry.


The good news: I found a workaround that automatically ejects (and spins down!) the external drives before sleeping, and automatically remounts them when waking.


The bad news: You need to be somewhat comfortable in Terminal to set it up.............

Well. That's interesting, both the bad and the good news. The bad news says a lot about Apple that many have suspected for a long time, in view of the 2 1/2 year magic mouse problem, and now the sleep problem, which Apple have totally ignored.


One technical point: I have set my System Preferences > Energy Saving to "Put my discs to sleep when possible". Will this still happen after installing your workaround?


Also, I have a USB drive which sleeps OK. Do I just ignore that drive in your two routines?


Message was edited by: SteveKir added last line.

Mar 12, 2014 8:24 PM in response to SteveKir

I don't know why the problem is a big secret since Apple won't fix it anyway.

I do have a Seagate firewire drive that spins down when not being used and sleeps when my iMac does. My LaCie is the problem. I am running the LaCie on the USB port and it behaves much better. It does spin down when idle, but does not sleep with the computer. I just unmount it and turn it off when not needed.

Apple should tell us if all drives, as far as the know, are affected… even though I think my Seagate isn't.

When you say the problem will not be fixed, do you mean for 10.9.2 or every OS from now on?

And I am totally intimidated by Terminal.

Thanks for your expertise.

Mar 13, 2014 12:31 AM in response to Nivrams2

Thanks for your time, Kiraly, but none of that addresses the original issue as far as I'm concerned, anyway. The external drive used to spin down automatically after a period of inactivity. I have the Mac Pro Desktop set so it doesn’t sleep, since it’s used as the core for the media server, but I’d like the actual external disk storing all the films to spin down if not accessed for a while in exactly the same way as the internal ones do. I can’t see how what you’ve posted will achieve that, unless I've missed something, which is entirely possible :-). But thanks again for the time.

Mar 13, 2014 1:11 PM in response to Király

Király wrote:


The original poster in this thread asked how to make the hard drive spin down when he puts his Mac to sleep, and that's what most of the discussions has been about. Having the hard drive spin down after a period of inactivity is a separate issue.

Not entirely. Several posters have discussed the issue of Mavericks not allowing external disks to spin down when not being accessed for a while. It’s part of the same issue: Mavericks has created a flaw whereby what used to work beautifully no longer works.

External harddrive won't shut down in Mavericks

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