Disk not ejected properly

Hi I'm having this issue since I upgraded to Mavericks where almost every time I put my computers to sleep I get the "Disk not ejected propoerly" message and every disk but the system one is not mounted and cannot be found by Disk Utility.


I have a Mac Mini late 2009 and a Macbook Pro 15 mid 2009 and I'm having this issue in both machines. Never had any issues before in any of my machines, not in Leopard, Snow Leopard or Lion.


On my Mini I have two external USB drives and on my MBP I have a SSD, where the system is installed, and a HD (I replaced my optical drive with a bay to install the extra disk).


I researched the issue and found a couple of threads where people sugested to buy a 3rd party app that would unmount the disks at sleep and remount them at wake, but I think this shouldn't be a issue, since it never happened with any version of OSX I had used before.


Is anybody else having this issue as well? Is there any word from Apple on this subject? Can I hope for a fix?


Thanks

MacBook Pro, OS X Mavericks (10.9)

Posted on Oct 28, 2013 9:55 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 1, 2017 5:18 AM

I ran into the same problem. In my case, the culprit was the type of surge suppressor I was using. This is the kind that turns off power to all the the outlets when the main outlet senses that the device plugged into it has powered off. When my iMac, plugged into the main outlet, went to sleep, this was sufficient to turn off power to all the other outlets, including those that my external drives were plugged into. After I plugged those drives into a second surge suppressor, they now remain powered on when the iMac is sleeping and I no longer get the "Disk not ejected properly" message. An added bonus is that the drives spin down during sleep, whether or not I tick the "Put hard disks to sleep when possible" checkbox in Energy Saver, and whether or not I select the "Automatic" setting on the drives' three-position on/off switch.

493 replies

Nov 17, 2014 3:54 PM in response to Linda Cameron

I've now tried all the options that don't involve Jettison. (I did use Jettison once a while back, but not worth the trouble.) Checking or unchecking all combinations and permutations of the boxes in Energy Saver preferences, putting the MacBook to sleep, not putting it to sleep, not letting it go to sleep with inactivity, etc. , results on no change in the DNEP notifications. I even get them while I'm working at the computer. I've removed the power supply internally in the MacBook, let it sit, but no results.


As they say in New York, fuggedaboutit, there is no logical workaround. It's up to Apple engineering to look at it and see exactly what is happening to trigger the disk disconnect. Surely, if we can send a man to the moon, or Apple can build an iPhone 6 that's almost as good as my new Blackberry Passport phablet (check it out, folks, before dismissing the idea), the computer scientists at Apple could come up with an answer to the DNEP problem. They just don't want to bother with it.

Nov 17, 2014 4:08 PM in response to KenV54

Curious why people don't like Jettison? I just installed it a few days ago (version 1.4.2) and it has worked flawlessly. It ejects my external HDDs before my iMac sleeps, and remounts them when it wakes up. I have a nightly backup scheduled where Energy Saver wakes the computer and SuperDuper runs automatically to make a bootable clone, and that has worked perfectly. Before, without Jettison installed, I would frequently awake to find "disk not ejected properly" errors.


Yes, Apple should fix this, but in the meantime Jettison is working well for me.

Nov 18, 2014 8:58 AM in response to wms44

I've tried a couple different USB 3.0 cables, with and without running it through a powered Amazon Basic USB 3.0 hub.


I just found another USB 3.0 cable from Other World Computing, which, by the way, I recommend highly for all third party Mac stuff, like internal SSD upgrades. I'll post here after a couple of days and let you know.


Much as I would like to blame Apple for this altogether, I still don't know if maybe the WD MyBook drive is somehow at fault.

Nov 20, 2014 1:27 PM in response to wms44

I tried the new cable from Other World Computing--the one they use for their USB 3.0 drives. It is short and fairly thick, and, I assume, suited for these drives.


I thought the problem had been solved, but today, two days later, I just got the DNEP message while working at the computer actively. I checked the Console messages, and at the same time the DNEP appeared, these messages showed up on the Console. Whether they help in terms of identifying the cause or are simply markers and reports of what happened, I don't know. And other than seeing a reference to the WDC driver, I have no idea what they mean.


11/20/14 3:04:08.149 PM prl_deskctl_agent[27396]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.1 instead of 10.10.1. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.

