Score:1

Setting readonly on a USB stick

jp flag

I want to create a USB stick with a tool to scan for viruses. I installed the software and after that I set:

hdparm -r1 /dev/sdc1

When I check the USB stick I get this:

hdparm -r /dev/sdc1 /dev/sdc1: readonly = 1 (on)

When I unplug the USB stick and plug it back in I get this:

hdparm -r /dev/sdc1 /dev/sdc1: readonly = 0 (off)

The write protection seems not to be not working.

How can I make the setting persistent?

C.S.Cameron avatar
cn flag
You can install a Guest User: https://askubuntu.com/a/1223764/43926. This allows the Admin user to modify the OS but prevents the Guest from modifying it. I have seen another method to add a Guest User: https://ubuntuhandbook.org/index.php/2021/07/create-guest-account-ubuntu-20-04/ , but have not tried it yet.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.