How to Scan Your Drive for Errors: CHKDSK, fsck & Disk Utility Guide in 2026

Your computer just froze. Files won’t open. Strange clicking sounds come from your hard drive. These are warning signs your storage drive might have errors.

Scanning your drive for errors checks the physical disk and file system for problems that could lead to data loss or system crashes. This process identifies bad sectors, fixes file system corruption, and helps prevent bigger problems down the road.

Let me show you exactly how to do this on Windows, Mac, and Linux, plus what those error messages actually mean.

What Are Drive Errors and Why Do They Happen?

Drive errors fall into two main categories: physical damage and logical corruption.

Physical errors occur when the actual hardware fails. Hard drives have spinning platters that can develop bad sectors. Even solid-state drives (SSDs) eventually wear out their memory cells. Drops, power surges, overheating, and age all cause physical damage.

Logical errors happen in the file system. This is the organizational structure that tells your computer where files are stored. Improper shutdowns, software bugs, malware, and failed updates can corrupt this system. Your files might still exist on the disk, but your computer can’t find them.

Common symptoms include:

  • Files that won’t open or are corrupted
  • Slow read/write speeds
  • Frequent crashes or freezes
  • Missing files or folders
  • Error messages about disk problems
  • Strange noises from hard drives

Catching errors early saves your data. Regular scans prevent minor issues from becoming catastrophic failures.

How to Scan for Errors on Windows 10 and 11

Windows includes a built-in tool called CHKDSK (Check Disk) that scans and repairs drive errors. You can access it two ways.

How to Scan Your Drive for Errors

Method 1: File Explorer (Easiest)

  1. Open File Explorer and click “This PC”
  2. Right-click your drive (usually C:)
  3. Select “Properties”
  4. Click the “Tools” tab
  5. Under “Error checking,” click “Check”
  6. Click “Scan drive”

Windows will scan the drive and show results. If it finds problems, you’ll get an option to fix them. Some repairs require a restart.

Method 2: Command Prompt (More Control)

The command line gives you more options for thorough scans.

  1. Type “cmd” in the Windows search box
  2. Right-click “Command Prompt” and select “Run as administrator”
  3. Type this command: chkdsk C: /f /r /x
  4. Press Enter

Let me break down what those switches do:

SwitchWhat It Does
/fFixes errors found on the disk
/rLocates bad sectors and recovers readable information
/xForces the volume to dismount first if necessary
/scanRuns an online scan (Windows 8 and later)

If you’re scanning your system drive (C:), Windows will ask to schedule the scan for the next restart. Type “Y” and reboot your computer. The scan runs before Windows loads.

How long does it take? A standard scan on a 500GB hard drive takes 30 minutes to 2 hours. Drives with many errors take longer. SSDs scan faster than traditional hard drives.

Understanding CHKDSK Results

CHKDSK shows several phases during the scan:

  • Phase 1: Verifies each file record segment
  • Phase 2: Checks directory structure
  • Phase 3: Examines security descriptors
  • Phase 4: Scans for bad clusters (with /r switch)
  • Phase 5: Scans free space for bad clusters

Error messages you might see:

Errors found. CHKDSK cannot continue in read-only mode.” This means you need to run CHKDSK with the /f switch to fix problems.

See also  How to Fix Spooling Printer Error: Complete Guide

Windows has made corrections to the file system.” Good news. Windows found and fixed errors automatically.

Bad sectors detected.” Your drive has physical damage. Back up your data immediately and consider replacing the drive.

Scanning Mac Drives with First Aid

macOS includes Disk Utility with a First Aid feature that checks and repairs drive errors.

Running First Aid

  1. Open Finder
  2. Go to Applications > Utilities > Disk Utility
  3. Select your drive from the left sidebar
  4. Click “First Aid” at the top
  5. Click “Run” in the confirmation dialog

First Aid checks the partition map, file system structure, and volume bitmap. It repairs permission issues and fixes catalog file problems.

You can run First Aid on your startup disk while macOS is running. For more thorough scans, restart in Recovery Mode:

  1. Restart your Mac
  2. Hold Command + R during startup
  3. Choose Disk Utility from the menu
  4. Run First Aid on your startup disk

Using fsck for Advanced Mac Users

The fsck (file system consistency check) command runs deeper scans from Single User Mode.

  1. Restart your Mac
  2. Hold Command + S during startup
  3. Type: /sbin/fsck -fy
  4. Press Enter

