Why is Defrag Trying to Trim a Hard Drive


  1. Posts : 7,089
    Windows 10 Pro 64 bit
       #1

    Why is Defrag Trying to Trim a Hard Drive


    I keep getting the error below that the hard drives in my desktop PC cannot be trimmed. The disks are recognised as hard drives and are being defragged on schedule. What's going on and is there a way of resetting defrag to stop this behaviour?

    Why is Defrag Trying to Trim a Hard Drive-image.png
      My Computers


  2. Posts : 7,457
    Windows 10 Home 20H2
       #2

    Get-PhysicalDisk|Select DeviceID, MediaType, BusType, FriendlyName

    Run the above command via Windows PowerShell and post the output.
      My Computer


  3. Posts : 7,089
    Windows 10 Pro 64 bit
    Thread Starter
       #3

    Matthew Wai said:
    Get-PhysicalDisk|Select DeviceID, MediaType, BusType, FriendlyName

    Run the above command via Windows PowerShell and post the output.
    See enclosed. The Maxtor drive is an elderly HDD, the Seagate Expansion is an external HDD connected via USB 3.0 and Device ID 5 is a virtual drive on a SSD configured by MS Flight Simulator.

    Why is Defrag Trying to Trim a Hard Drive-image.png
      My Computers


  4. Posts : 7,457
    Windows 10 Home 20H2
       #4

    Which disk is the HDD in question?
      My Computer


  5. Posts : 7,089
    Windows 10 Pro 64 bit
    Thread Starter
       #5

    Matthew Wai said:
    Which disk is the HDD in question?
    The error applies to Disk IDs 2, 3 & 4
      My Computers


  6. Posts : 7,457
    Windows 10 Home 20H2
       #6

    What are the settings of the following task?

    Task Scheduler Library\Microsoft\Windows\Defrag
      My Computer


  7. Posts : 7,089
    Windows 10 Pro 64 bit
    Thread Starter
       #7

    Matthew Wai said:
    What are the settings of the following task?

    Task Scheduler Library\Microsoft\Windows\Defrag
    Why is Defrag Trying to Trim a Hard Drive-image.png
    Why is Defrag Trying to Trim a Hard Drive-image.png
      My Computers


  8. Posts : 7,457
    Windows 10 Home 20H2
       #8

    Mine.
    Why is Defrag Trying to Trim a Hard Drive-defrag-action.jpg

    Is it possible to disable the default task and create a custom task of running the following command?

    Optimize-Volume -DriveLetter E -Analyze -Verbose
      My Computer


  9. Posts : 7,089
    Windows 10 Pro 64 bit
    Thread Starter
       #9

    Matthew Wai said:
    Mine.
    Why is Defrag Trying to Trim a Hard Drive-defrag-action.jpg

    Is it possible to disable the default task and create a custom task of running the following command?

    Optimize-Volume -DriveLetter E -Analyze -Verbose
    Those are also the defrag settings on my Dell laptop. I'm tempted to modify the default defrag task on my desktop PC to the standard settings as reported. I can't work out from the task definition how the task is scheduled.
      My Computers


  10. Posts : 7,457
    Windows 10 Home 20H2
       #10

    You may set up your own schedule regardless of the default schedule, which can be found under "Triggers", "Conditions", and "Settings".
      My Computer


 

  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 05:13.
Find Us




Windows 10 Forums