Other Checking data integrity of USB Flash Drive ?

Hello ,

how about a software that checks the data integrity of a USB flash drive and has a graphical interface ?
Is there something familiar ?

SM

Similar ones on other os are "check disk" "check flash" and SFV Ninja
 
im not sure what you are referring to with "check disk" or "check flash"

i would imagine they are doing completely different things compare to SFV Ninja but below is a general run down for you:

you can check your drive health with smartctl (you need to install smartmontool)

if you are using ufs you can use fsck for drive errors and fix

if you are using zfs you can check your pool(s) health by
Code:
zpool status -x

if you want to verify data checksums you can mount your drive (say usb drive) and run:
Code:
find -s /mnt/usb -type f -exec md5 {} \; | sort -k 3 | md5
keep the result hash and compare it with new values (run the same command) in the future.
sums will be different if any file is altered and/or added/deleted

Edit: non of above uses gui
 
Are you sure smartctl does show USB flash drive status?
Here is a random check of the nearest ones to me.
Code:
/usr/local/sbin/smartctl -a /dev/da0
smartctl 7.2 2020-12-30 r5155 [FreeBSD 12.2-RELEASE-p6 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/da0: Unknown USB bridge [0x13fe:0x4200 (0x100)]
Please specify device type with the -d option.
Another stick
Code:
/dev/da0: Unknown USB bridge [0x1307:0x0165 (0x100)]
Please specify device type with the -d option.
One more:
Code:
/dev/da0: Unknown USB bridge [0x8564:0x1000 (0x100)]
Please specify device type with the -d option.
 
Well a test with a USB to M.2 SATA 'stick' does have drive passthru.

Code:
/usr/local/sbin/smartctl -a /dev/da0
smartctl 7.2 2020-12-30 r5155 [FreeBSD 12.2-RELEASE-p6 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     SanDisk X400 M.2 2280 256GB
Serial Number:    170802803128
LU WWN Device Id: 5 001b44 8b45062b7
Firmware Version: X4152012
User Capacity:    256,060,514,304 bytes [256 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      M.2
TRIM Command:     Available, deterministic, zeroed
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Oct 13 17:18:26 2021 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
-SNIP-

SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0032   100   100   ---    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   ---    Old_age   Always       -       2150
 12 Power_Cycle_Count       0x0032   100   100   ---    Old_age   Always       -       2244
175 Program_Fail_Count_Chip 0x0032   100   100   ---    Old_age   Always       -       0
176 Erase_Fail_Count_Chip   0x0032   100   100   ---    Old_age   Always       -       0
177 Wear_Leveling_Count     0x0032   100   100   ---    Old_age   Always       -       10
178 Used_Rsvd_Blk_Cnt_Chip  0x0032   100   100   ---    Old_age   Always       -       0
179 Used_Rsvd_Blk_Cnt_Tot   0x0032   100   100   ---    Old_age   Always       -       0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0033   100   100   004    Pre-fail  Always       -       10439
181 Program_Fail_Cnt_Total  0x0032   100   100   ---    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   ---    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   ---    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   072   056   ---    Old_age   Always       -       28 (Min/Max 8/56)
195 Hardware_ECC_Recovered  0x0032   100   100   ---    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       1
230 Unknown_SSD_Attribute   0x0032   100   100   ---    Old_age   Always       -       2512575398473
238 Unknown_Attribute       0x0032   098   100   ---    Old_age   Always       -       16319291
241 Total_LBAs_Written      0x0030   253   253   ---    Old_age   Offline      -       8639441890
242 Total_LBAs_Read         0x0030   253   253   ---    Old_age   Offline      -       12186574229
 
"check flash"

I see a discussion from around a year ago:


– but can't tell whether there's a particular application with that name.

SFV Ninja

SFV Ninja – Skwire Empire

graphical interface

Wine emulators/wine allows some software for Windows to run on FreeBSD, but not SFV Ninja.

GSmartControl sysutils/gsmartcontrol provides a GUI to sysutils/smartmontools however as noted above, it might not work as required with many types of USB flash drive. For example, with a Kingston DataTraveler 3.0:

1634163303305.png 1634163357294.png

– S.M.A.R.T. self-test routines can not be performed, and so on.

ZFS

A GUI for scrubbing of pools was added to FreeNAS® in 2012.

FreeNAS became TrueNAS® CORE.

Formerly available PC-BSD had a GUI – its Disk Manager. Original documentation is no longer available, here's a copy (lacking images): <https://ftp.icm.edu.pl/packages/pcb...md64/docs/html/controlpanel.html#disk-manager>.

I'm not aware of anything comparable for FreeBSD without TrueNAS.



<https://github.com/helloSystem/hello/issues/90> envisages a First Aid utility for helloSystem, which is based on FreeBSD.
 
Are you sure smartctl does show USB flash drive status?

i seriously don't know, never had the need to check flash drive, generally i just throw it away and use another one.

But smartmon website claims its working under specific condition. Whether its applicable that's another story.


I wasnt sure what OP really meant so i listed possible options.

Edit: And your example shows it is actually applicable, thanks for the test
 
Back
Top