Bad IDE cable or PSU

The winning answer treats the symptoms but most likely not the cause. Bad/loose IDE cable or under sized PSU might be the cause. Drives suck more power than anything else. Not having enough juice to spin up can cause all kinds of trouble messages.