Contribute
Register

USB drives Not Properly Ejected on wake from sleep. [Yet another solution but this one is free!]

Status
Not open for further replies.

shilohh

Moderator
Joined
Jan 1, 2012
Messages
1,752
Motherboard
Asus Prime Z490-A
CPU
i9-10850K
Graphics
RX 5700 XT
Mac
  1. MacBook Pro
  2. Mac Pro
Mobile Phone
  1. Android
USB drives Not Ejected Properly on wake from sleep. [Yet another solution]

Screen Shot 2015-05-29 at 7.49.13 AM.png

I wrote a applescript app to install sleepwatcher and eject + mount scripts that affect only USB and USB 3 drives. I did this because I don't like that Jettison.app messes with SATA drives too. I have my hot swap bays hooked up to my ASM1061 SATA 6G ports and hot swap works perfectly with them as external.

Enjoy. It's free!

EDIT: Updated with miketks10's wakeup script from his post below.
 

Attachments

  • SafeSleepUSBv1.2.zip
    77.5 KB · Views: 1,587
Last edited:
Thank you for your time and effort put into doing this. It works great.

There is only one thing: after waking, my usb drivers are mounted back properly, but so are their corresponding EFI partitions (as I am using GUID partitioned drives). Not a biggie, I can unmount those manually after waking. Just wondering if there's an "easy fix" for that waiting to be implemented in your script.

Please, do not consider this as a request, just an observation of a possible "bug". And again, thanks for this. I can sleep safe knowing my drives sleep safe.
 
in SafeSleepUSB > Contents > Resources:
replace the rc.wakeup code with the one attached.

if its installed, uninstall and re-install (by running the app from applications)

if not, just copy the app over to applications and install it!

hope this helps!
 

Attachments

  • rc.txt
    325 bytes · Views: 705
Just returned from my vacation and found reply from miketks10. Now it works perfect for me. After replacing the rc.wakeup code with the one from post #4 EFI partitions are no longer mounted on wakeup.

You made my day man. Thanks!
 
in SafeSleepUSB > Contents > Resources:
replace the rc.wakeup code with the one attached.

if its installed, uninstall and re-install (by running the app from applications)

if not, just copy the app over to applications and install it!

hope this helps!
Thanks for the contribution. It's working good for me so I updated the app with your script and added a note to give you credit.
 
Perfection!
 
Just wanted to say Thanks for this,,, Works great on El Capitan with a Seagate 1Tb USB External
 
You ROCK! This script works great on El Capitan 10.11.2
 
My mac mini is having the same issue, many people using the Mac. It's an OS problem.
I assume I can run this on an original mac mini, not a hackintosh, right?
 
Status
Not open for further replies.
Back
Top