public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: problem formatting new 256 GB USB stick : f3
Date: Tue, 18 Feb 2025 11:57:57 +0000	[thread overview]
Message-ID: <3140915.CbtlEUcBR6@rogueboard> (raw)
In-Reply-To: <Z7QCkpeSs4eZM2tt@ca.inter.net>

[-- Attachment #1: Type: text/plain, Size: 4593 bytes --]

On Tuesday 18 February 2025 03:46:26 Greenwich Mean Time Philip Webb wrote:
> 250217 Michael wrote:
> > It is worth mentioning the sys-block/f3 package (Fight Flash Fraud),
> > which is in Portage and can test a USB flash disk to discover if it is
> > fake. Besides the slower f3write and f3read, the f3probe command
> > will only take a few minutes and confirm the available space.
> 
> Thanks ! -- 'f3write' + 'f3read' refused, as they expect a directory ;

The man page explains how to run these commands.  You need to provide the 
mountpoint directory for the device after you mount it, e.g.:

$ f3write /run/media/<username>/XXXX-XXXX

then,

$ f3read /run/media/<username>/XXXX-XXXX

You'd probably want to create one big partition for the whole device, or no 
partition at all, i.e. run something like this:

# mkfs.fat -F 32 -n New-USB1 /dev/sdb

The f3write/f3read commands will check the large files written by f3 can be 
accessed and read without any problem and flag up any sectors which contain 
corrupted data.


> 'f3probe' need it to be compiled with 'USE="extra"', but does work :
> 
> root:705 ~> f3probe /dev/sdb

The f3probe command needs to be run as root, after you unmount the device.  
From your prompt I expect you did this, but it is also advisable to run it 
destructively - any data on the sticks will be overwritten:

f3probe --destructive --time-ops /dev/sdb


> F3 probe 8.0
> Copyright (C) 2010 Digirati Internet LTDA.
> This is free software; see the source for copying conditions.
> 
> WARNING: Probing normally takes from a few seconds to 15 minutes, but
>          it can take longer. Please be patient.
> 
> Probe finished, recovering blocks... Done
> 
> Good news: The device `/dev/sdb' is the real thing
> 
> Device geometry:
>                  *Usable* size: 231.05 GB (484540416 blocks)
>                 Announced size: 231.05 GB (484540416 blocks)
>                         Module: 256.00 GB (2^38 Bytes)
>         Approximate cache size: 0.00 Byte (0 blocks), need-reset=no
>            Physical block size: 512.00 Byte (2^9 Bytes)
> 
> Probe time: 5'29"
> root:706 ~> f3probe /dev/sdb
> F3 probe 8.0
> Copyright (C) 2010 Digirati Internet LTDA.
> This is free software; see the source for copying conditions.
> 
> WARNING: Probing normally takes from a few seconds to 15 minutes, but
>          it can take longer. Please be patient.
> 
> Probe finished, recovering blocks... Done
> 
> Good news: The device `/dev/sdb' is the real thing
> 
> Device geometry:
>                  *Usable* size: 231.05 GB (484540416 blocks)
>                 Announced size: 231.05 GB (484540416 blocks)
>                         Module: 256.00 GB (2^38 Bytes)
>         Approximate cache size: 0.00 Byte (0 blocks), need-reset=no
>            Physical block size: 512.00 Byte (2^9 Bytes)
> 
> Probe time: 18'47"
> 
> -- end of output --
> 
> That's both sticks : NB the 2nd took  3 times  as long.

This is good news, it confirms neither of them are counterfeit units.

However, the 2nd stick appears to be defective.  It takes almost 3.5 times as 
long than the first stick and from what we know for no good reason.  This 
indicates the second stick has bad flash cells, a bad flash controller, or 
both.

I don't know if checking for bad blocks when you format these drives may help 
at all.  You'd expect the flash controller to manage defective NAND cells 
transparently to the OS by abstracting the hardware to a logical layer.  
However, if the controller is not sophisticated as would be the case in a more 
expensive SSD drive and keeps trying repeatedly to write into bad cells, it 
might help to ask the filesystem to manage the bad blocks and see what you 
get.

Personally, I wouldn't bother and return the bad stick as defective, asking 
for it to be replaced.


> So both sticks are genuine, as I would expect from that store.

In my experience stores are box shifters.  Goods In - Goods Out.  They try to 
buy from importers/wholesalers with whom they have some relationship based on 
price-reliability-convenience and who they hope also apply similar criteria in 
their relationships up the supply chain.  Any link in this chain can go wrong 
and you end up with bad goods.  I don't expect them to perform QA/QC beyond 
looking at the shipping labels and customs declarations.  The manufacturers 
may perform some actual quality checks on a sampling basis after the 
prototypes have been put together and the brand reps may audit the odd 
production run.  I would think the rigour of such checks is proportional to 
the value of the assembled items.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  parent reply	other threads:[~2025-02-18 11:59 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-15  7:41 [gentoo-user] problem formatting new 256 GB USB stick Philip Webb
2025-02-15 11:50 ` [gentoo-user] " Nuno Silva
2025-02-15 13:31   ` Michael
2025-02-16  2:37     ` Philip Webb
2025-02-16  9:08       ` Nuno Silva
2025-02-16 13:41         ` Michael
2025-02-16 14:48           ` Wols Lists
2025-02-17 23:12           ` Frank Steinmetzger
2025-02-18 11:53             ` Michael
2025-02-19 12:10               ` Frank Steinmetzger
2025-02-20  9:58                 ` Michael
2025-02-16 22:57       ` [gentoo-user] problem formatting new 256 GB USB stick : more info Philip Webb
2025-02-17  0:17         ` [gentoo-user] " Nuno Silva
2025-02-17  0:39         ` [gentoo-user] " Michael
2025-02-17  3:43           ` Philip Webb
2025-02-17  9:18             ` Philip Webb
2025-02-17 12:02               ` Michael
2025-02-17 16:33                 ` Stroller
2025-02-17 16:19             ` Wols Lists
2025-02-17 17:16             ` [gentoo-user] " Grant Edwards
2025-02-17 18:12               ` Michael
2025-02-18  3:46                 ` [gentoo-user] Re: problem formatting new 256 GB USB stick : f3 Philip Webb
2025-02-18  4:43                   ` Grant Edwards
2025-02-18  5:53                     ` Philip Webb
2025-02-18  9:13                       ` Frank Steinmetzger
2025-02-18 19:10                         ` [gentoo-user] Re: problem formatting new 256 GB USB stick : alternatives Philip Webb
2025-02-18 21:18                           ` Grant Edwards
2025-02-18 23:25                             ` Michael
2025-02-19 12:16                               ` Frank Steinmetzger
2025-02-19 12:20                           ` Frank Steinmetzger
2025-02-20 10:47                             ` Michael
2025-02-18 14:40                       ` [gentoo-user] Re: problem formatting new 256 GB USB stick : f3 Grant Edwards
2025-02-18 17:00                         ` Grant Edwards
2025-02-18 11:57                   ` Michael [this message]
2025-02-18 18:54                     ` [gentoo-user] Re: problem formatting new 256 GB USB stick : glances at gparted Philip Webb
2025-02-18 23:13                       ` Michael
2025-02-19  0:47                         ` Grant Edwards
2025-02-19  1:12                           ` [gentoo-user] alternatives to USB sticks for reliable archiving Philip Webb
2025-02-19  2:28                             ` [gentoo-user] " Grant Edwards
2025-02-19  9:48                             ` [gentoo-user] " Michael
2025-02-19  3:00                         ` [gentoo-user] Re: problem formatting new 256 GB USB stick : glances at gparted eric
2025-02-20 18:18                         ` Dale
2025-02-20 22:40                           ` Frank Steinmetzger
2025-02-20 23:43                             ` Grant Edwards
2025-02-21  8:10                               ` Dale
2025-03-08 22:09                             ` Frank Steinmetzger
2025-03-08 22:48                               ` Dale
2025-03-09 10:31                                 ` Michael
2025-03-10  3:32                                   ` Dale
2025-03-10 13:01                                     ` Frank Steinmetzger
2025-02-17 16:38 ` [gentoo-user] problem formatting new 256 GB USB stick Stroller
2025-02-17 23:06   ` Frank Steinmetzger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3140915.CbtlEUcBR6@rogueboard \
    --to=confabulate@kintzios.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox