Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

f3probe hangs on chineese flash #197

Open
airbagi opened this issue Mar 3, 2023 · 2 comments
Open

f3probe hangs on chineese flash #197

airbagi opened this issue Mar 3, 2023 · 2 comments

Comments

@airbagi
Copy link

airbagi commented Mar 3, 2023

Hi,

I have flash drive from Ali that is declared 128Gb, but actually not. I tried to use this tool to recover actual space of the drive, but with no luck.

sudo f3probe --destructive --reset-type=1 --time-ops /dev/sda
F3 probe 7.2
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.

I used several reset-types but it just show nothing.
It also does not respond on Ctrl+C keypress, only detach flash from usb to break procedure.
I waited about 12 hrs, so I think it is enough.
Because this utility does not show any progress, I can't understand its state.
Can you help me with that?

Thanks

@AltraMayor
Copy link
Owner

Hi @airbagi,

Given that Ctrl+C is not working, there's a chance that the drive is getting a system call stuck in the kernel. You can test this hypothesis by running f3probe, waiting 30 minutes (or longer) to make sure it's stuck, and calling kill -9 <F3PROBE_PID> from another terminal. You must replace <F3PROBE_PID> with the PID of the process f3probe being tested. You can get this number using pstree -p | grep f3probe.

If f3probe is not immediately interrupted after running kill - 9, a system call is stuck in the kernel. If this is the case, there's nothing that f3probe can do; this is an issue for a kernel developer. You can gather some information of what's going in the kernel with the command dmesg.

@airbagi
Copy link
Author

airbagi commented Mar 6, 2023

Thank you, problem solved with the help of AlcorMP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants