If you are using IDE, make sure the hard-drive is set as the Master, and the CD is set as the Slave, unless they are on two different channels (motherboard connections). Then make sure both are set to either Master or Cable Select.
Settings are done by jumpters on the drives, near where the power and data connections are.