Free Tool to Detect Counterfeit Flash Storage Quickly

BY Mark Howell 23 July 20243 MINS READ
article cover

Today in Edworking News we want to talk about f3 - Fight Flash Fraud
f3 is a simple tool that tests flash cards' capacity and performance to see if they live up to claimed specifications. It fills the device with pseudorandom data and then checks if it returns the same on reading. F3 stands for Fight Flash Fraud, or Fight Fake Flash.

Testing Performance with f3read/f3write

To test the performance of your flash drive, you can use f3write and f3read. These tools work in tandem: f3write writes large files to your mounted disk, and f3read checks if the flash disk contains exactly the written files. This ensures that the flash drive is performing as expected and not losing data.
```bash
f3write /media/michel/5EBD-5C80/
f3read /media/michel/5EBD-5C80/
Replace `/media/michel/5EBD-5C80/` with the appropriate path for your system. On Macs, USB devices are typically mounted in `/Volumes`.

Quick Capacity Tests with f3probe

f3probe is the fastest drive test and is suitable for large disks because it only writes what’s necessary to test the drive. It operates directly on the (unmounted) block device and needs to be run as a privileged user. Be cautious, as this will destroy any previously stored data on your disk.
```bash
sudo f3probe --destructive --time-ops /dev/sdX
Replace `/dev/sdX` with the correct device identifier.

Correcting Capacity to Actual Size with f3fix

If you discover that your flash drive is fake, f3fix can help by creating a partition that fits the actual size of the drive. Use f3probe’s output to determine the parameters for f3fix.
```bash
sudo f3fix --last-sec=XXXX /dev/sdX
Replace `XXXX` with the last sector number provided by f3probe.

Installation

Download and Compile

You can download the stable version of F3 from here. Uncompress the files and compile them using the following commands:
```bash
tar -xzf f3-7.2.tar.gz
cd f3-7.2
make
sudo make install

Compile on Different Platforms

F3 can be compiled on various platforms including Linux, FreeBSD, Windows (using Cygwin), and Mac. For detailed instructions on compiling F3 on these platforms, refer to the official documentation.

Docker

A pre-built image is available on Docker Hub. To use it, run:
```bash
docker run --rm -it --privileged --device=/dev/sdX:/dev/sdX altmay/f3 f3probe --destructive --time-ops /dev/sdX
Replace `/dev/sdX` with the correct device identifier.

Graphical User Interfaces

Thanks to the growing community, there are several graphical user interfaces (GUIs) available for F3:

  • F3 QT: A Linux GUI that supports f3write, f3read, f3probe, and f3fix.

  • F3XSwift: A Mac GUI that supports f3write and f3read.

Additional Resources

For more advanced usage, you can explore bash scripts and other tools like Flakyflash to identify and mark bad data clusters in the FAT file system.

Image: Testing flash drive performance and capacity using F3 tools.

Remember these 3 key ideas for your startup:

  1. Ensure Data Integrity: Using tools like f3 helps verify the integrity and performance of your flash storage devices, ensuring that your data is safe and reliable.

  2. Optimize Resource Usage: By identifying fake or faulty flash drives, you can avoid potential data loss and optimize your storage resources effectively.

  3. Leverage Community Tools: Utilize community-developed GUIs and scripts to enhance your workflow and make the most out of F3’s capabilities.
    Edworking is the best and smartest decision for SMEs and startups to be more productive. Edworking is a FREE superapp of productivity that includes all you need for work powered by AI in the same superapp, connecting Task Management, Docs, Chat, Videocall, and File Management. Save money today by not paying for Slack, Trello, Dropbox, Zoom, and Notion.
    For more information on F3 and to download the latest version, visit the official GitHub repository.
    For more details, see the original source.

article cover
About the Author: Mark Howell Linkedin

Mark Howell is a talented content writer for Edworking's blog, consistently producing high-quality articles on a daily basis. As a Sales Representative, he brings a unique perspective to his writing, providing valuable insights and actionable advice for readers in the education industry. With a keen eye for detail and a passion for sharing knowledge, Mark is an indispensable member of the Edworking team. His expertise in task management ensures that he is always on top of his assignments and meets strict deadlines. Furthermore, Mark's skills in project management enable him to collaborate effectively with colleagues, contributing to the team's overall success and growth. As a reliable and diligent professional, Mark Howell continues to elevate Edworking's blog and brand with his well-researched and engaging content.

Trendy NewsSee All Articles
Try EdworkingA new way to work from  anywhere, for everyone for Free!
Sign up Now