Drive jumper settings for how you have your drives configured:
Primary HDD: Master with slave present.
CD-ROM: Slave
Second HDD: Master with slave present.
CD-ROM: Slave.
If your IDE cable has specific markings on the connectors for master and slave, make sure that the connectors are on the correct drives.
Upon BOOT, enter BIOS setup and make sure that all 4 drive detection settings are set to auto detect.
Or, if there is a drive detection page in BIOS settings, use that to set the drive parameters.
If you cannot boot to the point of getting into BIOS settings, then look for a cable that might have come off of the system.
Check the power cables for all 4 drives. It is possible that one of them is mis-wired. This would cause the power supply to shut down because it would detect a short.
Personally, I don't normally mix HDD and CD-ROM drives on the same IDE channel.
The primary exceptions being:
2 different brands of hard drives.
Desire to burn copies of CDs.
I would set up the system as follows:
HDD 1 as Master with slave present on Primary IDE channel.
HDD 2 as Slave on Primary IDE channel.
CD-ROM 1 as Master on secondary IDE channel.
CD-ROM 2 as slave on secondary IDE channel.
Chas