Hard Drive Test: How to Check and Fix Disk Errors
In this article
A hard drive test is a diagnostic process used to determine the health of a storage device and identify failing sectors or hardware malfunctions. Depending on the symptoms, you can use built-in operating system tools for quick checks or specialized third-party software for a comprehensive analysis of the drive's internal health logs.
Understanding Disk Health and S.M.A.R.T.
Before running a test, it is important to understand how modern drives monitor themselves. Almost every Hard Disk Drive (HDD) and Solid State Drive (SSD) manufactured in the last two decades includes S.M.A.R.T., which stands for Self-Monitoring, Analysis, and Reporting Technology. This system acts as an internal health monitor that tracks various indicators of drive wear and potential failure.
For HDDs, S.M.A.R.T. monitors physical attributes such as the spin-up time of the platters, the temperature of the drive, and the number of reallocated sectors. A reallocated sector occurs when the drive finds a read/write error and moves the data to a healthy spare area of the disk. While a few reallocated sectors are common over years of use, a sudden spike usually indicates that the physical surface of the disk is degrading.
For SSDs, the monitoring is different because there are no moving parts. Instead, S.M.A.R.T. focuses on wear leveling and the remaining life of the NAND flash memory cells. Each cell has a limited number of write cycles; once those cycles are exhausted, the cell can no longer hold data. A health test for an SSD typically reports the percentage of life remaining based on the total bytes written (TBW) compared to the manufacturer's rating.
Common Signs Your Drive Needs Testing
Many users wait until a drive completely fails before testing it, but there are usually early warning signs that a disk is struggling. Recognizing these patterns can be the difference between a simple data migration and a costly professional recovery service.
- Unexpected system freezes or Blue Screen of Death (BSOD) errors that occur randomly during file access.
- A noticeable slowdown in boot times or a significant lag when opening folders and applications.
- Clicking, grinding, or whirring sounds coming from the computer case (specifically for HDDs).
- Files that suddenly become corrupted or disappear entirely despite no user deletion.
- The operating system prompts you to run a disk check (chkdsk) during the startup sequence.
How to Run a Basic Test in Windows and macOS
Both major operating systems provide built-in utilities to perform a surface-level scan and check for file system errors. These tools are best for fixing logical errors (software-based) rather than physical hardware failure, but they are a necessary first step.
In Windows, the most common tool is the Error Checking utility. You can find this by right-clicking on your drive in File Explorer, selecting Properties, and navigating to the Tools tab. Clicking Check will scan the drive for file system errors. For a more thorough scan, the Command Prompt tool called chkdsk is used. Running "chkdsk /f /r" tells Windows to fix errors and locate bad sectors, attempting to recover readable information from them. Note that the /r switch can take several hours to complete depending on the size of the drive.
In macOS, the primary tool is Disk Utility. By selecting a drive and clicking First Aid, the system checks the directory structure and the partition map. First Aid verifies that the file system is consistent and attempts to repair any discrepancies in the catalog file. If First Aid reports an error that it cannot repair, it is a strong indicator that the hardware is failing and the drive should be replaced immediately.
Deep Diagnostic Testing Methods
When built-in tools are inconclusive, a deep diagnostic test is required. These tests are generally divided into two categories: non-destructive and destructive tests.
Non-destructive tests read the existing data on the drive to check for read errors. They analyze the S.M.A.R.T. attributes to see if the drive is reporting internal failures. These are safe to run on a drive containing important data. A comprehensive non-destructive test will scan every single sector of the drive to ensure it can be read without timing out or returning an error.
Destructive tests, often called "Write/Read" tests, fill the entire drive with a specific pattern of data and then read it back to verify integrity. This process completely erases all data on the drive. This is primarily used when testing a brand-new drive to ensure it is not a "lemon" from the factory, or when refurbishing a used drive to ensure every block is functional. Never run a destructive test unless you have a full backup of your data.
Differences Between HDD and SSD Testing
It is a common misconception that the same test applies to all storage. Using a tool designed for a mechanical hard drive on an SSD can be counterproductive and even harmful.
HDDs are tested for mechanical failure. Tests often focus on the actuator arm's ability to seek specific tracks and the platter's ability to maintain a consistent rotation speed. Surface scans on HDDs look for physical scratches or "dead spots" on the magnetic coating.
SSDs do not have mechanical parts, so "seek time" is irrelevant. Instead, SSD testing focuses on voltage stability and controller health. A major difference is that SSDs use a process called TRIM. If a test tool ignores TRIM, it might report a sector as "bad" when it is actually just marked for deletion by the OS. Always use a tool that is explicitly SSD-aware to avoid false positives regarding drive health.
What to Do When a Test Fails
If a hard drive test returns a "Fail" or "Caution" status, the priority shifts from diagnosis to data preservation. A failing drive is an unpredictable device; the more you use it, the faster it may degrade.
- Stop all non-essential activity. Do not run further stress tests or defragmentation tools, as these put heavy load on the drive and can trigger a total crash.
- Perform an immediate backup. Copy your most critical files first (documents, photos) before attempting to back up large, replaceable folders like game installations or cached data.
- Avoid "fixing" the drive if you intend to keep the data. Tools that attempt to remap bad sectors write heavily to the disk, which can push a marginally stable drive over the edge.
- Replace the hardware. Once a drive shows physical bad sectors or a failing S.M.A.R.T. status, it cannot be software-repaired. The physical media is damaged.
Frequently Asked Questions
Can a hard drive test fix my drive?
No, a test only diagnoses the problem. While tools like chkdsk can fix logical file system errors, they cannot fix physical scratches on a platter or worn-out flash cells in an SSD. If the hardware is physically damaged, the only solution is replacement.
How long does a full disk scan take?
For a mechanical HDD, a full surface scan can take anywhere from 4 to 24 hours depending on the capacity (e.g., 2TB vs 10TB) and the read speed. SSDs are significantly faster, often completing a full check in a fraction of the time.
Does running a test cause more wear on the drive?
Read-only tests cause negligible wear. However, destructive write tests and intensive stress tests do consume a small amount of the drive's lifespan, particularly for SSDs which have limited write cycles. Use them sparingly.
What is a "bad sector" exactly?
A bad sector is a small cluster of storage that is no longer capable of holding data. On an HDD, this is usually caused by a physical flaw or a head crash. On an SSD, it occurs when a memory cell can no longer maintain its electrical charge.
Is it safe to run a test while the computer is in use?
You can run a test in the background, but it will significantly slow down your computer's performance. For the most accurate results and to prevent the OS from interfering with the scan, it is best to run tests from a bootable USB environment.