Some conventional drives support trim (SMR ones). Error is why defrag tries trim on drives without support.
Windows 10 2004 optimization/defrag bug
Hi all
I've just completed the Windows 10 2004 upgrade and I have noticed 2 issues.
- When I manually trim my SSD in the drive defrag/optimize tool in windows and I reboot it says 'never optimized' when i go back. I heard this was a bug in insider preview which they obviously didn't fix.
- I happened to have the defrag/optimize tool open at the same time as Control Panel\All Control Panel Items\Security and Maintenance, I initiated a manual maintenance and I caught windows defragging my SSD and then it trimmed it straight afterwards. If i click the optimize button in defrag/optimize tool it only trims it and not defrag.
This seem to only happen when Control Panel\All Control Panel Items\Security and Maintenance initiates its automatic maintenance or if I select start maintenance.
This is concerning as it should never attempt to defrag an SSD.
My laptop is only a few months old and came with a PCIe SSD and Windows 10 1909 so there is no compatibility or lack of trim support issues obviously.
I have disabled scheduled weekly optimizations in the defrag/optimize tool which prevents it from attempting to defrag when the control penal maintenance attempts its maintenance when the computer is idle.
I want to let everyone know that this is happening so others are aware. My other computers that have the latest update are also doing it.
Windows for home | Windows 10 | Install and upgrade
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
171 answers
Sort by: Most helpful
-
Anonymous
2020-07-06T12:35:36+00:00 -
Anonymous
2020-07-05T18:43:18+00:00 Yep, we all get same trim error for HDD. Luckily that doesn't cause any harm. But doing a full defrag on our SSDs after every boot is really bad for the SSD.
-
Anonymous
2020-06-25T12:05:29+00:00 Have this problem too, each restart it reset to "Never"
-
Anonymous
2020-06-17T19:25:51+00:00 Thanks for posting this.
Very resourceful.
This is exactly what I was talking about.
hi GKD_799.
I just don't understand why Microsoft has been unable to fix this defrag problem for v2004.
this bug has been there since build 19041.1 and still not fixed with the 19041.329 & 19041.330 builds (but was somehow "fixed" in some insider build in the fast ring in early 2020 and the fix was not "backported" to v2004)
edit - I'm encountering this defrag problem on an HDD rather than an SSD. so it affects both HDDs & SSDs.
2nd edit - this "MS defrag" problem was apparently fixed starting with insider preview build 19551 but did not make it into the v2004 release.
-
Anonymous
2020-06-09T12:11:58+00:00 I have never had this issue before build 2004, I'm on the insiders list but staying on retail builds. I've also not seen that using "dfrgui" the defrag window is actually trying to defragment the SSD. When I use manually use "optimize" it says "n% trimmed" but the status is not kept, right after that when leaving and restarting dfrgui it says "needs optimization".
I got build 19041.264 installed on April 17th ... I mentioned this problem (and a few others) in the feedback hub, without getting feedback :-)
I'm only seeing this issue if I go to Control Panel>Security and Maintenance and run the maintenance manually.
If you run the maintenance Control Panel>Security and Maintenance while also having the Optimize drives (defrag/optimize drives) open you will see it defrag then trim right in front of you.
You will only see it of you have both open at same time and do manual maintenance via Control Panel>Security and Maintenance. You will catch Windows doing it. Open Control Panel>Security and Maintenance and Optimize drives side by side and run manual maintenance (Control Panel>Security and Maintenance) and you will see it defrag briefly and then trim.
If you just open 'Optimize drives' only and select optimize then it will just trim it only.
You are actually saying that "defrag" on an SSD takes less time than a trim operation?
Edit: Indeed when passing through "Security & Maintenance" it is doing a full defrag operation but it is anything but a brief message, it it going through the "full-all passes procedure" ... weird and worrying
The first time you see this defrag issue it can go for about minute or 2, anytime after that it is very brief and as you say less or equal to a trim time.