Topic: SD card low-level reset/formatting CMD38
I have been looking for a way to reset a SD card or USB drive, i.e., to let the controller know all cells to be writable again.
E.g., I have overwritten a SD card from /dev/urandom to purge (visible) data remnants (nothing critical) and want to use the card for a new purpose (my raspberry pi...).
Since the device (USB reader controller+memory controller) does not support trim
hdparm -I /dev/sdX | grep -i TRIM
I wonder, how the wear leaving would affect the card, since I suppose the controller does not know, that all cells are free to be written again.
Apparently, SD cards have a command 'CMD38'
https://www.sdcard.org/downloads/pls/pd … p;e=EN_SS1 (p. 38)
that afais 'resets' blocks on a card.
So far, I have found only an official tool for Win/Mac (near to the specifications) for such a low-level operation - but nothing under Linux.
Would something like that (if possible) be reasonable as an option for gparted? (probably a bit outside the formatting business)
Cheers and thanks,