How To Fix Write Protection Errors On a USB Stick

Ads by Google

fix write protection on usbYou’ve got your trusty USB flash drive plugged into your computer, and you go to copy some files to it. Then you get this – “The disk is write protected. Remove the write protection or use another disk.” Then you say, “Whaaaaaa….?!?!” How did this happen? This is your USB stick, you should be able to read, write and do whatever you want with it!

Deep breath and stay calm. It is just an error message. You and I are going to go through a few simple steps to fix write protection on USB drives and make your USB flash drive work again, in the manner that you expect it to. It’s just technology, we can fix it.

Step 1 – Check The USB Drive For Viruses

Every time you plug a USB drive into your computer, you should be automatically scanning it for viruses – especially if you have used it on computers that you don’t own, or public computers. Viruses often act in a manner that will fill your USB drive with nonsense files and this can make your USB drive respond with the Write Protected error.

Depending on the antivirus software that you have, you may be able to configure it to automatically scan USB Drives when they are plugged in. If not, usually you can navigate to the USB drive in Windows Explorer, right-click on it and make your antivirus software scan it manually.

fix write protection on usb

If you do find a virus, then it would be best to eliminate it using your antivirus software. I’d also recommend performing a scan with at least one other antivirus scanner, as not all antiviruses are 100% complete in their anti-virus definitions. Chances are where there is one virus, there are two or more.

Ads by Google

I recommend reading Joel’s article, “Make Sure You’re Clean With These Free One-Time Scan Antivirus Tools“.

Step 2 – Check The USB Drive Body

Normally I’d make something this simple, step one. However I’d rather see you protected from viruses first and then have you check the simple thing factor. Some USB flash drives have a mechanical switch on them that puts them into Write Protect mode.  This can be a very small slider switch which may have caught on something in your pocket or computer case.

If this is the situation, then simply move the switch to the unlocked position and try to copy files again. It should work now.

fix write protection

On the upside there aren’t a lot of USB sticks with these locks on them anymore. So there is a good chance that’s not the issue for you. On the downside, if this isn’t the issue the following fixes are slightly more complicated.

Step 3 – Check To Make Sure the Flash Drive Isn’t Full

If your USB stick is full, you may also get the Write Protect error message. So, simply pop into Windows Explorer, find your USB Drive, right-click on it and select Properties. This will give you the nice pie chart display of the Used and Free space available on your USB Stick.

(Fun Fact: The scientific reason why pie charts are so popular is that people like pie). It appears that my drive is barely used at all!

fix write protection

Step 4 – Is It Just That File?

Make sure that it isn’t just the file that is write protected. Yes, you would get a different error message, but maybe you jumped to conclusions and thought it was the whole USB flash drive. It happens. If I can freak out like that, so could you.

fix write protection

Right-click on the file that you’re trying to write to and then click on Properties. Now you’ll see some options at the bottom of this window and one of them is Read-only. Make sure this box is unchecked and then click on the Apply button. You should now be able to write to this file.

fix write protect usb drive

Step 5 – Diskpart Command Line Utility

Have you ever worked in the command line on Windows? Well you’re about to. It’s not as scary as one might think, and as such it is the next logical step before going into the Windows Registry.

Click on your Start Menu and type cmd in the Search for programs and files field. Now, hit your Enter key. You’ll see a window looking like the following:

fix write protect usb drive

Type in the command diskpart and hit Enter. Diskpart is a disk-partitioning tool that is built into Windows and is accessible through the Command Line Utility. With it, we can change the values associated with your USB drive.

A new command line window will open. Type list disk and then hit Enter. You’ll now see a list of disks available in Windows. If your USB drive isn’t listed here, this won’t help you any. You can see in my example below that all that is showing are the two partitions on my computer’s hard drive. My USB drive doesn’t show up in here for whatever reason.

fix write protect usb drive

If it is listed here, make a note of the number beside it. Make sure that this is indeed your USB drive! Now type the command select disk 3, assuming your USB drive is number 3, and hit Enter. Type attributes disk clear readonly and then hit Enter. You have now cleared any Read-Only attribute that might be on that USB drive.

Type exit and hit Enter to leave the DiskPart utility. Try your USB drive again. Still getting the Write Protect Error?

Step 6 – Into the Registry We Go

If none of the previous steps helped you out, then we have to do something a little dangerous – we are going into the registry. If you are not comfortable going into the registry, I understand. You may want to skip to Step 7, but that means going on to formatting your USB drive. Or, you can have a friend who is a computer technician check the registry for you. Or you can try it out yourself. This is a fairly simple registry change, so hang in there. I think you can do it.

Click on your Start Menu and type regedit into the Search for programs and files field. You’ll see something like the image below.

Hit your Enter key. The Registry Editor window will now open. By clicking on the arrows next to the menu items, navigate to


and look for a key named WriteProtect.

If that key exists, right-click on it and click on Modify.

Now, you’ll probably find that the value for this is set to 1. 1 means “Yes, write protect my USB storage device.” So you can guess that 0 means “No, don’t write protect my USB storage device.” Now change that value to 0 and click on the OK button.

