External hard drive ejects on sleep

I recently upgraded to Mountain Lion and noticed every time I leave my iMac and it goes to sleep, the external hard drives eject. I get the pop-up stating they were improperly ejected. Anyone know how to stop this? Wasn't having any problems in Lion.

iMac, OS X Mountain Lion

Posted on Aug 3, 2012 6:21 PM

Reply
450 replies

Feb 18, 2014 4:27 PM in response to longtimeuser

I found this thread only today when I plugged in a Seagate 3TB external USB3 drive, got it going with Time Machine, and was then amazed to see that when the machine slept and woke, the drive was disconnected. It would not remount automatically, even though powered on, and in place of the proper icons were those messages about the drives (two partitions) not being properly disconnected.


I skipped ahead about two years to the last page of the thread, found the reference to Jettison, paid the monumental price of US$4.95, and installed it. It takes care of the disconnects, and it keeps Time Machine running properly. It does not, however, seem to prevent those nasty "disk not ejected properly" messages when the machine crashes.


Now it's my belief that all, repeat all, Jettison is doing is a small set of tasks that the OS itself should be performing itself -- checking to see if there's data in cache waiting to be written to a removable device, making sure that it's written, dismounting the device, and then issuing the sleep command. Windows has done this for decades, and it borders on incredible that such an apparent bug should remain in Apple's latest iteration of OS X. If Apple refuses even to acknowledge the problem after two years spanning 3 upgrades of the OS, then that is reprehensible.

Feb 19, 2014 5:18 AM in response to milleron

I have also been using Jettison and it does seem to be a good workaround for a problem that Apple should have fixed long ago. I set Jettison to dismount discs before sleep and use the Jettison drop down to manually sleep, no more auto sleep. I may be too cautious about auto sleep, though. Sleep after SuperDuper nightly backups are happening correctly.

Feb 23, 2014 7:56 AM in response to iamapple

I'm experiencing the dirty unmounting with a Vantec HX4R connected via USB3 to a 2013 Mac Pro. Preventing the Mac Pro from sleeping appears to work around the issue, but is not the preferred solution. I have written to Vantec support asking if they can do anything on their end to support Macs with the super low power sleep mode that triggers this problem. Given the variety of manufacturers whose enclosures are affected, it does seem that Apple making changes on the OS side would be a more efficient way to solve the problem than every third-party manufacturer issuing firmware updates — assuming support can be added via firmware.

Feb 24, 2014 9:21 PM in response to Daniel J. Wilson

I just got a new IMAC and experienced the same issue with a RAID 10 array with 4 drives spontaneously disconnecting in the middle of a data transfer with the message "you should eject disk properly, etc. etc." message.

As many others I tried all the obvious solutions. Different cables, different drives, etc. Then I read something about radio wave interference from wireless keyboards. Well, I don't have wireless keyboards or mice (don't like them) but still, it stuck in the back of my mind.

I did find that a USB 2.0 cable with noise suppression dongles at each end worked just fine, if a bit slowly. Anyway, I found an old set of ferrite couplings that were made for video cables back in the day and placed one set at each end of the USB 3 cable. I then moved my RAID array as far from the computer as possible and plugged it all back in. The problem has not reoccurred even with the transfer of very large folders of files from a networked PC RAID.

Just a thought but it seems to have worked for me although the fact that this sort of thing is necessary does not speak well for Apple.

Feb 25, 2014 8:00 AM in response to iamapple

I figured out my problem this morning. Why the ≈$400 spent on Apple support didn't get them to provide me with an answer is stilll beyond me.


Somewhere between the harddrive randomly disconnecting (at sleep) and Jettison taking liberties with drives, my external harddrive had it's visibility changed.


So running from the terminal the following command resolved my issue:


chflags -R nohidden /Path/to/HardDrive


I hope this helps someone else. If your drives aren't showing up in Finder, but you can access them using Go»Go To Folder, then you might want to try the command above to change your flags on that drive.

Mar 2, 2014 2:19 PM in response to MacGallant

Re: MacGallent:

No it did not.

I have similar issue, but have a symptom not reported by any others.


I can eject the external drive from the finder and then manualy shut down from the Finder and then restart with no problems. this is as it should be.

I can eject the disc from Finder and then manually Sleep from the finder and then restart with the "improper ejection" note, this makes no sense; if the disc is ejected manually prior sleep, how is that differant from Shut Down ?


I have all the other problems related to Auto Sleep also, BUT the Ext Drv always remounts with no problems; maybe this is Apples fix.

Mar 2, 2014 2:50 PM in response to lasllc

Iaslic:


Does not sound like a fix. If you are getting the "improper ejection" after you have ejected the hard drive and manually put to sleep, then the OS is reading the manual ejection of the hard drive as having occurred or is misiinterpreting it or (and this shouldn't be possible, but I am beginning to find out that there are times when we need to give these speedy machines more time) it is possible that you are manually putting the main drive to "sleep" too quickly after ejecting the external hard drive.


We need Apple or an expert to tell us if this can be a problem.


Until we get confirmation that Apple has fixed the underlying problem(s), my suggestion is not to use either auto sleep or manual sleep. Mavericks seems to have altered the whole notion of (computer) sleep and Apple needs to clarify when the user should (if ever until a real fix) invoke it, given the ejection problem.


MacGallant:


Can't tell whether 10.9.2 is a fix since I have avoided sleep.

Mar 2, 2014 3:50 PM in response to iamapple

To update the basis of the discussion, has anybody running Mavericks had the "improper rejection" problem with an energy saver setting of "enable power nap"? If so, what are the details?


I am involved in another discussion where I am urging more information about the "energy saver" settings and how they relate to external hard drives. https://discussions.apple.com/thread/5812259.

Mar 8, 2014 6:50 PM in response to MacGallant

In reply to the following:


MacGallant Los Angeles, CA


Did the Mac OSX 10.9.2 update fix the problem with the external hard drive unmounting?


No, for me it brought it back. Just selecting "Put hard disks to sleep when possible" in the energy saver control panel had been an effective workaround for me until 10.9.2.

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.

External hard drive ejects on sleep

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