I had this happen on my laptop once and I tried everything. Every...thing. Cleaning the drive, cleaning the disks, virus scans, playing with the slave/master settings, whew!
Eventually, what I wound up doing was uninstalling the drive completely and then shutting down the system.
When the computer came back online, it saw the drive as new hardware, and then reinstalled it.
Worked fine.