Skip to content

Commit

Permalink
LBA48 support for large SSDs
Browse files Browse the repository at this point in the history
  • Loading branch information
tenox7 committed Jul 13, 2016
1 parent 2bbe731 commit db4c270
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 124 deletions.
24 changes: 16 additions & 8 deletions README
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
DiskTrim 1.2 by Antoni Sawicki and Tomasz Nowak
DiskTrim 2.0 by Antoni Sawicki and Tomasz Nowak
Requires Windows 2012 R2 / Windows 8.1 or above

DiskTrim: a small command line application for Windows that allows
to send ATA TRIM / SCSI UNMAP command directly to an SSD using SCSI
pass through. It allows to securely erase contents of SSD drive and
test whether TRIM actually worked. If you just want to test if your
SSD supports TRIM under Windows without deleting it's contents, you
can create and mount a small VHDX file and run DiskTrim on the VHDX
instead of physical disk.
DiskTrim -- a small command line utility for Windows that allows to
send ATA TRIM and SCSI UNMAP commands directly to an SSD drive. The
operation is performed arbitrarily on a full sector range from zero
to the end. It securely erases contents of an entire SSD drive, and
tests whether TRIM actually worked.

If you just want to test if your SSD supports TRIM without deleting
it's entire contents, you can simply create and mount a small .VHDX
file on top and run DiskTrim on the VHDX instead of physical disk.

WARNING:
This utility is particularly dangerous and if used incorrectly - it
will permanently destroy contents of your SSD drive, and delete all
your data. Authors of this software application take absolutely no
responsibility for use of this program and its consequences.
22 changes: 22 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
set INCLUDE=
set LIB=
set LIBPATH=
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
echo on
cl /Fedisktrim-x64.exe disktrim.c

set INCLUDE=
set LIB=
set LIBPATH=
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64_x86
echo on
cl /Fedisktrim-x86.exe disktrim.c

set INCLUDE=
set LIB=
set LIBPATH=
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64_arm
echo on
cl /D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE /Fedisktrim-arm.exe disktrim.c

pause
Loading

0 comments on commit db4c270

Please sign in to comment.