On 10/6/19 6:29 AM, sixpack13 wrote:
there a tool to test usb sticks/sdcards
https://fightflashfraud.wordpress.com/2008/11/24/h2testw-gold-standard-in-detecting-fake-capacity-flash/
h2testw is a M$-Windows tool, but at the end of the article there is the linux tool "F3" with the same tests.
sudo dnf install f3
or
sudo dnf search f3:
" f3.x86_64 : Utility to test for fake flash drives and cards"
more to read:
https://fight-flash-fraud.readthedocs.io/en/stable/
Attention:
========
take care to NOT overwrite your data !!!
I never used f3 so far, always did it with h2testw, so I can't say how and what !
Hi Sixpack,
Nice link. Thank you! Who would have thought that
folks would fudge USB sticks! Geez!
I just use gparted to what is on the drive. And I
don't buy anything from FleeBay unless forced to
(only once so far for a Bilberry plant).
I also typically wipe my sticks before using them
(if=/dev/zero)
What I am after is to see if I can read and write
to the entire drive. And zero'ing it out is
a side benefit.
Here is what a bad 64 GB stick looks like. It could
only read about half way through. (I can read and
write on either side of the bad spot, so no fraud.)
# dd status=progress bs=4096 if=/dev/sdb of=/dev/null
37612171264 bytes (38 GB, 35 GiB) copied, 193 s, 195 MB/s
dd: error reading '/dev/sdb': Input/output error
9222556+0 records in
9222556+0 records out
37775589376 bytes (38 GB, 35 GiB) copied, 248.253 s, 152 MB/s
This puppy crashed so bad that udev dismounted it.
Here is what the replacement stick's good test
looked like:
# dd bs=4096 if=/dev/sdb of=/dev/null status=progress
63975051264 bytes (64 GB, 60 GiB) copied, 293 s, 218 MB/s
15664160+1 records in
15664160+1 records out
64160400896 bytes (64 GB, 60 GiB) copied, 295.211 s, 217 MB/s
# dd bs=4096 of=/dev/sdb if=/dev/zero status=progress
64147431424 bytes (64 GB, 60 GiB) copied, 2460 s, 26.1 MB/s (only when
it ran out of space)
dd: error writing '/dev/sdb': No space left on device
-T
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx