Suspect a loose or faulty IDE cable.
If you are confident enough, remove the casing from the machine, and locate the ribbon cable which connects the motherboard to both the drives. Ensure it is located correctly (particularly the motherboard end) and check the cable for obvious damage.
Sorry - re-read the above. Now sounding like a corrupted Windows installation to me.