Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Flash drives are Readable and Writable. If I mark all files in them as Read-Only the user can delete all files without seeing no warning.

How to mark the whole drive as Read-Only?

share|improve this question
You could try for a hardware solution. – Synetech Dec 1 '13 at 16:46
up vote 4 down vote accepted

If the drive is NTFS formatted, you open the properties window in the files in question, head to the Security tab, and disable write permissions for users other than yourself.

share|improve this answer
This solution will also work with Mac OS X as Macs can read NTFS partitions but can't write to them. – MHrappstead Nov 11 '10 at 18:42
But linux users won't respect such restrictions, right? – Jader Dias Nov 11 '10 at 18:43
@user53850 I'm not entirely sure. I believe you can change the permissions under Linux, but I will have to check. – Paul Lammertsma Nov 12 '10 at 2:35
I promised to follow up, so I checked renaming a file within a password-protected Windows user profile under Ubuntu 10.10. Sure enough, Linux has no problems modifying it. I suppose there's not a cross-platform fix. Perhaps you should consider using a optical medium or placing the files within a TrueCrypt volume where write-access is password protected (though this requires software to be installed for each client). – Paul Lammertsma Nov 15 '10 at 10:22

There is a way of disabling write access for all drives connected to the current Windows instance:

  1. Go to Start -> Run -> Type regedit and hit Enter or click on the OK button. Browse to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

  2. Create a new key called StorageDevicePolicies Right click on the Control, select New -> Key and type in StorageDevicePolicies

  3. Create a DWORD called WriteProtect under StorageDevicePolicies that you created in step 2 and set the value to 1.

share|improve this answer
Take note that this only works on the machine the USB drive is plugged into. – Paul Lammertsma Nov 12 '10 at 2:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .