On 19/09/2020 15.26, Anton Aylward wrote:
On 19/09/2020 05:29, jdd@dodin.org wrote:
Le 19/09/2020 à 09:00, Carlos E. R. a écrit :
But I do not see a description of the algorithm.
IMHO pretty simple. Fill the disk with numbered files. Read to see if the numbers are there...
Simple but smart. Write 1 megabyte numbered files. Along the way it tests the writeability/readback looking for, not only the 'high water mark' that is the drive's capacity, but any errors along the way.
Yes, I suppose you could use a script that does a stepwise DD+offset.
Yes I suppose using DD you could have input files with different byte patterns and try each of them before moving onto the next bock on the drive.
Doing that kills many lives out of the stick, it is not clever.
The bottom line here is that I ALWAYS test my 'portable storage devices' beforehand. I do not want to find out they were failures or 'not as advertised' AFTER I've used them to take unrepeatable photographs.
I've never found a bad stick or bad card. Then I buy at reputable places... -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)