A bug in Windows 10 could be slowly wrecking your SSD

Windows 10
(Image credit: Microsoft)

Microsoft is currently testing a fix for Windows 10 bug that could cause the operating system to defragment solid state drives (SSDs) more often than is needed. While periodic defragging of a mechanical hard disk drive (HDD) is a good thing, doing it too often on SSDs can actually degrade their integrity and shorten their lifespan.

In simple terms, defragging is the process of relocating scattered bits of data on a drive so they sit next to each other. It has to do with how data is written on drives. Data is written in blocks on your storage drive, and the more you access files, the more scattered they can become on your hard drive or solid state drive.

This scattering can lead to reduced performance on an HDD, because it takes time to spin the platters and fetch pieces of files from very different places on the disk. Defragging organizes those blocks so that they are next to each other for faster access (HP uses the analogy of a closet full of boxes containing clothes, and is worth reading for further clarification).

SSDs behave differently—there are no moving parts or platters, and the NAND flash memory cells can only be written to so many times. Therefore frequent defragging can actually reduce the lifespan of an SSD.

As spotted by Bleeping Computer, when Microsoft rolled out the May 2020 update for Windows 10, it introduced a bug to the Optimize Drives feature causing it to incorrectly determine the last time a drive has been optimized. When you open it up, you might notice your SSD says "Needs optimization" even if the routine was recently run (Windows 10 handles this automatically).

What ends up happening is Windows 10 defrags your SSD each time your reboot your system. I was able to confirm this on my own PC, though fortunately, I hardly ever reboot. Where this is most harmful, however, is for users who turn off and turn on their PCs daily, which causes Windows 10 to defrag their SSD once a day in some instances.

Your next upgrade

(Image credit: Future)

Best CPU for gaming: the top chips from Intel and AMD
Best graphics card: your perfect pixel-pusher awaits
Best SSD for gaming: get into the game ahead of the rest

According to our friends at TechRadar, Windows 10 is usually able to discern whether to defrag or run a harmless TRIM process on a drive, depending on its type. But if volume snapshots are enabled (so you can revert to a backup using System Restore), it will in fact defrag the drive even if it is an SSD.

Regardless, Microsoft has a fix in place, which has been implemented in Windows Insider program.

"Thank you for reporting that the Optimize Drives Control Panel was incorrectly showing that optimization hadn’t run on some devices. We’ve fixed it in this build," Microsoft says.

Apparently Microsoft is planning to roll out the fix to the general public with an upcoming update. At this point, it's probably best to hang tight. However, you can sidestep the issue by typing 'Defrag and Optimize Drives' in the Windows 10 search box, then highlight your SSD, click 'Change settings', and uncheck 'run on a schedule'.

Paul Lilly

Paul has been playing PC games and raking his knuckles on computer hardware since the Commodore 64. He does not have any tattoos, but thinks it would be cool to get one that reads LOAD"*",8,1. In his off time, he rides motorcycles and wrestles alligators (only one of those is true).

Latest in SSDs
A Samsung 9100 Pro SSD in both 2 TB and 4 TB sizes.
Samsung 9100 Pro 2 TB SSD review
An image of a WD_Black SN850X SSD against a teal background with a white border
The best 1 TB gaming SSD you can buy is now just $79, the cheapest it's been for a good while
WD Black SN850X SSD on a gaming PC case.
Looks like we won't be seeing Western Digital SSDs in our gaming PCs as the company hands the reins back over to SanDisk
A SanDisk Desk Drive external SSD on a blue background
I adore this chunky, reliable external SSD, so for a third off the 4 TB version I will absolutely recommend it in a heartbeat
The WD Black SN850X 8 TB out of the packaging.
If you thought PCIe Gen 5 SSDs were a little pointless, don't worry, here comes 32 GB's worth of Gen 6 technology
Adata SE880 external SSD
Adata SE880 1 TB external SSD review
Latest in News
Destiny 2: Season of Plunder promo image.
'We made one big mistake': Destiny 2 developer reveals how a small team dedicated to player retention led to a 20 hour server outage and character rollback
Two people talking in the street
Inzoi's 'Smart Zoi' AI system sounds great on paper but seeing it in a live demo didn't exactly wow me
Max, from Life is Strange: Double Exposure, looks ponderingly off into the distance.
'We all got laid off', says former Deck Nine narrative designer, after no-one was around to pick up Life is Strange: Double Exposure's GDC Awards win
Nvidia headquarters
Nvidia CEO sets sights on making 'several hundred billion' dollars worth of electronics in the USA over the next four years, increasing the chance of your next GPU being made in America
The Asus ROG Astral GeForce RTX 5090 Dhahab Edition, a gold-plated graphics card on a sand dune background
A Jensen Huang-signed version of this golden Asus RTX 5090 will be auctioned off to support relief efforts for the California wildfires
Monster Hunter Wilds palico
Monster Hunter Wilds' first free update will feature 'a whole host of new additions' and a majestic water wyvern for players to blow sky high