A standard IDE cable has three colors: Blue, Black and Grey. The blue portions is connected to your motherboard, the black is the master and should connect to your hard drive. The grey is for slave so connect that to your cd-rom. Also set your hard drive as MASTER but adjusting the small pins on the back of the hard drive and do the same to your cd-rom by setting that as the SLAVE.
Let me know if that works.