How to stop CDRom from ejecting by itself
Whenever you found that your CDRom ejecting itself, you don’t want to fiddle with the guts of your computer, look for a software cause first. Is it possible that someone installed some “joke” software without your knowledge? Such programs do exist, and can cause the cdrom tray to open and close by itself at random times. Another possibility is a virus, spyware or some other bit of malware that’s designed to play tricks on you. I’ve seen reports by users who had exactly this problem, and solved it with a thorough spyware cleanup.
I am