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.
Does the CD/DVD start to come out and then gets sucked back in and reappears on the desktop? I had that happen with a MacBook. It turned out that the metal case behind the plastic cover above the slot was slightly bent down. When the CD tried to eject it would hit the metal and get pulled back in. Putting a flat blade screwdriver in the slot and gently twisting it to move the metal case up allowed it to eject. Don't put it in too far you only want to bend the case not the drive.
The case can get bent down by picking it up with your thumb pressing down on the case above the slot.