Windows – Win7: How to force TRIM on SSD, when system partition is encrypted with TrueCrypt

ssdtrimtruecryptwindows 7

I beg folks answering this question to stick to the point, and refrain from answers such as "why do you run encryption anyway", or "use Bitlocker instead". This question is specifically about TrueCrypt and Windows7

I have copied encrypted system drive from one 240GB SSD disk to another 240GB SSD drive by making an exact sector-by-sector copy. I know that TrueCrypt does support TRIM, at least on system drives. At this time, I would assume the target disk thinks that every sector is in use, since every sector have been written to. I tried finding a utility, which will run TRIM on all unused sectors, but it seems that I cannot find any. There has been references to ForceTrim utility on OCZ forums, but it seems to have been either deleted or locked up, because I cannot access it.

Questions:

  • How do I force TRIM of all unused sectors on a system drive?

  • How do I verify that TRIM has been successful and drive indeed is aware of all unused space? How to tell, how many sectors are marked unused by the drive?

My drive is OCZ Vertex3

Best Answer

One simple solution to force-TRIM everything would be to create a huge file that fills up all your free space, then delete it. That should make the OS issue TRIM commands for all the space that's now free on the drive.

Related Question