• On The Insider: Joe Simpson to Produce TV Show
advertisement
October 11, 2004 7:52 AM PDT

Mini-Tutorial: Ejecting media in Mac OS X: Removing 'stuck' CDs/DVDs

by CNET staff
  • Font size
  • Print
  • 2 comments

From time-to-time, removable media (including CDs, DVDs and others) can refuse to eject via the normal Mac OS X methods -- pressing the keyboard eject key; using the Command-E keyboard combination; selecting the item in the Finder and clicking the Eject button next to its name; dragging the item to the trash; or pressing the F12 key.

A number of methods can be applied to help coax media out of an optical drive in such a situation. Before applying these methods, however, note that busy disks (either startup disks or disks with an open file) should not be ejected and will not using any of the aforementioned standard processes. As such, be patient with a disk that will not eject immediately. Sometimes a disk continues to be identified as busy for several seconds after any contained files are not in use, and waiting a few moments then re-attempting the ejection is successful.

Use Disk Utility to eject The first and simplest method, if you only want to unmount a single volume on the disk, is to use Disk Utility, located in Applications/Utilities. In Disk Utility, simply select the volume you want to unmount and click Eject.

Hold Down the mouse button at startup In some cases holding down a connected mouse button at startup will cause a misbehaving optical drive to eject its media.

Unfortunately, this method will not work if you are using a Bluetooth keyboard.

Also, for Xserve users, make sure that the machine is unlocked (using the included allen wrench) before holding down the mouse key during startup.

Boot into Open Firmware and eject If you have a Mac that will not startup properly and has a stuck disc, try booting into Open Firmware by holding down Command, Option, O key and F key during startup. After booting into Open Firmware, type the command eject-cd.

Using the Terminal There are two commands that can be used in the Terminal (located in Applications/Utilities) which can be used to force disk ejection:

The first command to try is drutil tray eject. Simply type in this command and press return.

The other method takes a little more work but can work in instances where the first method fails.

  1. Type the command drutil list into the Terminal and press return . This will provide a list of all currently connected removable devices. [ScreenShot 1-DiskEject] -- connect FireWire/USB drives for this
  2. Use the command drutil tray eject 1

In the above command, the number "1" should be replaced with whatever drive number you obtained in the first step.

Enabling an Eject menu As a side note, you can enable another means of ejecting disks by opening the folder System/Library/CoreServices/Menu Extras and double-clicking the file "Eject.menu". An eject icon will appear in the menubar that can be used to close and open selected optical drives.

If you no longer want the Eject menubar item, hold down the command key while clicking and dragging the icon out of the menubar space.

Like what you've found in this tutorial? Get more troubleshooting guidance (updated daily) by subscribing to MacFixIt Pro.

Resources

  • subscribing to MacFixIt Pr...
  • More from Tutorials
  • Recent posts from MacFixIt
    iTunes 9.0.3 breaks AirTunes connection for some
    Apple releases Aperture 3.0
    Manage iCal's automatic e-mail generation for invitations
    CNET TV Apple Byte: Apple faces critics
    Weekly Utilities Update: Net Monitor, MiniUsage, TimeMachineEditor, more...
    Odds and Ends: Essential video codec packs for OS X
    Address Book: Unable to add, view contacts
    Persistent 'Faster Browser Search' overtaking Safari's default search
    Add a Comment (Log in or register)
    by ChronosFT January 22, 2010 9:05 PM PST
    Here is a solution for a stuck disc in the CD drive of a Mac Mini when all other posted procedures seem to fail and before you grab a screwdriver, butternife or spatula ...

    (This applies to Mac Mini OS X 10.6.2, 2.26 GHz Intel Core Duo)

    1. Shut down the Mac Mini
    2. Connect a corded USB keyboard to the Mini
    3. On the keyboard, press and hold the D key, then press the button to start the Mini (keep pressing the D key until hell freezes over)
    4. Eventually, a window appears that says Apple Hardware Test Version 3A150 (you might be asked to select English as your language of choice before you see the test version)
    5. Click on the Test button to start the hardware test (the option for the lengthier test is not necessary)
    6. Once the test is over, the results will likely say that everything is okay. Choose the option to SHUT DOWN the Mini.
    7. Suddenly, the CD will be ejected from the Mini.

    This worked for me when all other methods failed. I must give thanks to Kris for helping me find this solution.

    Chronos
    Reply to this comment
    by pipsicle February 5, 2010 9:57 PM PST
    Chronos -

    Thanks for the tip, worked for me too, after all else had failed.

    Pipsicle
    Reply to this comment
    advertisement

    About MacFixIt

    MacFixIt is CNET's troubleshooting resource for all things Mac. The information here helps you navigate the ins-and-outs of Mac ownership with how-tos, troubleshooting information, news, reviews, and more.

    Add this feed to your online news reader