A way to automatically defrag drives; Hi. I was wondering if there's a way to create an event that can automatically defrag a driver once it finds out that it get's fragmented? Like instead of manual defrag, it can be set to auto defrag..
Afaik windows does that already, it is set to run in the background and it's called "optimize" in windows 10.
For SSD, none. SSDs don't need to be "defragged". For spinning rust drives, "defragging" makes sense. By making files and directories contiguous and strategically placing them, head movements are minimized and read/write operations will be a lot faster. Plus, mechanical hard disks are usually ~30% faster at the platter outside than the inside. Note: I put the term "defragging" in quotes, because these days, the major improvement is achieved by optimizing data placement. So, "defragging" actually means optimization, as actual pure defragging has almost zilch performance gain.
Well said, Windows defrag call it free space consolidation, this is what it looks like before and after: Not to mention, that HDD's speed can be further improved by short-stroking.
Not really. Defrag.exe runs on a (by default weekly) schedule. It will then do what it feels is best (nothing, defrag, optimize, slab-consolidate depending on storage type) but will not be triggered when certain defragmentation level is reached. If you want to trigger defrag.exe at some other time (for example after upgrading but before compacting a VM) to run then you need to do it yourself.
I found out that defrag for Win 7 might not run as scheduled if something does not make the system idle. To solve the problem, I disabled the default defrag schedule and made a new one to run whether or not the system is idle at a time when I know no one will be using the machines. I didn't experience the same problem for Win 8. and 10. I also found out that the OS does optimization in the background every few days.
I have bad experience with those so called "pro" solutions too much options and using resources that the purpose is long lost along the way hehe
I found out that the same problem takes place for one Win 8.1 machine. The built-in defrag is scheduled daily but the last defrag took place three days ago. I have to disable the schedule feature in the defrag program then create a new one in task scheduler.