Hardware

How to Check Hard Drive Health on Windows and Mac

To check hard drive health on Windows, run Get-PhysicalDisk | Format-Table FriendlyName, HealthStatus, OperationalStatus in PowerShell for a quick verdict, then chkdsk C: /scan for file system errors. On a Mac, run First Aid in Disk Utility, and on either system smartctl -H reads the drive's own pass/fail health flag.

No single check proves a drive is fine. The tools below answer different questions: does the operating system consider the disk healthy, is the file system consistent, and does the drive itself report trouble. Run more than one, and keep a backup either way.

Check hard drive health on Windows with PowerShell

This works in a normal PowerShell window:

Get-PhysicalDisk | Format-Table FriendlyName, MediaType, HealthStatus, OperationalStatus

Example output:

FriendlyName    MediaType HealthStatus OperationalStatus
------------    --------- ------------ -----------------
ST2000DM008-2UB HDD       Healthy      OK

Microsoft's documentation for the -HealthStatus parameter lists four possible values: Healthy, Warning, Unhealthy and Unknown. Anything other than Healthy deserves a backup before you do anything else. Unknown is not a clean bill of health either, so check the drive another way.

This is a summary, not a diagnosis. It tells you whether Windows is worried, not which part of the drive is failing. For the detailed counters on an SSD, see How to check SSD health, which covers Get-StorageReliabilityCounter.

Scan the file system with chkdsk

Open Command Prompt or PowerShell as administrator. Microsoft states that membership in the local Administrators group is the minimum required. Then run a read-only online scan:

chkdsk C: /scan

Microsoft describes /scan as an NTFS-only online scan of the volume. Without any parameters, chkdsk "displays only the status of the volume and doesn't fix any errors." That makes it safe to run as a first look.

To also look for physical problems, use /r:

chkdsk D: /r

According to Microsoft, /r "locates bad sectors and recovers readable information", includes everything /f does, and needs the disk to be locked. If Windows cannot lock it, you will see this exact prompt:

Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)

Answer Y and restart if you want the check to run on the system drive. Expect a long wait on a large hard disk. Microsoft notes that on an HDD every sector is read and the head must physically move, so /r on a large drive "would take a considerable amount of time." Interrupting it is not recommended, though Microsoft says it should not leave the volume more corrupt than it was.

chkdsk sets an exit code you can read in a script: 0 means no errors were found, 1 means errors were found and fixed, 2 means cleanup was performed or skipped because /f was not specified, and 3 means the disk could not be checked or errors could not be fixed.

Two cautions. A scan without /f on an active partition "might report spurious errors because it can't lock the drive," so a few reported errors on the live system drive do not prove corruption. And Microsoft warns that repeated full-surface scans with /r on an SSD could slightly increase wear, which is why a full /r pass is mainly a hard disk habit.

Check hard drive health on a Mac with Disk Utility

Apple's First Aid checks and repairs file system structures. It is not a hardware test, and Apple says plainly that "Disk Utility can't detect or repair all problems that a disk may have." The steps, from Apple's guide:

  1. Open Disk Utility from the Applications folder, or search for it.
  2. Choose View → Show All Devices.
  3. Select a volume in the sidebar, click First Aid, then Run, and follow the onscreen instructions.
  4. Repeat for each volume, then each container, then the storage device itself.

To check the startup disk, Apple says to restart into macOS Recovery and open Disk Utility from there. If you check Macintosh HD, check Macintosh HD - Data too.

If Disk Utility warns that a disk is about to fail, Apple's advice is to back up your data and replace the disk, since it cannot be repaired. If First Aid reports errors it could not fix, Apple suggests trying again, and if that fails, backing up what you can, reformatting, reinstalling macOS and restoring.

From Terminal, diskutil verifyVolume does a similar job for one volume. The manual describes it as verifying "the file system data structures of a volume," and you need ownership of the disk:

diskutil list
diskutil verifyVolume /Volumes/Backup

Here Backup is an example volume name. diskutil list shows yours.

Read the drive's own SMART data with smartctl