Call location:

11/20/14 3:04:08.153 PM prl_deskctl_agent[27396]: 0 CarbonCore 0x00007fff87e70dc3 ___Gestalt_SystemVersion_block_invoke + 113

11/20/14 3:04:08.153 PM prl_deskctl_agent[27396]: 1 libdispatch.dylib 0x00007fff88b11c13 _dispatch_client_callout + 8

11/20/14 3:04:08.153 PM prl_deskctl_agent[27396]: 2 libdispatch.dylib 0x00007fff88b11b26 dispatch_once_f + 117

11/20/14 3:04:08.153 PM prl_deskctl_agent[27396]: 3 CarbonCore 0x00007fff87e194da _Gestalt_SystemVersion + 987

11/20/14 3:04:08.153 PM prl_deskctl_agent[27396]: 4 CarbonCore 0x00007fff87e190c7 Gestalt + 144

11/20/14 3:04:08.153 PM prl_deskctl_agent[27396]: 5 prl_deskctl_agent 0x00000001096e493f CMAC_resume + 119183

11/20/14 3:04:08.153 PM prl_deskctl_agent[27396]: 6 prl_deskctl_agent 0x0000000109163709 start + 919369

11/20/14 3:04:08.221 PM com.apple.kextd[21]: ERROR: invalid signature for com.wdc.driver.USB-64HP, will not load

11/20/14 3:04:08.466 PM com.apple.kextd[21]: ERROR: invalid signature for com.wdc.driver.USBHP, will not load

11/20/14 3:04:09.116 PM com.apple.xpc.launchd[1]: (com.apple.mdworker.bundles[27398]) Could not find uid associated with service: 0: Undefined error: 0 507

11/20/14 3:04:09.117 PM com.apple.xpc.launchd[1]: (com.apple.mdworker.bundles) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

11/20/14 3:04:10.000 PM kernel[0]: jnl: disk2s2: replay_journal: from: 79159296 to: 79785984 (joffset 0x2baa000)

11/20/14 3:04:10.000 PM kernel[0]: jnl: disk2s2: journal replay done.


Now, one would think that Apple engineers could make something out of this. Maybe I should set up an AppleCare incident report. Since I no longer have AppleCare it will cost me $20 or so. If someone here who does have AppleCare active, and who has this problem with a WD External USB 3.0 drive, you might be able to submit this.

Nov 22, 2014 5:26 AM in response to iPhabio

New IMAC OS10.10/ 2 Seagate drives 1TB portable/2TB expansion same problem with both - DNEP when in sleep overnight.


30 minutes with adviser plugging in/out sleep on/off about to re format drives. Want to back up over night so might try Jettison.

Does not happen on Airbook running Mt Lion so cannot see why it is a drive issue.

System config solution not suitable for 10.10 as no preferences in that folder it seems.

Fail to understand why this still remains an issue for Apple, surely it should have been sorted by now????

Dec 7, 2014 6:44 AM in response to Penygent

Same problem here with a new Mac Pro and a new LaCie thunderbolt 2. I noticed that the instructions for sleep and shut down are different from previous drives. They suggest to eject the LaCie first even for sleep.

So it might be a good idea to always eject all external drives and what the heck also shut down all other items, like speakers and monitor after shutting down the mac.

The matter is that the sleep function would now be practically useless, sleep not being needed for an SSD internal drive and all that. So shutting down the external drives for both sleep and shut down is recommended by LaCie. I'm giving it a try.

Dec 9, 2014 2:53 AM in response to Appeltjehehe

Update: My situation is Mac Pro (late 2013) with LaCie thunderbolt2 drive 3 TB and Dell display.

I unchecked everything that could put my mac or drive to sleep. I only checked Prevent computer form sleeping automatically when the display is off and set the sleep time to never.

That seems to have got rid of the messages that the drive was not properly ejected, for the time being. I'll need some more time before I can confirm this definitely. But that means that the sleep function on the Mac Pro is actually not working and cannot be used.

My local LaCie representative told me that the sleep function is a concern which happens not only with LaCie drives. It appears that the Mac or OS X is using such a low level of power that drives in sleep assume power is off and the drives shut themselves off as well.

