On Thu, Apr 4, 2024 at 4:06 AM Stefan Monnier <monn...@iro.umontreal.ca> wrote: > > > I have a 128 MB USB flash drive from back in the day that includes a write > > protect switch. There are few products today that offer that feature. > > Side note: AFAIK this "write protect switch" doesn't prevent writing. > It just tells your card reader that you'd like to avoid writing to it. > Whether it ends up doing what you want depends on the hardware exposing > that info to the driver and the driver paying attention to it.
This is certainly true for SD cards, but as OP is talking about a USB flash drive, such a switch might very well enforce a physical on-drive write protection that can't be overridden even by a compromised operating system. Of course, you never know with proprietary hardware unless the design is published or someone traced out the connections.