News for hackers. Stuff that matters.
Re:Testing an SD Card's true capacity by qb45 on Tuesday July 11, 2017 @10:26AM (#14744418)
> My method of testing is rather simple - for 64G card generate a file of 63864569856 bytes of random data, dd it onto a card dd result off the card, fingerprint both. If they match the card is probably good.

One optimization:

  dd bs=1M count=N if=/dev/urandom | tee /dev/mmcblk0 | md5sum
  md5sum /dev/mmcblk0
Re:Testing an SD Card's true capacity by notyourday on Tuesday July 11, 2017 @10:35AM (#14744489)
Ah, I generated a file once and now it is sitting on my disk drive instead of generating it every time. This also allows me to guarantee that I have the data that I have written so I can see if there's a specific set of corruption that happens. That's for example how I found that certain cards do 16GB loop.