Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Either right click on the image of the disk on the desktop then click eject or hold down the eject button for a few seconds.
 
open up the Terminal. (located in Applications>Utilites)

to eject a CD type:
Code:
drutil tray eject

to close the CD drive type:
Code:
drutil tray close
 
You can generaly drag any removable media to the trash and the trash symbol will turn into an eject symbol. From my experience that's how most users eject their media. The only time you should ever have to use the command line to do it is if your only way into the box is too ssh in.
 
SilentPanda said:
Or... reboot your machine and hold down the (left) mouse button! Yay!

Since we're all thinking of how to eject a CD in nice fun colorful ways, I though I would add one more:

Use screwdriver to pry open CD-ROM.

If slot-loading, dissasmble the whole machine.
 
I had this problem once... I took my computer down to my local fire department and they were very nice to use the jaws of life to pry it out.... I would try that.
 
Bring mac outside. Screw large eye screw into tree. Drill pilot hole, and screw smaller eye screw into CD tray. Attach the two with chain or steel wire. Drill several other pilot holes into back of Mac. Attach eye screws and wire. Attach those wires to bumper of car. Pull car away from tree.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.