NoobsPlanet

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics, posts and unlimited download to our resources, as well as connect with other members through your own private inbox!

Catalina USB drives Not Properly Ejected on wake from sleep.

noobsplanet

Active member
Staff member
Administrator
Moderator
View attachment 1448
hello, anyone gets this issue? I found a solution to fix it but just for Mojave back, cant work on Catalina, I don't know if I post link another forum in this thread can allow or not?
https://www.tonymacx86.com/threads/usb-drives-not-properly-ejected-on-wake-from-sleep-yet-another-solution-but-this-one-is-free.164938
Fix "Disk not ejected properly" Issue on OS X/Mac OS X
Hola, this is an ongoing project aims at fixing the issue of disk not ejected properly upon sleep. This issue has a really long history since Mavericks (Mac OS X 10.9) even on a real Mac. Without the help of Bernhard Baehr ([email protected])'s great sleep watcher daemon, this project will not be created.
I've tested on my DELL Precision M3800. Wish you all enjoy it. Any feedback is welcomed!
How to use fixUSB.sh?
Download the latest fixUSB.sh by entering the following command in a terminal window:

I haven't had this problem which I just tested on my Hackintosh and real mac running which is also recently updated to Catalina 10.15.1, but according to the research I have found that this issue has been coming to some mac book from the Mavericks (10.9) to now (Catalina 10.15) even on a real Mac as well. Actually what happens is that when we put the machine on sleep the OS simply suspends the USB port as well and hence this broadcast message "Disk not ejected properly" before sleeping completely, after that the message is queued and when we wake the system again we get the message back. You might have a question that "Will this break your devices?" Yes, unsafe ejected of the device may lose data or damage devices.

What's the solution then?
Yaa. there are many solutions out there I will list a few of them below. The correct way to fix this issue is through the DSDT patch which I don't mention in this guide for now. I will write another guide on DSDT patching the USB suspend issue on sleep and wake of Laptop/Desktop.

Using opensource project fixUSB for Hackintosh
This project is maintained by @sascl on his GitHub. He mentions that this has been tested on Dell Precision M3800. This script will eject the USB disk when it goes to sleep and remount again on wake of the system again to behave it normally by the help sleepwatcher tool, which is a safe method. Open the Terminal from Application -> Utilities -> Terminal and paste the following command.

Terminal : Install fixUsb for Hackintosh:
curl -o ./fixUSB.sh https://raw.githubusercontent.com/syscl/Fix-usb-sleep/master/fixUSB.sh &&
curl -o ./ramdisk https://raw.githubusercontent.com/syscl/Fix-usb-sleep/master/ramdisk.sh &&
chmod +x ./fixUSB.sh &&
chmod +x ./ramdisk &&
./fixusb.sh

That may take a few seconds. Use ./fixusb.sh -d and ./ramdisk -d to list the argument to see the details of whole progress.
How to use fixUSB and Ramdisk?
Commands
Description
./fixUSB.sh​
Run the FixUSB script.​
./ramdisk​
Run the RamDisk script.​
./fixUSb.sh -d​
Run FixUSB in debug mode.​
./ramdisk -d​
Run RamDisk in debug mode.​
./fixUsb.sh -u​
Uninstall the program ./fixUsb​
./ramdisk -u​
Uninstall the program ramdDisk​
sudo reboot​
Reboot the system​

Let me know if you have any issues.
Happy Hackintoshing ^_^
 

oldman20

Member
I will write another guide on DSDT patching the USB suspend issue on sleep and wake of Laptop/Desktop.
Yeah, i looking at your guide, thanks
and about your tip, i cant download to install script, command cant run in terminal, when copy and paster first command curl -o ./fixUSB.sh https://raw.githubusercontent.com/syscl/Fix-usb-sleep/master/fixUSB.sh && then press enter it alway show cmdand> like this
Code:
Last login: Tue Nov 19 01:06:32 on ttys000
[email protected] ~ % curl -o ./fixUSB.sh https://raw.githubusercontent.com/syscl/Fix-usb-sleep/master/fixUSB.sh &&
cmdand>
 

noobsplanet

Active member
Staff member
Administrator
Moderator
Yeah, i looking at your guide, thanks
and about your tip, i cant download to install script, command cant run in terminal, when copy and paster first command curl -o ./fixUSB.sh https://raw.githubusercontent.com/syscl/Fix-usb-sleep/master/fixUSB.sh && then press enter it alway show cmdand> like this
Code:
Last login: Tue Nov 19 01:06:32 on ttys000
[email protected] ~ % curl -o ./fixUSB.sh https://raw.githubusercontent.com/syscl/Fix-usb-sleep/master/fixUSB.sh &&
cmdand>
I just tested this and it's working. please make sure you copy all the lines or you can simply use the copy button at the top right and paste it in the terminal.
Screen Shot 2019-11-09 at 10.16.53.png
 
Top