Article 5JJW5 How to make USB stick readonly - to prevent from accidental overwrite.

How to make USB stick readonly - to prevent from accidental overwrite.

by
andrewysk
from LinuxQuestions.org on (#5JJW5)
I got a usb stick preinstalled with win os image that i keep. I made a wrong move and destroyed the usb stick, it is no longer able to install win7.

Hence i would like to make it readonly so that that won't happen in future.
I know how to make it in windows os.. but i have not find way to do it in linux.

After much searching around, only found this.
Is this the method ? Is there any other method ?
Code:$ sudo hdparm -r1 /dev/sdcThankslatest?d=yIl2AUoC8zA latest?i=mGIrfeNGMmQ:OTrNU6zNvW8:F7zBnMy latest?i=mGIrfeNGMmQ:OTrNU6zNvW8:V_sGLiP latest?d=qj6IDK7rITs latest?i=mGIrfeNGMmQ:OTrNU6zNvW8:gIN9vFwmGIrfeNGMmQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments