|First check in device manager and see if a problem shows with any hardware there, as I mentioned in my # 1 above. Also check to see if it's in compatibility mode. To do that right click on 'my computer' and choose 'properties' and then open the 'performance' tab. Any drive running in compatibility mode will show there. If a problem shows there STOP and post back what it shows and we can look for drivers.|
If all looks OK there then the problem must be hardware related with the drives. It's possible when both drives are on the same cable--as your setup likely is--that when one drive goes bad it can affect the other.
Open up the case and first check the cabling. (When working in the case it's best to disconnect the power cord from the computer as most power supplies provide a small charge to the motherboard even when off. Not enough to shock you but enough to zap components when adding or removing them.) Make sure the 40-pin ribbon cables connecting the drives is firmly attached. Assuming that's OK, then remove the cable from one of the drives leaving just one drive connected.
Then with it disconnected start up the computer and see if the tray on that cd drive now opens and closes. If it does see if it shows in 'my computer' when it boots into windows.
You can do the same with the other drive. If one seems to work and the other doesn't then you know which needs to be replaced.
While doing the above you may need to familiarize yourself with the drive jumpers:
Basically, one drive should be jumpered as master (usually the drive that shows as D:) and the other as slave (E: drive) OR they're both jumpered as cable select and it's their position on the cable that determines their drive letter. However, I think for these testing purposes you won't have to make any changes to the jumper configuration when disconnecting a drive. But you should be aware of how the jumpering is done.