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
CoverDecoding R1: The Future of AI Reasoning ModelsR1 is an affordable, open-source AI model emphasizing reasoning, enabling innovation and efficiency, while influencing AI advancements and geopolitical dynamics.
BY Mark Howell 26 January 2025
CoverSteam Brick: A Minimalist Gaming Console Redefines PortabilitySteam Brick: A modified, screenless Steam Deck for travel, focusing on portability by using external displays and inputs. A creative yet impractical DIY project with potential risks.
BY Mark Howell 26 January 2025
CoverVisual Prompt Injections: Essential Guide for StartupsThe Beginner's Guide to Visual Prompt Injections explores vulnerabilities in AI models like GPT-4V, highlighting security risks for startups and offering strategies to mitigate potential data compromises.
BY Mark Howell 13 November 2024
CoverGraph-Based AI: Pioneering Future Innovation PathwaysGraph-based AI, developed by MIT's Markus J. Buehler, bridges unrelated fields, revealing shared complexity patterns, accelerating innovation by uncovering novel ideas and designs, fostering unprecedented growth opportunities.
BY Mark Howell 13 November 2024
CoverRevolutionary Image Protection: Watermark Anything with Localized MessagesWatermark Anything enables embedding multiple localized watermarks in images, balancing imperceptibility and robustness. It uses Python, PyTorch, and CUDA, with COCO dataset, under CC-BY-NC license.
BY Mark Howell 13 November 2024
CoverJungle Music's Role in Shaping 90s Video Game SoundtracksJungle music in the 90s revolutionized video game soundtracks, enhancing fast-paced gameplay on PlayStation and Nintendo 64, and fostering a cultural revolution through its energetic beats and immersive experiences.
BY Mark Howell 13 November 2024
CoverMastering Probability-Generating Functions: A Guide for EntrepreneursProbability-generating functions (pgfs) are mathematical tools used in probability theory for data analysis, risk management, and predictive modeling, crucial for startups and SMEs in strategic decision-making.
BY Mark Howell 31 October 2024
CoverMastering Tokenization: Key to Successful AI ApplicationsTokenization is crucial in NLP for AI apps, influencing data processing. Understanding tokenizers enhances AI performance, ensuring meaningful interactions and minimizing Garbage In, Garbage Out issues.
BY Mark Howell 23 October 2024
Try EdworkingA new way to work from  anywhere, for everyone for Free!
Sign up Now