MacOS - Eject CD-Rom using a command line

December 2016


It may happens that the CD-ROM tray of your Macbook is blocked and that you're unable to unlock it (using the Eject button). Here's a simple command that may help out out.
  • Open a terminal
  • sudo drutil eject  
  • Press the Enter key
  • Give your password when it is requested.

Related :

This document entitled « MacOS - Eject CD-Rom using a command line » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.