Windows has an inbuilt mechanism for hard disk recovery using which you can check a storage media, internal or external HDD, for errors.
To check the error go to My Computer/This PC > Drive (right-click) > Properties > Tools tab. Click Check.
1. To check for errors on your computer hard disk check the options as shown by 1 in the diagram above. This will automatically check for errors and fix them.
2. Select option 2 as shown on the diagram above if errors exist in your hard drive. This will scan for and recover bad sectors (with errors) on your hard drive.
The two procedures will try to fix errors in your computer hard drive.