Crates.io | count-zeroes |
lib.rs | count-zeroes |
version | 0.2.1 |
source | src |
created_at | 2021-11-07 12:11:23.804906 |
updated_at | 2021-12-12 09:45:40.857489 |
description | Count zeroes on a disk or a file |
homepage | https://github.com/cecton/count-zeroes |
repository | https://github.com/cecton/count-zeroes |
max_upload_size | |
id | 478050 |
size | 18,931 |
Count zeroes on a disk or a file.
cargo install count-zeroes
count-zeroes /dev/sdXN
This is useful if you want to check if an SSD has been trimmed or a disk has been wiped-clean. I found no obvious way to do that and it's useful when you try to recover a filesystem to avoid chasing ghosts. In my case, an attempt to recover a BTRFS partition showed me there was a superblock somewhere but it was just some random unrelated data.
This program can be used as a library, it has no dependency. It is optimized for speed.