Automatically defragment

Page 3 of 3 FirstFirst 123

  1. Posts : 5,478
    2004
       #21

    cereberus said:
    Others here have discovered that if yiu backup a partition using Macriium Reflect Free and restore it to a slightly smaller partition, the partition is defragged on the fly
    Quite so - any save/restore will defragment - irrespective of method or file system pretty much.

    I remember working in a place in the late '90s and a salesman from EMC tried to prove that replacing the 240 small IBM HDDs we had on our server with 4 of their larger ones would be faster by backing up and restoring the database (so obviously defragmenting). Thankfully no-one (not even management) fell for that despite the "inducements" they offered.

    You are right about defragging SSD also - otherwise the MFT gets too big - this is a NTFS limitation not an issue with HDD/SSD. Luckily the Windows optimization (in addition to running trim weekly) runs this defrag once a month.

    I guess you were thinking of this article: The real and complete story - Does Windows defragment your SSD? - Scott Hanselman

    It still (if you look at event viewer you can check it) works the same.
      My Computer


  2. Posts : 15,480
    Windows10
       #22

    lx07 said:
    Quite so - any save/restore will defragment - irrespective of method or file system pretty much.

    I remember working in a place in the late '90s and a salesman from EMC tried to prove that replacing the 240 small IBM HDDs we had on our server with 4 of their larger ones would be faster by backing up and restoring the database (so obviously defragmenting). Thankfully no-one (not even management) fell for that despite the "inducements" they offered.

    You are right about defragging SSD also - otherwise the MFT gets too big - this is a NTFS limitation not an issue with HDD/SSD. Luckily the Windows optimization (in addition to running trim weekly) runs this defrag once a month.

    I guess you were thinking of this article: The real and complete story - Does Windows defragment your SSD? - Scott Hanselman

    It still (if you look at event viewer you can check it) works the same.
    Yeah - that article was rather disengenous though, deliberately overstating the case, and for most users, not a big deal. However, MS took steps to ensure defragmentation is done occasionally so that issues in article never arise.
      My Computer


  3. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #23

    lxo7,

    About "Luckily the Windows optimization (in addition to running trim weekly) runs this defrag once a month.", does your Event viewer explicitly record the SSD defrag?

    Every entry I have [it has them since February] for my SSD says, "The storage optimiser successfully completed re-trim on OS10 (C:)" but I was expecting one of them to match my HDD records each month, "The storage optimiser successfully completed defragmentation on DataCore (D:)".

    I have checked that the -O switch is in the TS task's defrag command.

    Denis
      My Computer


  4. Posts : 5,478
    2004
       #24

    Try3 said:
    does your Event viewer explicitly record the SSD defrag?
    Yes. Try this (taken from here):
    Code:
    Get-EventLog -LogName Application -Source "microsoft-windows-defrag" | sort timegenerated -desc | fl timegenerated, message
    Automatically defragment-capture.png
      My Computer


  5. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #25

    lx07,

    Thanks for the info. I'm checking the same log. I'll have to look into this.

    Denis
      My Computer


  6. Posts : 14,009
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #26

    I just checked using the command given and got this:
    Attachment 196057

    Drives G: and H: are USB but the F: drive is not shown, probably because it is a WDC 4TB drive formatted from the factory as exFAT.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:17.
Find Us




Windows 10 Forums