This article explains how to fix errors on a computer's hard drive and provides information about the CHKDSK tool. The information in this article applies specifically to Windows 10. Use the Apple Disk Utility First Aid to repair your Mac's disk.
How do I run CHKDSK to fix bad sectors?
The first sign that a hard disk drive (HDD) is about to fail is when you encounter logical errors on the drive. When a drive experiences these types of operational bugs, the unreadable parts of the drive are reclassified as bad sectors. When a drive has a bad sector, it usually means that the drive can be repaired with software.
Windows 10 comes with a disk check utility that simplifies the process of repairing disk errors. To get started:
Select the File Explorer app from the Windows taskbar or use the keyboard shortcut Win+E to open File Explorer.