Fix Windows that has disk that will not defrag

We'll run Defragment and Optimize as Administrator, use Optimize for SSDs, and rule out antivirus and disk errors—or tell you when to call a pro.

Category
Troubleshooting · Home maintenance
Time
10–30 min
Last reviewed
What you'll need
  • Administrator account

Step-by-step diagnostic

Step 1 of 5
Show full guide

Steps

Goal: Run Defragment and Optimize as Administrator. Use Optimize for SSDs, Defrag for HDDs.

  • Check drive type. For SSD, use Optimize. For HDD, run Defrag as Administrator.
  • Good: Process completes. You are done.
  • Bad: Disable antivirus, run chkdsk, retry.

Run Optimize

Goal: Optimize the drive (TRIM for SSD, Defrag for HDD).

  • Defragment and Optimize Drives, Run as administrator. Select drive, Optimize.
  • Good: Process completes.
  • Bad: Check free space and antivirus.

Check drive type

Goal: Confirm HDD vs SSD before defragging.

  • Open Defragment and Optimize Drives. Media type: Solid state drive = Optimize only. Hard drive = Defrag OK.
  • Good: You know the type. Run the correct action.
  • Bad: Default to Optimize—it is safe for both.

When to get help

Call a technician if:

  • Defrag consistently fails after chkdsk.
  • The drive makes unusual noise.
  • You see disk errors.

Verification

  • Defragment and Optimize Drives shows “OK” or low fragmentation.
  • No errors during the process.
  • For SSDs, Optimize (TRIM) completed.

Escalation ladder

Work from the device outward. Stop when the problem is fixed.

  1. Run as Administrator Defragment and Optimize Drives, Run as administrator.
  2. Check space and antivirus 15% free; disable antivirus temporarily.
  3. chkdsk chkdsk C: /f; restart; retry defrag.
  4. Call a pro Consistent failures; drive noise.

What to capture if you need help

Before calling support or posting for help, have these ready. It speeds everything up.

  • Drive letter and type (HDD/SSD)
  • Exact error message
  • Free space percentage
  • Steps already tried

Is the drive an SSD?

SSDs use Optimize, not Defrag.

Open Defragment and Optimize Drives. Check Media type. Good: SSD—click Optimize (TRIM). Bad: HDD—run Defrag as Administrator.

You can change your answer later.

Run Optimize

Select the drive, Optimize. For SSDs this runs TRIM. No defrag needed.

Did defrag run?

Run as Administrator; disable antivirus.

Right-click Defragment and Optimize Drives, Run as administrator. Select drive, Analyze, Optimize. Good: Process completes. Bad: Check free space, run chkdsk.

You can change your answer later.

Run chkdsk

chkdsk C: /f. Restart if needed. Retry defrag. If still failing, drive may be damaged.

Defrag or Optimize complete

The drive is optimized. For HDDs, fragmentation is reduced. For SSDs, TRIM ran.

Reviewed by Blackbox Atlas

Frequently asked questions

Why would defrag not run on Windows?
Antivirus locking files, low disk space, drive errors, or the drive is an SSD (use Optimize, not Defrag). Run as Administrator and disable antivirus.
Should I defrag an SSD?
No. SSDs use Optimize (TRIM), not defrag. Defragging an SSD wears it out. Windows runs Optimize automatically on a schedule.
When should I run defrag manually?
Rarely. Windows schedules it. If the PC is slow and the drive is HDD, you can run it manually. Check the drive type first.

Rate this guide

Was this helpful?

Thanks for your feedback.

Continue to