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.
What you'll need
- Administrator account
Step-by-step diagnostic
Quick triage — pick your path
Get started
Choose the option that matches what you see. You can jump straight to that section.
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.
- Run as Administrator Defragment and Optimize Drives, Run as administrator.
- Check space and antivirus 15% free; disable antivirus temporarily.
- chkdsk chkdsk C: /f; restart; retry defrag.
- 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.
You can change your answer later.
Run Optimize
Did defrag run?
Run as Administrator; disable antivirus.
You can change your answer later.
Run chkdsk
Defrag or Optimize complete
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.