If you see such a message box pop up, first back up your files and follow the instructions given in this post to fix the problem. Do not disable this useful warning as it is meant to alert you of hard disk failure.
Windows detected a hard disk problem
While the issue might be with the hardware or connections, before sending the system to a repair technician we could try the following troubleshooting steps to isolate the issue. Here we are not showing how to turn off this warning – you could do it by turning off Windows Disk Diagnostics using GPEDIT or REGEDIT, or SMART checking via BIOS settings. We are showing you how you can proceed with troubleshooting and resolving the issue.
1] Run Disk Error Checking utility
To run a Disk Error checking on the drive manually, proceed with the following steps: Close all open applications and then press Win+E to open the File Explorer which shows the list of drives. We need to scan all the drives shown in the list one by one. Let’s start with D: for example. Right-click on the drive and select Properties. In the Tools tab, click on Check under the Error Checking column and then click on Scan Drive.
This makes Windows scan the selected system errors disk and resolve them if possible. If some of the files on the partition are being used, the scan will be executed on restart. Restart the system after the process and verify the resolution. If it doesn’t work, proceed to the next step.
2] Use Storage Diagnostic Tool
You can use the Storage Diagnostic Tool in Windows 10 to collect and analyze storage-related data, which can help them troubleshoot Hard Disk and storage diagnostic issues. By running a single command, the tool can collect all storage and file system-related data and diagnostic logs and output them to a folder. Read: How to tell if SSD is failing in Windows?
3] Use WMIC to check Hard Disk Health
To check the status of your Hard Disk health, you can use the WMIC or Windows Management Instrumentation Command-line. The WMIC is a command-line and scripting interface that simplifies the use of Windows Management Instrumentation (WMI) and systems managed through WMI. Using the WMI Commands, it can help you carry out several administrative tasks. This is like taking a second opinion about the health of your hard disk.
3] Use 3rd party free Hard Disk checker
Although Windows computer systems come with a built-in disk error checking scanner, which offers a lot of command-line options to scan the hard drive for Errors and Bad Sectors, you can use a third-party tool for that. The fact that this error appears on your screen signifies that the disk is unable to repair itself automatically. Ideally, both the disk and the Windows operating system try to detect the error. If Windows displays the error, it in itself means that the disk is probably failing. However, a few interfering programs could also cause the issue as well. To understand what is affecting you, you could use a 3rd party freeware.
4] Use the hard disk diagnostic tool provided by your HD manufacturer
If you know the brand of your hard disk (mostly the same as the brand of your computer), download the specific diagnostic tools provided by the manufacturer. Run those tools and see if they help your cause. Here are a few links: Finally, if all the above steps fail, you can safely assume that the issue to be with the physical hardware and might consider replacing the hard drive. Related read: A disk read error occurred, Press Ctrl+Alt+Del to restart.