1

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

2
  • 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? Commented Nov 21, 2014 at 20:54
  • 1
    defaults write com.apple.finder ProhibitEject true
    – tron_jones
    Commented Nov 21, 2014 at 22:55

2 Answers 2

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.

4
  • 1
    Thank you, is possible to do this only for one drive? Commented Nov 22, 2014 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
    Commented Nov 22, 2014 at 2:08
  • Is it possible to disable ejecting just for one certain drive?
    – mirap
    Commented Jul 9, 2016 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
    Commented Oct 15, 2017 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 .