So your D drive is a CD drive and your E drive is a DVD drive. Is that right?
You say that both of these drives are external but then you mention ribbon cables. Are you sure that they're not internal drives? If they are internal, have you checked your jumper settings?