Here's an additional way that's very convenient to use.
You can add an Eject Item to the Menu Bar
- Open a Finder window and navigate to /System/Library/Core Services/ Menu Extras.
- Double-click the Eject.menu item in the Menu Extras folder.
The Eject menu item will be added to your Mac’s menu bar. It will have the eject icon, which is a chevron with a line below it. If you click on the Eject menu item, it will display all of the CD/DVD drives attached to your Mac, and provide the option to ‘Open’ or ‘Close’ each drive, depending on its current state.
Five ways to eject a stuck CD or DVD from the optical drive
Ejecting the stuck disc can usually be done in one of the following ways:
1. Restart the computer and after the chime press and hold down the left mouse button until the disc ejects.
2. Press the Eject button on your keyboard.
3. Click on the Eject button in the menubar.
4. Press COMMAND-E.
5. If none of the above work try this: Open the Terminal application in your Utilities folder. At the prompt enter or paste the following:
If this fails then try this:
Boot the computer into Single-user Mode. At the prompt enter the same command as used above. To restart the computer enter "reboot" at the prompt without quotes.