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.

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.

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

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!

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.

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.

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:

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.

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 1, assuming your USB drive is number 1, 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

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

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.

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.

Subscribe To Our Newsletter

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

We respect your privacy and take protecting it seriously.

LEAVE A REPLY

Please enter your comment!
Please enter your name here