Remove eject button from finder
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.