I accidentally ejected an external drive in the finder, is there an option to hide or remove/disable eject button from finder?
-
2Let 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
-
1defaults write com.apple.finder ProhibitEject true – tron_jones Nov 21 '14 at 22:55
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
-
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
-
-
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
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.