Macos – External hard-drive keeps ejecting itself

external hard drivemacos

I've got a Sharkoon 5 bay RAID station with 5 x 2TB drives in it. I've let my Mac do a software RAID on it but it seems I've ran into a bit of a problem – at very random intervals the drives eject themselves and I get the usual "Disk Not Ejected Properly" error message. Usually there's a large file transfer that causes this to happen and so I decided to investigate and fix. Turns out, there's a bit of an issue with drives like this and the only way it'll work is formatting 4 of the drives as a RAID and leaving the "top" drive (the first drive in the bay) as a standalone unit. I decided to start pulling as much of the data off the drives to start that process but I've now ran into quite a large one.

There's about 200 Gb of information left on there that I need to transfer off. Every time I try and navigate the drive now (either via Finder or terminal), the drives eject and then reconnect themselves – leaving the data on the drive, giving me the message, then remounting the drive in a few seconds (repeat). My guess is there's something scanning/reading those drives from the initial mount, reading bad data, chucking them for whatever reason, and it remounts. Weird thing is, I managed to get about 500Gb off it initially with it only ejecting rarely.

I've disabled spotlight and made sure no .Trashes, .DS_Store or similar files are being dumped when traversing but there must be some other "thing" that's looking through/at the drive when it's initially plugged in causing me not to be able to navigate it.

Just for added information, I've ran the Verify / Repair disk a number of times with no issues (when it actually runs and doesn't eject mid repair…).

Best Answer

I'm not sure it applies to this RAID but WD's custom drive software (disable it once you can get your data off) is indicated a few times in this thread, as is disabling hard drive sleep mode, also mentioned recently here.

Energy Saver Preferences | Uncheck put drives to sleep when idle

There are disk diagnostics like smartmontools that report (and can run self-tests) on single disks, if you reach a point where you have to consider checking individually. Standard caveats about not spinning up your RAID set missing a disk / writing to the disk you're testing apply.

Footnote only: It seems unlikely your power is marginal (since an external array of this size should require external power) but I'll include standard procedure to dismiss weak power, bad cables and ports anyway:

  • Another port; ideally on the computer
  • Another USB3.0 cable, or the other technology supported by the array (I see eSATA and USB3 here).
  • Another computer
  • Another power supply
Related Question