MacOS - Eject CD-Rom using a command line

Ask a question

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.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team