please look carefully on the IDE connectors on the motherbaord for bent pins or other obstructions.
this is beginning to sound like a cable problem.
do you have any old PCs lying around that you could do a fit check on the HDD and CD on a known good IDE cable? if not can you borrow an IDE cable from a friend?