Macos – Mac OS X external drive appears as empty in Finder, but when accessing from Terminal, files show up

external hard drivefinderhard drivemacosterminal

How do I access my files visually from the Finder?

The drive is mounted, it is not empty, it worked on a Windows PC. And, as stated, I can access all of the files using the terminal.

A couple of notes:

  • The drive refuses to eject. Even if I force eject it from the terminal, the light on the external stays on.
  • The drive was verified through disk util to be okay, but then after playing with it for a while trying to fix this, disk util said to reformat the drive. It’s still working fine on other computers regardless.
  • It's formatted in exFAT. This drive has worked fine before.
  • I have permissions to read and write.

EDIT: I just left the Finder window for the drive open for ~20 minutes, and the files magically appeared. The last thing I did with the drive was unmount/remount using the Terminal. I checked right after I did that, and still no files. Yet, 20 minutes later, they're there.

Would anybody be able to provide an explanation in case this happens again?
I feel as if this will happen again.

Best Answer

ExFat drives, in my experience, behave strangely under Mac OS X after they are improperly removed. Note that this applies to both user error (ie, you forgot to press the eject button beforehand) as well as software malfunctions (ie, your computer hard crashed while the drive was inserted).

Once the improperly-removed exfat drive is reconnected to a Mac, one of a couple things tend to happen to me:

  1. The drive simply does not appear in Finder. Disk Utility can see it, but will refuse to remount it. If you run first aid, Disk Utility will display a quite-scary message saying that the drive is broken beyond repair.
  2. The drive will mount and appear in Finder, but some or all files will not be visible in Finder and/or in the terminal. The terminal and Finder may give different results as to which files are visible.

In both cases, the problem can be fixed by simply leaving the drive connected to a Mac for somewhere between 10 minutes and three hours.

You can also plug the drive into a Windows machine and run Microsoft's disk repair utility, which will allow the drive to work properly when it's reinserted into a Mac but will usually cause some files to be permanently deleted.

I have no idea why this happens. Regardless, the solution is simple: leave the drive connected to a Mac for however long it needs to repair itself.

Related Question