Contribute
Register

USB drive improperly ejected after sleep work-around

Status
Not open for further replies.
Joined
Nov 24, 2010
Messages
34
Motherboard
ThinkPad T440s-OpenCore
CPU
i5-4300U
Graphics
HD 4400, 1920x1080
Mac
  1. Mac mini
  2. Mac Pro
Mobile Phone
  1. iOS
I apologize if this has been addressed, but I've been searching for an answer and so far there doesn't seem to be one, so when I discovered a work-around for the issue, I wanted to share and give back a little...

I just completed a CustoMac Mini 2011 build, everything was working excellently except when the computer went to sleep and woke, the external USB drive would report that it hadn't been ejected properly.

Searched the forum and discovered others having a similar problem and, not wanting to have to manually eject every time, began trying to find a solution.

No solution yet, but here's what I did as a work-around until the gurus here have the DSDT taking care of this issue.

Open "Automator", create an application. In your "library," double click "Get specified finder items." Choose your drive(s).

Next, go back to the "Library" and double click "eject disk."

Go back to "library" one last time, and double click "run applescript." Replace what is there with this:

Code:
on run {input, parameters}
	
tell the application "Finder" to sleep
	
	return input
end run

Name "Sleep" and save to your desktop.

Now, when you double click this icon, your machine ejects the drives you selected in step 1 and puts the machine to sleep. Upon wake, the drives are mounted and there's no error!

It's not much, and requires manually selecting "Sleep" each time, but works.

Hope this helps someone!
 
Or use a $2.00 app called Jettison, automatically ejects drives (and others) when computer goes to sleep. No manual clicking. Also automatically reconnects on wake-up.

And if your auto-sleep isn't working (but sleep is working), use a program called PleaseSleep.
 
powerpcg5 said:
Or use a $2.00 app called Jettison, automatically ejects drives (and others) when computer goes to sleep. No manual clicking. Also automatically reconnects on wake-up.

Even better! Thank you for the tip - Jettison seems to be working great...just wish I had discovered it before I "shared" with everyone!! :oops:
 
wow, there is still no real fix for this? This affects everyone right?

I have resorted to just shutting down the computer every night which i never used to do with my iMac. I just forgot about it and considered shutting down normal until i read this post and damn, still no fix.
 
Powerpcg5 Hi, I tested the application jettison, but does not work ... when returning from sleep, the message appears again that the disc is not extracted correctly ... I have only tested the demo version, I still have not bought the application, this is the problem, or the demo and it should work? can you help me?

If the application using "Eject External disks now" successfully ejected the stick, but when I go back to sleep, the stick does not mount automatically.
Sorry for my bad (google) english :oops:
 
Or use a $2.00 app called Jettison, automatically ejects drives (and others) when computer goes to sleep. No manual clicking. Also automatically reconnects on wake-up.

And if your auto-sleep isn't working (but sleep is working), use a program called PleaseSleep.

Thank you! I will buy it and test it for my setup!
 
I apologize if this has been addressed, but I've been searching for an answer and so far there doesn't seem to be one, so when I discovered a work-around for the issue, I wanted to share and give back a little...

I just completed a CustoMac Mini 2011 build, everything was working excellently except when the computer went to sleep and woke, the external USB drive would report that it hadn't been ejected properly.

Searched the forum and discovered others having a similar problem and, not wanting to have to manually eject every time, began trying to find a solution.

No solution yet, but here's what I did as a work-around until the gurus here have the DSDT taking care of this issue.

Open "Automator", create an application. In your "library," double click "Get specified finder items." Choose your drive(s).

Next, go back to the "Library" and double click "eject disk."

Go back to "library" one last time, and double click "run applescript." Replace what is there with this:

Code:
on run {input, parameters}
   
tell the application "Finder" to sleep
   
    return input
end run

Name "Sleep" and save to your desktop.

Now, when you double click this icon, your machine ejects the drives you selected in step 1 and puts the machine to sleep. Upon wake, the drives are mounted and there's no error!

It's not much, and requires manually selecting "Sleep" each time, but works.

Hope this helps someone!

Worked for me, thank you!
 
Status
Not open for further replies.
Back
Top