1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

Eject Stuck CD/DVD: Use Terminal to Eject a Stuck CD/DVD

Terminal Trick Lets You Force Eject Media Without Shutting Down

By

A cd in a macbook disk drive
Epoxydude/Getty Images

Having a CD or DVD stuck in your Mac or an optical drive isn't a fun situation. And while there are a number of ways to force the media to be ejected, most require you to shut down. If that presents a problem, you can use Terminal to force eject the CD or DVD, without shutting down your Mac.

Use Terminal to Eject a Stuck CD or DVD

  1. Launch Terminal, located at /Applications/Utilities.

  2. In the Terminal window, enter one of the following three commands:

  3. If you have a single optical drive:

    drutil eject

    If you have both an internal and external optical drive, use the appropriate command below, depending on which drive has the stuck CD or DVD:

    drutil eject internal

    drutil eject external

  4. Press return or enter after entering one of the above commands in Terminal.

  5. The stuck CD or DVD should be ejected.

  6. You can quit Terminal.
Related Video
Open a Stuck Drive on Your PC
Burn a CD or DVD in Windows XP
  1. About.com
  2. Technology
  3. Macs
  4. Using Your Mac
  5. Eject Stuck CD/DVD: Use Terminal to Eject a Stuck CD/DVD

©2014 About.com. All rights reserved.