eject /cdrom eject: unable to open '/dev/cdrom'
you could try eject /cdrom -vthe -v switch will describe in detail all the steps performed to eject the device. if it doesn't work, you have to add to /etc/fstab the correct device for your cd drive, mine is
/dev/hdb /cdrom iso9660 ro,user,noauto 0 0