It might be the jumper setting on the D: drive.
If it is the only drive on the IDE channel put it to MASTER or Cable select if your motherboard supports it. And if their is another CD drive on the IDE make one of them Master and the other one Slave. Other then that I don't know what is wrong with it I would have to see it in person to tell you what is wrong, and that is not possible to do.