Close Registry Editor, remove your USB device and then plug it back in again. You should now be able to write to your USB stick.

If not, it is Disk Formatting Time.

Step 7 – Format The USB Drive

WARNING: Make sure that you back up all the files and information from your USB drive to your computer. All data will be lost once the USB drive is formatted.

Formatting the hard drive is a last resort. However, it should make your USB drive able to be read and written to. Prior to formatting the USB drive, determine what kind of file system it already has – NTFS or FAT32. Normally the file system that it already has will be the file system that is best suited for the drive.

Remember how we went into Windows Explorer, right-clicked on the USB drive and selected Properties back in Step 3? Let’s do that again.

There it is – File system: FAT32. If you want more information on file systems and formatting USB Flash Drives, Tina has a solid article on that, called, “How To Format A USB Drive & Why You Would Need To“.

Close out the Properties window and right-click on your USB drive in Windows Explorer again. Click on Format.

In the Format window, you’ve got some options. We’ve already determined that we’re going to use the FAT32 File System for this particular drive. For Allocation Unit Size, select the highest amount you can if you’ve got a USB drive with a capacity over 1GB, go smaller if your USB drive is smaller. I don’t know of too many people with a USB flash drive less than 1GB so 64 kilobytes should be fine.

fix write protection on usb

You can make the Volume label something that is meaningful to you. I’m just leaving it as KINGSTON for now. Because we may be dealing with a USB drive with hardware issues, I suggest unchecking the Quick format box. That will force the format to do more than just erase files. If there is a bad sector on this USB drive, a full format will will throw an error. If that’s the case, then you may want to check out my article, “How To Make Corrupt USB Jump Drives Work Again“.

The formatting shouldn’t take too long. Of course, the larger the volume, the longer the formatting will take. Assuming there is no physical problem with the drive, your USB drive will be formatted, cleaned and ready to read from and write to.

The Take Away

Sometimes the problem is simple and can be dealt with simply. Try those methods first as they are most often the correct ones. If the problem is deep and requires drastic measure, make sure that is indeed the case. You’ve got a lot more troubleshooting tools in your arsenal now and should be able to get your USB drives working again, potentially saving you a tidy sum of money.

And all we ask is that you let us know how it went, in the comments below. Of course, if you have any additional tips, we like to read those too.

Image Source: Padlock USB via Shutterstock

Join live MakeUseOf Groups on Grouvi App Join live Groups on Grouvi
Raspberry Pi Projects
Raspberry Pi Projects
185 Members
DIY Tech Projects
DIY Tech Projects
159 Members
Arduino Projects
Arduino Projects
133 Members
Ads by Google
Comments (217)
  • www

    hazvishande zvima steps zvacho…..not working all them

  • S.Luke

    Unfortunately none of those suggestions worked. When I tried to format the USB I still got the error message that it was a protected disk. I did the Diskpart and the read-only state said yes but the read-only said no. This is a 2 gb usb and I would like to be able to use it. I did have files on there but now can’t seem to see them. I’m willing to lose them if I could get it to format.

  • Jeremy Lanfranco

    The reason I want to write protect is to be able to insert my pen drive into public computers without the pen drive being infected with viruses. I give lectures at university and most computers are infected. I have managed to write protect using the attributes set readonly command but it will only protect my pen drive on the computer I have enabled write protect. Is there a way to write protect it for all computers.?

    • Guy McDowell

      In Windows Explorer, select your USB drive.
      Right-click on that drive and select Properties.
      In the new window, click on the Security tab.
      Select the user Everyone and click on the Edit button.
      At the bottom of the resulting window check the boxes in the Deny column next to Full Control, Modify, and Write.
      Click on the OK button.

      Now that drive cannot be written to from anyone, including yourself. To undo that, just follow the same steps but uncheck the Full Control, Modify, and Write boxes.

  • Larry Zweig

    With me the readonly would only come a certain amount of time after connecting the usb… maybe 30 seconds, so I had that much time to start formatting, but after this time, none of the 7 steps helped.

  • Rosano Torres

    I’ve finished trying your Steps 1 to 7 but none of them worked. I’m still encountering same problem. Every time I try to format my USB drive, I still receive a message “The disk is write protedted.” Please helped me. I am also a technical person but may be not as good as you. In fact I have done all your steps except for Stept 6 (editing the registry) before I come to encouter your web site. What else can I do to remove that protection?

    • Rosano Torres

      By the way when I tried to edit my registry, I don’t have the folder …..\StorageDevicePolicies all I have is …..\Storage

    • irene

      same problem here. How did you fix it at last?

    • Guy McDowell

      You can create that folder. But I get the feeling you’re not an expert with the registry, so maybe you should try something else.

      Working in the registry is tricky business. It can make your Windows inoperable and force you to reinstall it.

Load 10 more
Affiliate Disclamer

This review may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.
Affiliate Disclamer

This review may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.
New comment

Please login to avoid entering captcha

Log In