The operating system tools above check the file system and a summary flag. SMART data comes from the drive itself, and smartctl from smartmontools is the standard way to read it. Two limits apply to what I could verify: the smartctl manual I checked is generated for the Linux version, and Apple's Disk Utility documentation does not describe a SMART status display. So on Windows and macOS, install smartmontools and use smartctl --scan to list the device names it recognises, rather than guessing them.

smartctl --scan
smartctl -H /dev/sda

On Linux, the manual gives /dev/sd[a-z] for SATA and SCSI drives. Run it with sudo or an administrator prompt. The manual says -H "prints the health status of the device," and that a device reporting failing health "has already failed" or is about to. Example output:

SMART overall-health self-assessment test result: PASSED

A PASSED result is the drive saying it has not crossed its own failure threshold. It is not a promise. Drives can fail with no SMART warning, so treat it as one data point.

Run a self-test

The drive can test itself:

smartctl -t short /dev/sda
smartctl -t long /dev/sda

Per the manual, the short test is "usually under ten minutes" and can run during normal use. The extended test takes "tens of minutes to several hours." When the time is up, read the results:

smartctl -l selftest /dev/sda

The drive keeps a self-test log, and "if any errors were detected, the Logical Block Address (LBA) of the first error is printed." A read failure at a specific LBA is a stronger warning than a general health flag, because it means a real sector could not be read.

Read the attribute table

smartctl -A /dev/sda

This prints the vendor-specific attributes. Two points from the manual help avoid false alarms. First, the Pre-fail type label does not mean what it sounds like: "the fact that an Attribute is of type 'Pre-fail' does not mean that your disk is about to fail!" Second, the column that matters is WHEN_FAILED. If an attribute's current value is at or below its threshold, that column shows FAILING_NOW. A - there means the attribute has not failed.

In scripts, smartctl's exit status is a bitmask. Bit 3, which is the value 8, is set when the SMART status check returned "DISK FAILING."

What to do with the results

  • Health is Warning, Unhealthy, or smartctl reports FAILING_NOW: copy your files to another drive now. Do not run a long chkdsk /r first, because a long scan stresses a failing drive.
  • chkdsk or First Aid found and fixed errors: this is usually file system damage, often from a sudden power loss or unplugging a drive without ejecting it. Run the check again. If the same errors return, suspect the drive.
  • Self-test reports a read failure: back up and replace the drive.
  • Everything passes but the drive freezes or clicks: trust the symptoms. SMART does not catch everything. Back up and test the cable and port, or use another computer.

The drive is not showing up at all? That is a different problem, covered in External hard drive not showing up. If the question is capacity rather than health, see How to check hard drive space on Windows. For help choosing a replacement, SSD vs HDD vs NVMe compares the drive types.

When you copy files off a doubtful drive, confirm the copies are intact: larely's checksum tool computes SHA-256 in the browser without uploading the file.

Frequently asked questions

Does chkdsk tell me if my hard drive is dying?
Only partly. chkdsk checks the file system of a volume for logical and physical errors, and with /r it looks for bad sectors. It does not read the drive's own SMART health data. A clean chkdsk result means the file system and the sectors it read were fine at that moment, not that the drive is healthy overall. Pair it with a SMART check such as smartctl -H.
What does Get-PhysicalDisk HealthStatus 'Warning' mean?
HealthStatus is one of Healthy, Warning, Unhealthy or Unknown. Microsoft's documentation lists the values but does not define each one in detail. Treat Warning or Unhealthy as a prompt to back up the drive immediately, then look at SMART data with smartctl to find out why.
Is it safe to run a SMART self-test on a drive that holds data?
The smartctl manual describes the short self-test as one that can run while the drive is in normal use, and it usually finishes in under ten minutes. The extended test takes tens of minutes to several hours. Either way, back up first if the drive is already showing symptoms, because you are testing a drive you do not trust.
How often should I check hard drive health?
There is no official schedule. Checking every few months, and whenever a drive starts making unusual noises, freezing or throwing read errors, is a practical habit. Current backups matter more than the check interval, because SMART data cannot predict every failure.

Sources