Linux: Test with lsusb; use smartctl (if supported) or dmesg to view errors.
Fake-capacity devices: Use F3 (Fight Flash Fraud) on Linux/macOS or h2testw on Windows to detect and restore actual capacity. For fake devices, reformatting can't fix fraudulent firmware — return/refund.
Examples: ChipGenius, SMI MPTool, Phison MPTool.
Function: These interact directly with the USB controller firmware. They can perform a "factory reset," rebuild firmware, and correct capacity errors.
Verdict: High risk. Requires technical knowledge to identify the specific Controller Vendor ID (VID) and Product ID (PID). Using the wrong tool will brick the device.
2.2. Partitioning (Logical Structure)
Review: USB Low-Level Format Tools & Process
CLI with identical options for scripting and automation.
Return structured exit codes and JSON logs for automation.