DVD/CD read only drive pops in and out, is it a hardware or software problem

SamD123

Honorable
Feb 12, 2013
72
0
10,640
The DVD read-only drive on my Compaq Presario (with Windows XP, 8 years old) keeps popping in and out. How can I find out if this is a drive problem or a software problem. Thanks Sam