11

I would like to manually trim my SSD in Windows 7. Is this possible?

JL.
  • 5,778
  • 21
  • 59
  • 86

3 Answers3

6

I wrote an article about TRIM; it also refers to a tool to manually TRIM your SSD: ForceTrim (download ForceTrim.zip, scan report at VirusTotal).

OCZ's forum is gone, but an archived version of Here's a tool to force-TRIM your entire drive is available. The source code is unfortunately lost.

Lekensteyn
  • 6,546
  • 5
  • 27
  • 48
at0m
  • 81
  • 1
  • 3
  • The source code is unfortunately lost, but it appears that the tool writes `:\_TRIM_`, invokes TRIM on that and then removes it again. – Lekensteyn Oct 03 '14 at 12:05
  • 2
    I have the source code if you need, I remember the original thread a few years ago and having checked the source code, it's made in Delphi. – hikari Oct 14 '14 at 08:03
  • 3
    Please, would love to have that. – James King Mar 09 '16 at 17:43
  • @JamesKing I know this is ancient, but any chance either of you were able to find the source code for this? – Coldblackice May 14 '20 at 22:36
  • You can also use any tool that wipes free space on the drive (as long as it does so by filling the drive with a file / files then deleting it / them); should have the same result as a side-effect; assuming the system is configured to TRIM files on delete. – Jason C Feb 06 '22 at 15:03
2

Some SSD manufacturers have provided utilities on their websites that allow you to perform a "TRIM" like function manually. Check yours and see if it has that.

Joshua
  • 4,362
  • 3
  • 24
  • 31
0

It's a bit old but want to add: As an alternative, most tools with a generic "wipe free space" feature will have the same effect that ForceTrim did assuming that the system is properly configured to TRIM files on delete.

Most wipes are implemented by filling up the drive with a file, writing the wipe pattern to it, then deleting it. If your wiping tool of choice does it this way, the delete(s) should trigger a TRIM on all the space the wipe file(s) used.

I know CCleaner does it but you can find other tools on Google or whatever.

Theoretically, this applies to any platform and any drive model, again, assuming TRIM-friendly system configuration.

Jason C
  • 10,467
  • 9
  • 41
  • 64