Fragmentation is mechanical: on a spinning hard drive, a file split into pieces scattered across the platter forces the read head to physically travel between them. One seek takes milliseconds; thousands of seeks across a fragmented file add up to the stuttering, the slow boots, the application hangs. Defragmentation rearranges the pieces into contiguous runs so the head reads straight through. Simple concept, real payoff — but only on the right kind of drive.
Windows 10’s built-in Optimize Drives tool handles this correctly, including knowing the difference between HDDs and SSDs. The mistakes people make are defragging SSDs with third-party tools that don’t know better, disabling the automatic schedule, or expecting defrag to fix a failing drive. Here’s how to do it right.
Why this happens
- Normal file churn fragments HDDs: Creating, deleting, and resizing files over months scatters data across the platter.
- Nearly full drives fragment faster: With little free space, Windows can’t place files contiguously and splits them wherever they fit.
- Large files suffer most: Video files, disk images, and game installs split into hundreds of fragments show the biggest slowdowns.
- SSDs don’t benefit: Flash memory reads any location at the same speed — there is no head to travel, so arrangement is irrelevant.
- The automatic schedule gets disabled: Tune-up utilities and some guides wrongly recommend turning off scheduled optimization.
- Failing drives mimic fragmentation: Bad sectors cause retry delays that feel exactly like fragmentation but won’t respond to defrag.
- External HDDs are neglected: The schedule often covers only the system drive, leaving external spinning drives fragmented for years.
- Interrupted optimizations: Defrag passes killed by shutdowns or sleep leave the job half-done repeatedly.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Check fragmentation before doing anything
Open Optimize Drives: search Start for Defragment and Optimize Drives. Select each drive and click Analyze (HDDs only — the button is informational for SSDs). Note the fragmentation percentage. Under 10%: defragging now gains you nothing; check the schedule instead. Over 10-15% on a mechanical drive: worth a pass. This measurement takes a minute and prevents the classic mistake of defragging a drive that doesn’t need it.
- Search Start for Defragment and Optimize Drives and open it.
- Select each mechanical drive and click Analyze.
- Note the fragmentation percentage per drive.
- Only proceed with drives showing meaningful fragmentation (10%+).
Fix 2: Verify the drive type is actually an HDD
In the Optimize Drives window, check the Media type column. If it says Solid state drive, Windows will run TRIM/retrim instead of defrag when you click Optimize — which is correct and all you need. If a known SSD shows as “Hard disk drive,” the misidentification means Windows might defrag it — fix this with winsat formal in an elevated prompt or a chipset driver update. Never run a third-party defragger on an SSD; the built-in tool is the safe one because it knows the difference.
- Check the Media type column in Optimize Drives.
- For SSDs, clicking Optimize runs TRIM — safe and correct.
- If an SSD is misidentified as HDD, run
winsat formalelevated. - Update chipset drivers if misidentification persists.
Fix 3: Run the manual optimization
Select the fragmented HDD and click Optimize. Let it run uninterrupted — plug in the laptop, disable sleep (Settings → System → Power → set sleep to Never temporarily), and walk away. Don’t use the machine heavily during the pass; every new write creates work for the optimizer. When it finishes, re-analyze to confirm fragmentation dropped near zero. One clean pass is usually all a drive needs; repeated back-to-back passes gain nothing.
- Select the fragmented drive and click Optimize.
- Plug in the laptop and temporarily disable sleep.
- Leave the machine alone until the pass completes.
- Re-analyze to confirm fragmentation is near zero.
Fix 4: Enable and configure the automatic schedule
In Optimize Drives, click Change settings under Scheduled optimization. Check Run on a schedule, set frequency to Monthly (weekly for heavy-churn drives), and click Choose to include all HDDs — including externals that are usually connected. This is the actual long-term fix: a monthly unattended pass prevents fragmentation from ever accumulating to noticeable levels again. If the schedule was off, that alone explains why the drive got this bad.
- In Optimize Drives, click Change settings.
- Check Run on a schedule; set frequency to Monthly.
- Click Choose and include all mechanical drives.
- Click OK to activate the schedule.
Fix 5: Free space so defrag can work properly
Defrag needs elbow room — it shuffles file pieces into contiguous free space, and a drive above 90% full gives it nowhere to work. Aim for at least 15% free. Run Disk Cleanup, empty the Recycle Bin, move large archives to external storage, and uninstall what you don’t need. If you can’t free 15%, defrag will still help but can’t finish the job — and a perpetually 95%-full drive will re-fragment within weeks regardless. Consider scheduling Disk Cleanup so space stays available automatically.
- Check free space on the drive (aim for 15%+ free).
- Run Disk Cleanup including system files.
- Move large media/archives to external storage.
- Re-run Analyze to see if the optimizer can now complete fully.
Fix 6: Rule out a failing drive masquerading as fragmentation
If fragmentation is low but the drive is still slow, or if defrag crawls for many hours without progress, suspect hardware. Run wmic diskdrive get status for SMART and chkdsk X: /f on the drive. Bad sectors cause the retry delays that feel exactly like fragmentation — and defragging a dying drive is wasted effort at best, added stress at worst. Back up first, diagnose second. The 100% disk active time guide
helps distinguish hardware struggle from software load.
- Run
wmic diskdrive get statusin an elevated Command Prompt. - Run
chkdsk X: /fon the slow drive (replace X). - Back up critical data before intensive operations.
- Replace the drive if SMART warnings or bad sectors appear.
Fix 7: Consider the SSD upgrade for the system drive
If the fragmented drive is your Windows boot drive and it’s mechanical, the strategic fix isn’t a better defrag schedule — it’s an SSD. Cloning a 1 TB HDD to a 1 TB SSD typically cuts boot times by two-thirds and eliminates fragmentation as a concept (SSDs don’t care about file placement). The defrag schedule then only matters for secondary spinning drives used as bulk storage. Price the upgrade against the hours you’ve spent fighting HDD slowness; it usually wins. Microsoft’s Windows support hub covers drive maintenance basics.
- Identify whether the slow drive is the Windows boot drive.
- If it’s a mechanical boot drive, research SSD replacement options.
- Clone the drive (Macrium Reflect Free or similar) rather than reinstalling.
- Keep the old HDD as secondary bulk storage with the monthly schedule.
Closing
Defragmentation is simple maintenance with a simple rule: measure first, defrag mechanical drives that need it, let Windows TRIM your SSDs, and keep the monthly schedule on. It’s not a miracle cure — it won’t fix failing hardware or a drive that’s 98% full — but for a healthy spinning drive that’s gone too long without attention, one good pass restores the smooth sequential reads it was designed for.
