The CDrom is stuck in the computer

I can't get the cdrom out of the computer.

If nothing is using the CD directory the system will attempt to un-mount it after a few minutes, or you can cause the system to try to un-mount it sooner by running:

     amq -u /opt/med/cd/ 

and then pressing the eject button (or using the eject command on the linux computers).

  • If the cd won't come out of the computer, check you are not still in the cd directory. If you type pwd and you see /opt/med/cd/ followed by nothing or anything, then you are still in the cd directory. You need to change to a different directory and try the above amq command again.
    You will need to check the above for every xterm or terminal window you have open.

  • Check you haven't started and not ended any program while you were in the /opt/med/cd directory. For example if you start firefox , while in that directory you won't be able to get your cd out until you have quit from firefox.

  • If you still can't remove it use the fuser command to try and find which process is still using the cdrom.
    Example:
     	
    		/sbin/fuser -vum /opt/med/cd  	
            
    returns output like

    
                         USER        PID ACCESS COMMAND
    /opt/med/cd          df224     12056 ..c..  xterm
                         df224     12058 ..c..  sh
                         df224     12059 ..c..  ssh
    
    
    Then kill the PIDs listed. In the above case
    	kill 12058
    
    leads to /sbin/fuser -vum /opt/med/cd no longer listing any output. (in some cases you may need to use kill -KILL PID-number)
    Run amq -u /opt/med/cd and the cdrom should eject.

  • If after that it still can't be removed then email the departmental computing helpdesk remembering to include information on which computer the cd is stuck in and where that computer is.