Re: how to test USB stick capacity.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've used it on with my g4l disk imaging project for some time.
Have run across a few fake flashes. The program can fix them, but 
fix them means change to the real size of drive. Witch means a 
fake 2TB Usb might really be a 64G Usb. 

It is command line only.

f3probe --help
Usage: f3probe [OPTION...] <DISK_DEV>
F3 Probe -- probe a block device for counterfeit flash memory. If 
counterfeit,
f3probe identifies the fake type and real memory size

  -l, --min-memory           Trade speed for less use of memory
  -n, --destructive          Do not restore blocks of the device after 
probing
                             it
  -s, --reset-type=TYPE      Reset method to use during the probe
  -t, --time-ops             Time reads, writes, and resets
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also 
mandatory or optional
for any corresponding short options.


On 6 Feb 2024 at 21:09, home user wrote:

Date sent:      	Tue, 6 Feb 2024 21:09:47 -0700
Subject:        	Re: how to test USB stick capacity.
To:             	users@xxxxxxxxxxxxxxxxxxxxxxx
From:           	home user <mattisonw@xxxxxxxxxxx>
Send reply to:  	Community support for Fedora users 
<users@xxxxxxxxxxxxxxxxxxxxxxx>

> Thank-you, Michael, for both posts.
> I've installed it.
> It looks like it will take a while to run, and it's late here now.  So I'll give it a try tomorrow.
> 
> I gather we don't have a GUI interface available via DNF.
> 
> On 2/6/24 8:42 PM, Michael D. Setzer II via users wrote:
> > site I found didn't seem to have download option, but it is in
> > Fedora repo
> > 
> > dnf whatprovides f3probe
> > Last metadata expiration check: 1:04:55 ago on Wed 07 Feb 2024
> > 12:35:47 PM ChST.
> > f3-8.0-5.fc39.x86_64 : Utility to test for fake flash drives and cards
> > Repo        : @System
> > Matched from:
> > Filename    : /usr/bin/f3probe
> > 
> > 
> > 
> > On 6 Feb 2024 at 20:21, home user wrote:
> > 
> > Date sent:      	Tue, 6 Feb 2024 20:21:02 -0700
> > To:             	Community support for Fedora users
> > <users@xxxxxxxxxxxxxxxxxxxxxxx>
> > From:           	home user <mattisonw@xxxxxxxxxxx>
> > Subject:        	how to test USB stick capacity.
> > Send reply to:  	Community support for Fedora users
> > <users@xxxxxxxxxxxxxxxxxxxxxxx>
> > 
> >> Good evening,
> >>
> >> background
> >> ==========
> >> In the wikipedia article about USB Flash drives, it says ("https://en.wikipedia.org/wiki/USB_flash_drive#Counterfeit_products";)
> >> ------
> >> Counterfeit USB flash drives are sometimes sold with claims of having higher capacities than they actually possess. These are typically low-capacity USB drives with modified flash memory controller firmware that emulates larger capacity drives (for example, a 2 GB drive being marketed as a 64 GB drive). When plugged into a computer, they report being the larger capacity they were sold as, but when data is written to them, either the write fails, the drive freezes up, or it overwrites existing data. Software tools exist to check and detect fake USB drives,[46][47] and in some cases it is possible to repair these devices to remove the false capacity information and use its real storage limit.
> >> ------
> >> A footnote leads me to believe that a tool "H2testw" could detect bad sticks and maybe fix them.
> >>
> >> question
> >> ========
> >> I tried man, dnf, and dnfdragora to find H2testw.  Nothing.  I also tried to find something else to test and fix sticks.  Nothing.  What do we have for this purpose either already installed or that I can get via dnf?
> >> --
> 
> > 
> > +------------------------------------------------------------+
> >   Michael D. Setzer II - Computer Science Instructor (Retired)
> >   mailto:mikes@xxxxxxxx
> >   mailto:msetzerii@xxxxxxxxx
> >   mailto:msetzerii@xxxxxxx
> >   Guam - Where America's Day Begins
> >   G4L Disk Imaging Project maintainer
> >   http://sourceforge.net/projects/g4l/
> > +------------------------------------------------------------+
> --
> _______________________________________________
> 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
> Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue


+------------------------------------------------------------+
 Michael D. Setzer II - Computer Science Instructor (Retired)     
 mailto:mikes@xxxxxxxx                            
 mailto:msetzerii@xxxxxxxxx
 mailto:msetzerii@xxxxxxx
 Guam - Where America's Day Begins                        
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+


--
_______________________________________________
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
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux