Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Scan Hard Drive: How to Check for Errors and Bad Sectors

· 7 min read · Home Tech

In this article
  1. Why Scan a Hard Drive?
  2. How Disk Scanning Works
  3. How to Scan in Windows
  4. How to Scan in macOS and Linux
  5. Third-Party Tools: When and Why to Use Them
  6. Common Problems and Misconceptions
  7. Costs and Time Estimates
  8. Safety and Best Practices
  9. Frequently Asked Questions

Yes, you can and should scan your hard drive to detect errors, bad sectors, and potential hardware failures. Scanning helps identify issues before data loss occurs and can often recover data from minor surface errors.

Why Scan a Hard Drive?

Hard drives are mechanical devices with moving parts and are susceptible to physical degradation over time. Even solid-state drives (SSDs), which lack moving parts, can experience cell wear, controller errors, or firmware corruption. Regular scanning helps catch problems early—before they lead to sudden failure. The most common reasons to scan include noticing slow performance, unusual noises (like clicking or grinding), files becoming corrupted or inaccessible, or receiving error messages such as "Disk read error," "Sector not found," or "The file or directory is corrupted and unreadable." Operating systems include built-in tools for this purpose, but third-party utilities offer deeper diagnostics. Importantly, scanning is not the same as defragmenting: defragmentation reorganizes data for efficiency, while scanning checks for physical or logical damage.

How Disk Scanning Works

Scanning a hard drive checks both logical and physical integrity. Logical scans examine the file system structure—directories, FAT (File Allocation Table), NTFS metadata, or journal logs—to detect inconsistencies. Physical scans read every sector on the drive to identify bad sectors (blocks that cannot reliably store data) and remap them if possible.

  • Logical scanning verifies checksums in metadata structures and ensures pointers between files and their physical locations are correct. For example, NTFS uses the Master File Table (MFT); a logical scan checks that each entry matches its actual data and that no orphaned clusters exist.
  • Physical scanning involves reading every sector (typically 512 bytes or 4,096 bytes for advanced format drives) and writing test patterns to confirmread/write reliability. If a sector fails repeatedly, the drive’s firmware may mark it as bad and redirect future writes to a spare sector pool.

Modern drives support S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology), which logs internal metrics like reallocated sector count, pending sectors, and spin retry count. Scanning tools often query S.M.A.R.T. data to assess health, but note that S.M.A.R.T. predicts only about 50–60% of failures—so active scanning remains essential.

How to Scan in Windows

Windows provides two primary built-in utilities: chkdsk for file system errors and chkdsk /r for physical sector issues. Open Command Prompt as Administrator, then run:

  1. chkdsk C: /f — fixes logical errors on drive C: (you’ll be prompted to schedule on next reboot if the drive is in use).
  2. chkdsk C: /r — locates bad sectors and recovers readable information (this also includes /f behavior).

The /r flag is the critical one for physical scanning: it forces the system to scan the entire surface, which can take hours for large drives. For example, a 2 TB drive may require 4–8 hours depending on speed and fragmentation. The utility displays progress like “Checking file system…” followed by “Scanning directory entries…” and finally “Checking for bad sectors.”

Windows also includes the Windows Storage Spaces and Resource Monitor tools, but chkdsk remains the most direct method for end users. Note: chkdsk cannot run on a drive with BitLocker encryption enabled unless you first suspend protection or unlock the drive.

How to Scan in macOS and Linux

macOS uses Disk Utility for scanning. Open it from Applications > Utilities, select the drive (not just the volume), then click First Aid and wait for completion. This runs fsck_hfs or fsck_apfs under the hood. For deeper physical checks, use Terminal: diskutil verifyDisk /dev/diskX (replace X with the disk number) or diskutil verifyVolume /dev/diskXsY for a specific partition.

Linux offers robust command-line tools. The fsck (file system check) command is standard: sudo fsck -f /dev/sdX1 forces a check on the specified partition. For bad sector detection, badblocks is used separately: sudo badblocks -v -s /dev/sdX scans and lists bad sectors. To integrate with fsck, pass the output: sudo fsck -c /dev/sdX1 (the -c flag runs badblocks first). Note: Always unmount the drive first with sudo umount /dev/sdX1 to avoid corruption.

Third-Party Tools: When and Why to Use Them

While built-in tools handle most cases, third-party utilities offer advantages for advanced users or enterprise environments: deeper S.M.A.R.T. analysis, surface mapping visualizations, low-level firmware controls, and support for non-standard drives (e.g., RAID arrays or NVMe SSDs). Popular options include:

  • CrystalDiskInfo (Windows/macOS): provides detailed S.M.A.R.T. status, temperature, and reallocation events; highlights imminent failures with color-coded warnings.
  • HDDScan (Windows): allows custom SMART attribute testing, surface scans with visual heat maps, and firmware updates for some drives.
  • SeaTools (SeaGate/WD): free diagnostic suite from drive manufacturers; includes long and short self-tests, with options to repair via firmware resets.
  • GSmartControl (Linux/macOS): GUI frontend for smartctl, enabling comprehensive SMART reporting and stress tests.

Choose tools that match your drive type—NVMe drives require different commands than SATA or USB drives. Also, avoid tools that claim to “repair” bad sectors permanently; physical bad sectors cannot be fixed, only isolated. Any utility promising sector repair via writing over data is either misleading or performing a destructive write test (which erases everything).

Common Problems and Misconceptions

Several myths persist about disk scanning. First, scanning does not “harm” modern drives: unlike older magnetic drives, today’s drives are designed for frequent diagnostics, and scanning uses standard read/write operations within safe limits. Second, a clean scan does not guarantee future reliability—drives can fail suddenly without warning, which is why backups remain essential. Third, SSDs do not have “bad sectors” in the same way as HDDs; instead, they fail at the cell level, and badblocks may report errors as “unmapped blocks” or “write failures” rather than physical sector locations.

Another frequent issue is running chkdsk /r on a drive with existing critical errors: if the drive is failing rapidly, scanning can exacerbate wear or cause the drive to stall entirely. In such cases, prioritize data recovery (using tools like Recuva or TestDisk) before attempting repairs. Also, avoid scanning drives with physical damage (e.g., after a drop or water exposure)—spinning a damaged HDD further may cause irreversible harm.

Costs and Time Estimates

Most built-in tools are free and included with the OS. Third-party tools range from free (CrystalDiskInfo, HDDScan) to enterprise licenses ($50–$200/year for packages like Acronis Disk Director or Paragon Hard Disk Manager). Time required depends on drive size, speed, and scan depth:

  • Standard chkdsk /f (logical only): 5–30 minutes for 500 GB.
  • chkdsk /r (surface scan): 2–6 hours for 1 TB HDD; up to 12+ hours for 8 TB+ drives.
  • SSD surface scans: faster (1–3 hours for 1 TB) due to no moving parts, but wear-leveling algorithms may slow reads during testing.
  • Third-party tools: similar timeframes, though some add overhead for visualization or reporting.

Always run scans during low-usage periods (e.g., overnight) and ensure stable power—disruptions during a surface scan can leave the file system inconsistent or cause data loss.

Safety and Best Practices

Before scanning:

  • Back up critical data first—especially before running /r or third-party surface tests.
  • Ensure the drive is not in use (close all programs, reboot if necessary).
  • Check S.M.A.R.T. status first with CrystalDiskInfo or smartctl -a to assess overall health.
  • For SSDs, use chkdsk /f (not /r) unless you suspect physical corruption; surface scans are unnecessary and add write cycles.

During scanning:

  • Do not interrupt the process—power loss or rebooting mid-scan can corrupt the file system.
  • Monitor progress; sudden stalls often indicate hardware issues.
  • Log output (e.g., chkdsk C: /r > scanlog.txt) for troubleshooting.

After scanning:

  • Review S.M.A.R.T. attributes again—especially reallocated sector count and pending sector count.
  • If errors persist or S.M.A.R.T. shows “Caution” or “Bad,” replace the drive immediately.
  • Use the chkdsk log to identify recurring problem areas (e.g., specific clusters failing repeatedly).

Frequently Asked Questions

How often should I scan my hard drive? For typical users, run a logical scan (chkdsk /f) every 3–6 months and a full surface scan (/r) once a year—or immediately if you notice performance issues or errors. Businesses or users handling critical data may scan monthly.

Can scanning fix bad sectors? No—scanning can only identify and mark bad sectors as unusable. The drive’s firmware then remaps them to spare sectors, but the original sectors remain faulty. If more than a few sectors are reallocated, the drive is degrading and should be replaced.

Why does my scan keep stalling or restarting? Stalls often indicate hardware failure, unstable power, or loose cables. Check SATA/USB connections, try a different port or cable, and verify S.M.A.R.T. status. If the drive is old (>3–5 years), replacement is likely needed.

Does scanning improve performance? Only indirectly—by fixing file system inconsistencies (e.g., orphaned files or broken links), it can restore normal access speeds. Surface scans do not speed up drives; defragmentation (on HDDs only) does that, and is unnecessary for SSDs.

Is a quick scan enough, or do I need a full surface scan? Quick scans check file system metadata only and miss physical errors. Use quick scans for routine checks, but run full surface scans when troubleshooting errors, after drive drops, or before long-term archival storage.

Can I scan a boot drive without rebooting? On Windows, you cannot scan the system drive in use—you must schedule the scan for next reboot. On Linux/macOS, you can scan mounted volumes in read-only mode (fsck -n), but repairs require unmounting.