While this is often discussed (some 1,000 plus posts), your post left out what program you used and what happens. Screen messages and more.
If you type SCANDISK 10 TIMES on google.com, then you find the most common cure.
I had a second hard drive installed in my Dell ME. I cannot run the defrag. on one of the hard drives. (The original one)