3 ms·
SD spec has write protection (not the sliding switch). Protection can be temporary (resettable via a command) and permanent (not resettable). A write protected
by dmitrygr 2y ago
SD spec has write protection (not the sliding switch). Protection can be temporary (resettable via a command) and permanent (not resettable). A write protected SD card will ignore write commands from the host. Curiously, most OSs do not seem to check for this, and will pretend the writes work and then be surprised when they did not (eg: Windows, Linux).
- dividuum 2y agoFor anyone curious: https://github.com/BertoldVdb/sdtool https://github.com/BertoldVdb/sdtool is a tool to for that. I may or may not have bricked a card while toying around with in on a Pi :)
- djmips 2y agoDo you mean brick because you turned on permanent write protection (and it worked) or do you mean the card just completely died for unknown reasons?
- dividuum 2y agoIt turned on write protection. It was a while ago, so I don’t remember exactly, but things got weird as the OS assumed writes got persisted while in reality they just got completely ignored. Was a fun experiment.