Code Monkey home page Code Monkey logo

disktrim's People

Contributors

tenox7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

disktrim's Issues

Disk size detected as 0.0GB and only partition table is deleted, not data

It appears that this program only deletes the partition table, and not the actual contents of the disk. I can still find data on the hard drive using a hex editor.

Before the Yes/No prompt, it displays the size of the disk drive (238.5GB for my ssd) correctly.

But after the Yes/No prompt, it displays this:

\\.\PhysicalDrive0 LBA: 0, Block: 0, Size: 0.0GB

It appears to be multiplying 0 by 0 to calculate a size of 0, and overwrites only that much.

ERROR: Error on DeviceIoControl IOCTL_SCSI_PASS_THROUGH

I encountered a problem. I'm sure the disk driver is working because I successfully sent the trim command using DiskGenius (but it couldn't trim the entire hard drive).

OS: Windows 11

The following is the console output

Number Friendly Name Serial Number                    HealthStatus         OperationalStatus      Total Size Partition
                                                                                                             Style
------ ------------- -------------                    ------------         -----------------      ---------- ----------
0      SAMSUNG MZ... 0025_38B4_11B0_15DB.             Healthy              Online                    1.86 TB GPT
1      WDC WD10 S... 123622500220                     Healthy              Online                  931.51 GB GPT


PS C:\Users\Calun> disktrim-x64.exe 1
DiskTrim v2.2 by Antoni Sawicki & Tomasz Nowak, Build Dec 31 2016 02:51:58

Disk: 1
Size: 931.5 GB
Type: WDC WD10 SPZX-00Z10T0
Trim: Supported

WARNING: Contents of your drive an all data will be permanently erased!
There is no possibility of data recovery even with 3rd party companies.

Do you want to erase this disk (y/N) ? y
All right...
Querying drive parameters...
ERROR: Error on DeviceIoControl IOCTL_SCSI_PASS_THROUGH
[0x0000045D] ?? I/O ??????????????

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.