How do I remove the digital write protection/lock switch from micro sd cards?

leechtek

Prominent
May 31, 2017
2
0
510
I've tried using physical adapters to switch the write lock off, disabling write protection policy registries in Windows, using SDFormatter, using diskpart to clear the write protection attribute, and using gparted to completely format, repartition, wipe, overwrite, and even change the architecture from MBR to GPT.

I want to use bertold's sdtool but when compiling there seems to be missing assets in "obj".

Referencing bertold's sdtool:

Most SD cards have a physical write protection switch. This switch is read by the reader instead of being enforced by the card. Of course, many readers ignore this signal and will happily write to a write protected card. Furthermore, Micro SD cards do not have a mechanical switch.

It is relatively unknown that SD/MMC cards also have an electronic write protection system. Every card has two programmable flags, one for temporary write protection and one to lock the card forever. Writing these flags is not supported by most SD host devices. To remedy this, this page presents a program that allows a Linux host to configure the protection register.
Sources:
http://www.bertold.org/sdtool/
https://youtu.be/_fZfDGWpP4U?t=36m41s
 

leechtek

Prominent
May 31, 2017
2
0
510


Because I bought two Samsung class 10 micro SD cards that both oddly got software write locked very soon after first use. I know there might be a warranty system in place but I'd rather keep trying this first since sdtool seems promising.