I think the problem can be diagnosed from the sources:
-ide cable is defective (change to another ide wire)
-hard disk is failing (swap with another to test)
-grounded casing/motherboard. (remove the motherboard from casing and do a powerup test)
-power supply (test with a "known-good" PSU)