c0xc / CapacityTester

Use CapacityTester to check if your USB thumb/flash drive lies about its capacity. Graphical tool to detect fake USB drives.
GNU General Public License v3.0
108 stars 14 forks source link

Disk Test - Write error after 0MB #24

Open JLBrocx opened 4 months ago

JLBrocx commented 4 months ago

Issue running a disk test against a USB / lightning USB stick. It fails instantly after starting. image image

fbruand commented 4 months ago

Hello,

Have you tried copying photos, pdf files or other files to see if they are still readable on the USB flash drive? I myself have two fake "Samsung" USB sticks at home which apparently have the same symptoms as yours.

If you have the opportunity to test your USB flash drive with other software, such as AxoFlashTest, H2testw or ValiDrive, please let me know. This will help determine whether the problem lies with the USB flash drive itself or with CapacityTester under Windows.

JLBrocx commented 4 months ago

I confirmed the capacity with h2testw, The capacity seems to be valid. Cheers

c0xc commented 4 months ago

Hi, it seems it couldn't even start the test. That selection dialog in your screenshot is actually from the disk test (not the volume test which failed), have you done that? It will wipe your usb stick so you'll have to reformat it afterwards (and if you don't but still have that other volume test open it could explain the error).

Juksefantomet commented 2 months ago

Adding a comment here, got the same on Ubuntu. When not running the program as sudo (root / elevated privileges). The program itself clearly stated "We will ask for elevated privileges when needed", but failed instantly and never did ask for sudo elevation.

Nathan22211 commented 1 month ago

same here on arch linux, I believe this to be a perms issue a bit since the app doesn't ask for sudo on launch, despite some of it's features needing root it seems

c0xc commented 1 month ago

To the last two comments: The disk test requires root privileges and if the program is not started as root, it attempts to gain root privileges during the test, in other words this is for convenience. This requires an active PolicyKit agent and sudo setup. Sounds like I'm not catching a failed attempt to gain root in some cases. But note that you can always start CapacityTester as root to avoid this.