New SSD and 2 old HDD's, won't boot Windows 7

XLevel

Prominent
Mar 4, 2017
2
0
510
Computer had 3 hdds of different sizes. Main hdd crashed and I bought a new SSD.

I removed all the hdd drives and installed the new SSD, set BIOS to AHCI.

Installed fresh OS Windows 7, no image or anything like that. Finished installing all my other software and everything is still working great.

I add my two old hdds (both have jumpers on right two pins) back in and it won't boot past the Windows loading screen.

Leaving the SSD in and still set to AHCI, tried one hdd and removed the other, same result. This one may have an old copy of Windows XP on it.

Tried the other that has no operating system, same result.

Switched BIOS to RAID and checked with each hdd drive as two prior attempts, same result.

Switched back to AHCI and removed both hdds and it boots fine.

How can I attach both hdds and still get Windows to boot?
 
Solution
Yes, you should get BSODs if you did that, you need to change the motherboard back to IDE and then boot and change the OS drivers to AHCI first like THIS.

XLevel

Prominent
Mar 4, 2017
2
0
510
I did the install when it was still set as default (IDE maybe) and then switched to AHCI after installing the Samsung SSD software post the windows install. Could this be the issue?