I believe for IDE cables there are two types. One with 40 pins and 40 wires and another with 40 pins and 80 wires.

I could find out which one I need for a particular motherboard by looking at the motherboard manual. But how do I know if a hard drive or CD/DVD Rom would need a 40 wire or 80 wire?