Ejecting a CD or DVD disk from the command line on a Macbook Pro

The following command will eject a DVD or CD from the Macbook Pro’s drive:

    drutil eject

Note that you may need to be “root” in order to successfully complete this operation. If you get an error saying something to this effect, try

    sudo drutil eject

and enter your password when prompted.


Leave a Reply

Your email address will not be published. Required fields are marked *