Thought I'd share a bit of good news, at least for me...
Current setup:
- iMac (27-inch, Late 2013)
- Processor 3.4GHz Intel Core i5
- Memory 32 GB 1600 MHZ DDR3
- Graphics NVIDIA GeForce GTX 775M 2048 MB
- External drive: Vantec HX4R eSATA/USB 3.0 RAID enclosure containing 4 x Western Digital WD30EFRX RED NAS-rated 3TB disks
For over a year now I've been battling with the good old "Disk Not Ejected Properly" dialog on my external drive. For me it wasn't happening when the computer was sleeping but instead when I was actively using it. I could either saturate the external drive with write traffic (e.g.: copying lots of multi-gigabyte files) OR I could saturate the CPU with user tasks, but if I tried to do both at the same time I'd be guaranteed to get the DNEP dialog within a few minutes.
Having read through this thread a couple of times I'd tried various solutions offered:
- I'd been to Energy Saver preferences and unticked "Put hard disks to sleep when possible".
- I'd confirmed that the setting had taken effect in Terminal using: pmset -g | grep disksleep
- I'd been to Spotlight preferences > Privacy and excluded the HX4R from Spotlight indexing (as annoying as that was, being unable to search the drive).
- I'd even borrowed another HX4R enclosure and a set of Seagate disks to confirm that it wasn't my hardware.
I was convinced that it was a timing or race condition bug somewhere in the JHFS+ driver or the USB3 driver. Until last week.
Last I moved my entire computer setup to a sit stand desk and then I started getting the DNEP dialog when barely anything was happening to the drive. Even just logging in to the desktop. Disk Utility would also pop the dialog just a few seconds into Verify Disk or Repair Disk activities.
It turned out to be, for me at least, the USB 3.0 Type B cable connecting the iMac directly to the HX4R enclosure. It must have always had a fracture and then when it got moved last week became a full-blown break. And I must have used my cable when trying the other enclosure. Since getting a new cable I haven't had the DNEP dialog pop once. *Fingers crossed* *Knock on wood*
I'm sure this won't apply to everybody, but hopefully it will prompt someone to try different cables and maybe fix their problems. Good luck!