News for hackers. Stuff that matters.
Re:PC Floppy Copy Protection: Formaster Copy-Lock by jmclnx on Wednesday August 28, 2024 @11:14AM (#41380449)
The only real thing I miss from Diskettes is Hardware Write Protection. Too bad flash drives did not have that.

Yes, I can mount ro, but having a Write Protection switch would have been nice :)

Re:PC Floppy Copy Protection: Formaster Copy-Lock by freedomben on Wednesday August 28, 2024 @11:20AM (#41380505)
I likewise really miss that. Some early USB drives actually had those too, but it's been a really long time since I've seen one.
Re:PC Floppy Copy Protection: Formaster Copy-Lock by self_awareness on Wednesday August 28, 2024 @02:27PM (#41382617)
Big SD cards also have a physical switch that enables readonly mode, although I don't know if it's the reader firmware which disallows write requests, or simply the software driver needs to support it.
Re:PC Floppy Copy Protection: Formaster Copy-Lock by martijnvds on Wednesday August 28, 2024 @11:30AM (#41380615)
A bunch of my SD cards have a write protect slider on them.

Also one of the SD/microSD adapters in my drawer has it.

Re:PC Floppy Copy Protection: Formaster Copy-Lock by sgerenser on Wednesday August 28, 2024 @12:40PM (#41381396)
Apparently the write protection on SD cards is entirely optional and only enforced on the drive/reader side. The reader can just choose to ignore it and allow you to write to the card willy-nilly: https://electronics.stackexchange.com/questions/325868/how-d...

And apparently is common for them to be ignored: https://superuser.com/questions/1737227/is-it-now-typical-fo...

Re:PC Floppy Copy Protection: Formaster Copy-Lock by tjoff on Wednesday August 28, 2024 @02:04PM (#41382324)
Floppy drives are the same. Though maybe more commonly respected.
Re:PC Floppy Copy Protection: Formaster Copy-Lock by dmitrygr on Wednesday August 28, 2024 @12:59PM (#41381578)
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).
Re:PC Floppy Copy Protection: Formaster Copy-Lock by dividuum on Wednesday August 28, 2024 @01:09PM (#41381694)
For anyone curious: 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 :)
Re:PC Floppy Copy Protection: Formaster Copy-Lock by djmips on Wednesday August 28, 2024 @02:08PM (#41382376)
Do 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?
Re:PC Floppy Copy Protection: Formaster Copy-Lock by dividuum on Wednesday August 28, 2024 @04:08PM (#41383698)
It 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.