1

I accidentally ejected an external drive in the finder, is there an option to hide or remove/disable eject button from finder?

  • 2
    Let me take a crack at this, Daniel. "I don't want to accidentally eject an external drive when I'm in the Finder, is there an option to hide or remove eject button from Finder windows?" Is this correct, @IAmJulianAcosta? – Patrick McMahon Nov 21 '14 at 20:54
  • 1
    defaults write com.apple.finder ProhibitEject true – tron_jones Nov 21 '14 at 22:55
3

You can use the command below to edit the com.apple.finder preference.

defaults write com.apple.finder ProhibitEject true

that will set it for the current user, to set it system wide use

sudo defaults write com.apple.finder ProhibitEject true

The eject button will still show in finder but will not do anything when pressed.

  • 1
    Thank you, is possible to do this only for one drive? – IAmJulianAcosta Nov 22 '14 at 1:41
  • Not that I can think of easily. If you don't mind opening it from terminal all the time you can hide the external drive and it won't show in finder at all. – tron_jones Nov 22 '14 at 2:08
  • Is it possible to disable ejecting just for one certain drive? – mirap Jul 9 '16 at 15:32
  • Thanks, some days (almost every day) I hit the eject button on my keyboard instead of the backspace key, most annoying :) – MitchellK Oct 15 '17 at 14:05
0

The easiest way, and suitable for ANY drive is to right-click the drive and choose "remove from sidebar". That way you can create an alias or navigate to your files from "{username}'s Mac" without messing with any other system configuration.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .