Giter VIP home page Giter VIP logo

trimcheck's Introduction

trimcheck

This program provides an easy way to test whether TRIM works on your SSD. It uses a similar method to the one described here, but uses sector calculations to avoid searching the entire drive for the sought pattern. It also pads the sought data with 32MB blocks of dummy data, to give some room to processes which may otherwise overwrite the tested deleted disk area.

The program will set up a test by creating and deleting a file with unique contents, then (on the second run) checks if the data is still accessible at the file's previous location.

Download

You can download a compiled version on my website, here.

Usage

Place this program file on the same drive you'd like to test TRIM on, and run it. Administrator privileges and at least 64MB free disk space will be required.

Building from source

A D compiler is required.

You can use the rdmd tool (included with DMD) to build trimcheck:

$ git clone --recursive https://github.com/CyberShadow/trimcheck
$ cd trimcheck
$ rdmd --build-only trimcheck

License

trimcheck is available under the Mozilla Public License, version 2.0.

Changelog

trimcheck v0.7 (2014-08-16)

  • Fix incorrect free space detection

trimcheck v0.6 (2014-03-23)

  • Fix support for drives with big clusters
  • Fix false negatives due to compressed filesystems

trimcheck v0.5 (2013-08-21)

  • Write fully random data as padding instead of a repeating pattern (to avoid possible intervention of deduplication components)
  • Cryptographically sign executable

trimcheck v0.4 (2013-02-18)

  • Remove read checks, as they caused tested data to not be TRIMmed in some configurations
  • Add symlink detection

trimcheck v0.3 (2013-01-09)

  • Add support for SSDs which present cleared sectors as filled with 1s instead of 0s

trimcheck v0.2 (2012-12-10)

  • Pad tested data with 32MB of dummy data on either side

trimcheck v0.1 (2012-12-09)

  • Initial release

trimcheck's People

Contributors

cybershadow avatar

Watchers

James Cloos avatar Jeroen Wiert Pluimers avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.