Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to write protect a USB key?

I have a pen drive which I used to carry some files from my laptop to other public computers, and these public computers are virus infected. Now I want to make my pen drive write protected so that these viruses can't infect my pen drive.

What are the solutions?

share|improve this question

marked as duplicate by random Jul 4 '11 at 22:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Its the reverse of this – soandos Jul 4 '11 at 20:07

Buy a new USB drive with a write protect switch.

Short of this, there isn't any guaranteed way.

share|improve this answer
+1 I won't add any buying recommendations but they do exist and are not hard to find - I had one and it was very handy when de-lousing infected machines. – Linker3000 Jul 4 '11 at 20:52
A lot of SD cards have a write protect switch. May be less convenient, though, if the machine doesn't have a built-in cardreader. – Steve314 Jul 4 '11 at 21:55
I may be incorrect but I have read before that the implementation of the SD card slot does not demand that the write-protect switch be respected on the hardware level, so it is possible to use a device that will ignore this switch. – Frederick Jul 8 '11 at 18:59
@Frederick - You are correct... but... I have never seen any SD card read/writer that detects this - It is down to a feature on the actual card and controller chip inside the card. – William Hilsum Jul 8 '11 at 19:24

You would need to be able to edit the registry on the system you're inserting your USB drive into.

Add (DWORD) or modify existing key at


and set to 000001 to disable writing, 000000 to enable writing.

share|improve this answer
As I have said that these computers are public computers so I can't edit registry of these computers. Any other solution? – Kakim Jul 4 '11 at 21:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.