If HDD is detected then Dvd-rom is not and vice versa!!!!

goku1234567890

Distinguished
So i bought a Western Digital WD800JD. I connected it even though it was showing up but the windows needed to format it. I set it on format and then after nearly one hour I was fed up cause the line was not moving at all. So i restarted my computer went into the BIOS and change the SATA operation from RAID autodetect/ AHCI to Legacy. When I opened the computer the windows installed the driver for my both Western Digital WD800AJAS and WD800JD, but to my suprise the DVD rom was now gone. So i switched back to RAID autodetect/AHCI and the DVD -rom appeared but the HDD(only JD one) disappeared. So guys please help me is there any way i can get both of them to work on same selection. By the i am using Windows 7 Ultimate.