Skip to main content

How to Make USB Drives Read Only

There are two reasons why you might want to make USB drives such as Flash drives or external hard disks read only.

  1. 200526544-001You own the computer and want to prevent information on your computer from leaking out but need the ability to read data from a USB drive. You cannot block access to USB ports because you need them. But you also cannot grant full access to them because that would allow anybody to steal files from the computer. The middle route is to deny write access to the USB ports.
  2. You own the USB drive and you are tired of getting infected with viruses from other people’s machine.

Let’s look at these two scenarios

When you own the computer

This is easy. All you have to do is prevent write access on your computer’s USB ports. This can be easily done with a registry key.

Open Registry Editor and navigate to the following registry key:


Create a new DWORD under this key and name it WriteProtect. Give it a value of 1.

The USB ports on your computer are now read only. To make them capable of writing data again, change the value of the WriteProtect key to 0.

Alternatively, you can use programs like Thumbscrew and Wenovo USB Disks Access Manager that lets you toggle the WriteProtect mode quickly without opening the Registry Editor.

When you own the USB drive

Some USB drives have physical write-protect switches on the body of the drive similar to the ones found on floppy disks. You throw the switch to the read-only position and nothing can be written to the drive. But these drives are hard to come by in stores and even online.

The next viable solution is a software called USBDummyProtect. This utility creates a dummy file that takes up all free space available on the drive. With every byte of free space gone there is no room for further data to be written to the drive, essentially turning it into a read-only drive. That’s some innovation!

usbdummyprotect[12] usbdummyprotect2[3]

Just copy the executable file of USBDummyProtect to the USB flash drive and run the tool. A dummy.file will be created and the drive will show 0 bytes remaining. You can now plug this drive on any infected PC and stay safe. To remove the dummy.file, simply delete it and the space will be recovered. If your flash drive is formatted in FAT32 and has more than 4GB of free space, USBDummyProtect wouldn’t work because of the limitation of the FAT specification that prevents creation of file larger than 4GB. So use NTFS for drives larger than 4GB.


  1. Now how do I remove "read only" from a USB that was being used to try the Google OS and used the WinDisk Imager Utility? I've tried about everything including GParted.

  2. You format the drive from Windows Explorer. No need to use any fancy tools.

  3. Already tried--says the USB is read only--so it won't format. HP format tool doesn't even work.

  4. OK, here's what you do. Download HxD and use it to view the raw sectors of the drive (NOT the logical sectors). Unselect read only. It will warn you. Open another normal drive of the same size, cut and paste the MBR sector 0 from the normal drive to the affected drive. Save it. It will warn you again. Yank the drive. Stick it in another machine and format it normally. Windows and HP won't know what hit 'em.

  5. COPY and paste the MDB, not cut and paste.


Post a Comment

Popular posts from this blog

How to Record CPU and Memory Usage Over Time in Windows?

Whenever the computer is lagging or some application is taking too long to respond, we usually fire up task manager and look under the Performance tab or under Processes to check on processor utilization or the amount of free memory available. The task manager is ideal for real-time analysis of CPU and memory utilization. It even displays a short history of CPU utilization in the form of a graph. You get a small time-window, about 30 seconds or so, depending on how large the viewing area is.

Diagram 101: Different Types of Diagrams and When To Use Them

Diagrams are a great way to visualize information and convey meaning. The problem is that there’s too many different types of diagrams, so it can be hard to know which ones you should use in any given situation. To help you out, we’ve created this diagram that lays out the 7 most common types of diagrams and when they’re best used:

How to Schedule Changes to Your Facebook Page Cover Photo

Facebook’s current layout, the so called Timeline, features a prominent, large cover photo that some people are using in a lot of different creative ways. Timeline is also available for Facebook Pages that people can use to promote their website or business or event. Although you can change the cover photo as often as you like, it’s meant to be static – something which you design and leave it for at least a few weeks or months like a redesigned website. However, there are times when you may want to change the cover photo frequently and periodically to match event dates or some special promotion that you are running or plan to run. So, here is how you can do that.