The -f flag forces checking even if the disk appears clean. The -y flag automatically repairs problems without asking.

If fsck finds errors, run it again until it reports no problems. Then type “reboot” to restart normally.

Linux Drive Error Checking

Linux users have several powerful tools for scanning drives. The choice depends on your file system type.

Using fsck on Linux

The fsck command works on most Linux file systems (ext2, ext3, ext4).

Important: Never run fsck on a mounted partition. You’ll corrupt your data.

  1. Boot from a live USB if checking your system drive
  2. Open a terminal
  3. Find your drive identifier: sudo fdisk -l
  4. Unmount the partition: sudo umount /dev/sda1 (replace sda1 with your partition)
  5. Run fsck: sudo fsck -y /dev/sda1

The -y flag answers “yes” to all repair prompts. Without it, fsck asks before fixing each problem.

SMART Monitoring with smartctl

SMART (Self-Monitoring, Analysis and Reporting Technology) tracks drive health from the hardware level. This works on both hard drives and SSDs.

Install smartmontools:

  • Ubuntu/Debian: sudo apt install smartmontools
  • Fedora: sudo dnf install smartmontools
  • Arch: sudo pacman -S smartmontools

Check drive health:

sudo smartctl -a /dev/sda

Look for these key values:

AttributeWhat to Check
Reallocated_Sector_CtShould be 0 or very low
Current_Pending_SectorShould be 0
Offline_UncorrectableShould be 0
UDMA_CRC_Error_CountHigh values indicate cable problems
Temperature_CelsiusShould stay under 50°C for HDDs

Non-zero values in the first three attributes indicate physical damage. Back up your data and replace the drive soon.

The smartctl tool can also run short and long self-tests:

  • Short test: sudo smartctl -t short /dev/sda (takes 1-2 minutes)
  • Long test: sudo smartctl -t long /dev/sda (takes 1-2 hours)

Check results with: sudo smartctl -l selftest /dev/sda

Special Considerations for SSDs

SSDs require different scanning approaches than traditional hard drives. They have no moving parts, so the types of failures differ.

Most SSD manufacturers provide their own diagnostic tools:

  • Samsung Magician for Samsung SSDs
  • Intel SSD Toolbox for Intel drives
  • Crucial Storage Executive for Crucial drives
  • Western Digital Dashboard for WD drives

These tools show wear level, remaining lifespan, and run manufacturer-specific tests. Download them from the manufacturer’s website.

SSDs wear out as you write data to them. The tools show “percent life remaining” or “wear leveling count.” When this drops below 10%, plan to replace the drive.

Should you run CHKDSK on SSDs? Yes, but skip the /r switch. The /r flag scans for physical bad sectors, which takes hours and provides little value on SSDs. Use: chkdsk C: /f instead.

TRIM helps SSD performance and longevity. On Windows, verify TRIM is enabled:

fsutil behavior query DisableDeleteNotify

If it returns “DisableDeleteNotify = 0” then TRIM is working. On Linux, add “discard” to your fstab mount options.

When Scanning Finds Unfixable Errors

Sometimes the scanning tools report errors they can’t fix. This usually means physical drive damage has progressed beyond repair.

Warning signs you need a new drive:

  • CHKDSK or fsck repeatedly finds the same errors
  • Bad sector count keeps increasing
  • Drive makes clicking or grinding sounds
  • System won’t boot even after repairs
  • Files continue to corrupt after scanning
See also  How to Open TMP Files on Windows, Mac & Linux (2026 Guide)

Act quickly when you see these signs. Failing drives often die suddenly.

Emergency Data Recovery Steps

If your drive is failing but still accessible:

  1. Stop using the drive immediately. Every read/write cycle increases damage risk.
  2. Create a disk image. This copies all data bit-by-bit to another drive. Use:
    • ddrescue (Linux): sudo ddrescue -d -r3 /dev/sda /dev/sdb logfile
    • Clonezilla (Windows/Mac/Linux): Free bootable cloning tool
    • Macrium Reflect Free (Windows): Disk imaging software
  3. Work from the image, not the failing drive. You can attempt recovery from the image without further damaging the original.
  4. Use data recovery software on the image:
    • Recuva (Windows) for deleted files
    • PhotoRec (cross-platform) for photos and documents
    • TestDisk (cross-platform) for partition recovery

Professional data recovery services cost $500-$3000 but can recover data from severely damaged drives. Companies like DriveSavers and Ontrack operate cleanroom facilities for physical repairs.

For critical business data, professional recovery is worth the cost. For personal files, weigh the value of the data against the expense.

Creating a Preventive Maintenance Schedule

Don’t wait for problems to appear. Regular scanning catches issues early.

Recommended scanning frequency:

Drive TypeFrequencyMethod
System drive (daily use)MonthlyQuick scan
System drive (heavy use)WeeklyQuick scan
Data storage drivesEvery 3 monthsFull scan with surface test
External backup drivesBefore and after major backupsQuick scan
SSDsEvery 6 monthsManufacturer tool + SMART check

Set calendar reminders so you don’t forget. Many scanning tools let you schedule automatic scans during off-hours.

Other Preventive Measures

Scanning is just one part of drive maintenance:

Keep drives cool. Heat kills hard drives. Ensure proper airflow in your computer case. Clean dust from fans every 6 months. Hard drives should stay under 45°C during normal use.

Use a UPS (uninterruptible power supply). Power outages and surges damage drives and corrupt data. A UPS provides clean, steady power and time to shut down properly during outages.

Update firmware. SSD manufacturers release firmware updates that fix bugs and improve reliability. Check quarterly for updates.

Monitor SMART data monthly. Don’t wait for errors. Watch SMART attributes trend over time. Gradual increases in reallocated sectors warn of impending failure.

Back up your data. No amount of scanning prevents all failures. Follow the 3-2-1 rule: 3 copies of data, on 2 different media types, with 1 copy offsite. Cloud backup services like Backblaze or external drives both work.

According to research from Backblaze’s annual drive stats, hard drive failure rates average 1.5% annually. That means roughly 1 in 70 drives fail each year. Your drives will fail eventually. Preparation matters more than scanning.

Automating Drive Scans

Manual scanning works, but automation ensures consistency.

Windows Task Scheduler

Create scheduled CHKDSK scans:

  1. Open Task Scheduler (search for it in Start menu)
  2. Click “Create Basic Task”
  3. Name it “Monthly Drive Scan”
  4. Set trigger to monthly
  5. Choose “Start a program”
  6. Program: cmd.exe
  7. Arguments: /c echo Y|chkdsk C: /scan
  8. Check “Run with highest privileges”

This runs a quick scan monthly. The echo command automatically answers “yes” to schedule boot-time scans if needed.

Mac Scheduled Scans

Create a launchd script for automatic scans:

  1. Open Terminal
  2. Create a plist file: nano ~/Library/LaunchAgents/com.diskcheck.plist
  3. Add this content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.diskcheck</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/sbin/diskutil</string>
        <string>verifyVolume</string>
        <string>/</string>
    </array>
    <key>StartCalendarInterval</key>
    <dict>
        <key>Day</key>
        <integer>1</integer>
    </dict>
</dict>
</plist>
  1. Save and load it: launchctl load ~/Library/LaunchAgents/com.diskcheck.plist

This runs a verification scan on the first of each month.

Linux Cron Jobs

Edit your crontab:

sudo crontab -e

Add this line for monthly SMART checks:

0 2 1 * * /usr/sbin/smartctl -t long /dev/sda

This runs a long SMART self-test at 2 AM on the first of every month.

For detailed guidance on Linux drive maintenance, the Ubuntu community documentation provides excellent resources.

Understanding Error Codes and Messages

Different scanning tools report errors differently. Here’s what common messages mean:

“Unreadable sectors detected” – Physical damage to the disk surface. The drive can’t read data from these spots. Minor if only a few sectors, serious if hundreds appear.

“File system structure is corrupt” – The organization system is damaged. Often fixable with CHKDSK or fsck. Usually caused by improper shutdowns.

“Cross-linked files” – Two files claim to use the same disk space. File system corruption. Scanning tools can separate them, though one file may be damaged.

See also  How to Create a DeFi Portfolio: A Practical Step-by-Step Guide

“Orphaned files” – Files exist on disk but aren’t linked to any directory. Usually harmless fragments. Scanning tools move them to a lost+found or found.000 folder.

“Lost clusters” – Allocated disk space that doesn’t belong to any file. Creates wasted space. Scanning tools free these for reuse.

“Insufficient rights” or “Access denied”** – You need administrator/root privileges. Run the scanning tool as admin.

“Cannot lock drive” – Programs are using the drive. Close applications or scan during restart.

“Drive not found” – Connection problem. Check cables for hard drives, reconnect external drives, or the drive may have failed completely.

When you see any error mentioning “bad sectors,” “reallocated sectors,” or “pending sectors,” your drive has physical damage. Start backing up immediately.

Troubleshooting Common Scanning Problems

Scan Takes Forever

A full surface scan on a large drive takes hours. This is normal for hard drives over 1TB or drives with many errors.

Speed it up:

  • Close all programs before scanning
  • Disconnect from the internet to prevent background updates
  • Run during overnight hours
  • For subsequent scans, skip the /r flag if previous scans found no bad sectors

Scan Keeps Finding the Same Errors

If multiple scans report identical errors that won’t fix, the drive has permanent damage. Sometimes file system corruption is too severe for automatic repair.

Try these recovery options in order:

  1. Boot from a USB recovery drive and scan from there
  2. Use a third-party repair tool like SpinRite (paid) or Victoria (free for personal use)
  3. Copy important files to another drive and reformat the problem drive
  4. If reformatting doesn’t help, replace the drive

Computer Crashes During Scanning

This usually indicates serious hardware problems beyond just the drive. Possible causes:

  • Overheating during the intensive scan process
  • Failing power supply can’t handle the sustained load
  • RAM errors
  • Motherboard issues

Check system temperatures during the scan. Run a memory test with Windows Memory Diagnostic or memtest86. If the drive is external, try a different USB port or cable.

Scan Says Drive Is Fine But Problems Continue

Scanning tools check different things. A drive can pass CHKDSK but fail SMART tests, or vice versa.

Run both types of scans:

  • File system scan (CHKDSK, fsck, First Aid)
  • Hardware scan (SMART monitoring, manufacturer tools)

Also consider that problems might come from other components:

  • RAM errors can corrupt data before it reaches the drive
  • Malware can damage files
  • Software bugs can cause application crashes unrelated to the drive

Conclusion

Scanning your drive for errors is essential maintenance that prevents data loss and system failures. Windows users should run CHKDSK monthly with the “chkdsk C: /f /r” command. Mac users can use Disk Utility’s First Aid feature. Linux users have fsck and SMART monitoring tools.

Regular scans catch problems early when they’re still fixable. Watch for warning signs like slow performance, corrupted files, or strange noises. When scanning finds physical damage or unfixable errors, back up your data immediately and prepare to replace the drive.

Combine scanning with other preventive measures: keep drives cool, use a UPS, maintain backups, and monitor SMART data. Hard drives fail at predictable rates, so preparation matters more than any scanning tool.

Don’t wait for a crisis. Schedule your first drive scan today and set a reminder for monthly checks. Your data depends on it.

Frequently Asked Questions

How often should I scan my hard drive for errors?

Scan your main system drive monthly for regular use, or weekly if you use your computer heavily for work or gaming. Scan data storage drives and external drives every three months. SSDs need less frequent scanning, every six months is sufficient. Always scan external backup drives before and after major backup operations.

Can scanning a drive fix all errors?

No, scanning can only fix logical file system errors and mark bad sectors as unusable. Physical damage to the drive surface cannot be repaired by software. If scanning repeatedly finds the same bad sectors or the count of bad sectors keeps increasing, the drive has permanent physical damage and should be replaced.

Will scanning delete my files?

Normal scanning does not delete files. However, if the file system is severely corrupted, scanning tools might need to remove damaged file fragments or cross-linked files that are beyond repair. Always maintain current backups before running repairs on drives with important data. The scanning process itself reads data and tests the drive structure without intentionally removing anything.

Is it safe to scan an SSD like a regular hard drive?

Yes, but skip the surface scan. Use “chkdsk C: /f” without the /r flag on SSDs. The /r switch scans every sector for physical damage, which takes hours and provides minimal benefit on solid-state drives. SSDs fail differently than hard drives, so use manufacturer diagnostic tools and SMART monitoring instead of intensive surface scans.

What should I do if the scan finds bad sectors?

Back up your important data immediately to another drive. A few bad sectors are normal over a drive’s lifetime, but increasing numbers indicate progressive failure. Monitor the bad sector count with SMART tools. If the count keeps growing or exceeds 50 sectors, replace the drive soon. Bad sectors represent physical damage that will only worsen with continued use.

MK Usmaan