This is a problem they think is to be solved together with Apple so that the sleep function will be available and usable again. I also experienced the same with my MacBook Pro and a first generation LaCie thunderbolt drive.

Just to rule out a problem with the cable LaCie is going to send me a replacement thunderbolt cable.

Dec 9, 2014 5:41 AM in response to Bruce Mcisaac

That may be a good idea. But it remains a bit strange. I don't have ecosockets so the sockets I have should provide enough power at all times. One always needs lots of sockets for drives, speakers etc. New houses should be built with more sockets. I had already had the idea to install an extra power line from a socket on the stairways, but it would take some drilling.

A good thunderbolt2 cable with 100% performance and connection would probably help as well.

Dec 17, 2014 4:55 AM in response to iPhabio

This seems to have fixed it for me:


Go to System Preferences>Energy Saver and uncheck "Put hard disks to sleep when possible." Do this on Power Adapter and Battery.


I have no idea if this will lead to greater wear and tear on any of the hard disks (internal HD and external storage drives) but in the 36 hours since I made this change, I have not gotten the error once.

Dec 17, 2014 8:30 AM in response to RosiesDad

This is a really persistent bug, apparently introduced after Snow Leopard. On my Mac Pro, I have gotten the improper disk ejection message in Mountain Lion, Mavericks, and Yosemite. Same hardware, obviously, and the problem occurs with everything except wonderful rock-solid Snow Leopard, where it never, ever happens. The only OS I haven't tested is Lion.

Dec 17, 2014 10:27 AM in response to kahjot

There seems to be a new way to handle the sleep function. The new Mac Pro with SSD doesn't really need to be put to sleep. It is even better not to, because if you do the mac heats up because the fan stops working. But for the external drives that are attached there seems to be a new procedure, at least for my LaCie thunderbolt2 drives. The advised procedure is to always remove/eject the drives from the desktop, then to push the blue button in front to put it to sleep (1 second push). For a shut down you push 4 seconds. So I guess this means that the mac shouldn't be allowed to shut down the external drives. Always eject the drives first and manually put them to sleep. If you start them up again, this is supposed to give you a problem free connection.

That's what I do now. I haven't got my MP and drives for more than a few days, so it's hard to tell whether this works at all times.

Because it would be really annoying and probably also problematic to have drives that are ejected improperly.

But there definitely is something weird going on.

Dec 17, 2014 11:40 AM in response to Appeltjehehe

Appeltjehehe wrote:

Always eject the drives first and manually put them to sleep. If you start them up again, this is supposed to give you a problem free connection.


That's what I have been doing for some months now, and no dreaded messages.

In theory, ejecting the drives is enough to be safe, which means also quitting all apps linked to external files. But in practice, when the LaCie drives are not switched off via the front or rear button depending on models, for some reason the drives may start up seemingly on their own any time for a quick run, and then switch off again. This won't affect the start up files or the computer, it's just an inconvenience if the noise is a problem.

Dec 17, 2014 12:35 PM in response to Appeltjehehe

This is not a solution for me either. I have three external drives. One is a LaCie Big, right next to my iMac. It's not too big of a pain to put that to sleep manually, but my other two external drives are in a soundproof cabinet on the other side of my office. Definitely not practical to turn those on and off every time I shut down my computer.


The proper solution would be for Apple to fix this.

Dec 17, 2014 9:37 PM in response to Appeltjehehe

Appeltjehehe wrote:


You mean that the blue button sometimes flashes like it's doing some work. I've experienced that as well. But it shouldn't be a problem.


I don't own the Thunderbolt version but many older FW "blue button" now occasionally used with a Thunderbolt to FW adapter, and 4 newer USB3 P9230. What I notice with the USB3 drives is that when they are not switched off via the button after they are ejected, when the MBP is put to sleep (ML), they will launch for a few seconds and then go back to sleep. They may wake up on their own once in a while while the computer is asleep, run for ten seconds or so and shut off. This means probably that something was sent to the drive or more likely that the connection was lost while the computer was asleep.


I agree that *having to perform a complete eject prior to every break is a nuisance*, even if with SSD's inside, the apps launch now so much faster. I wished it were like in the past, with Snow Leopard.

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.

Disk not ejected properly

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