Can Not Write File to USB Drive, How to Fix

Oct 30, 2019 16:07. Posted by to Tutorials

Write protection is always one of the frustrating problems when you are trying to copy files from a computer to a USB drive that is read-only. If you are facing the copy-protected issue with your USB drive, here are potential solutions to fix the "Cannot write files to USB" problem.


You have almost done the work today and there is only one file left on the USB drive plugged into your computer. However, you suddenly receive a popup message: "The disk is write protected. Remove protection." There is something wrong since it's your USB and you can read, write or do anything you want.


If you encounter problems, you should keep calm to have your USB drive fixed. Fortunately, there are a few helpful solutions that can fix the copy protection issue on your USB drive. Read on this guide to solving it.

#1 Check USB Drive for Malware

Every time you connect your USB drive to the computer, it will automatically scan for viruses, especially if you use it on a non-personal computer. Viruses can fill up your USB drive without any files, which can make your USB drive display the error.


Depending on the antivirus software running on your Windows computer, you can configure it to automatically scan peripheral devices when they are plugged in. If not, open your USB drive in Windows Explorer, right-click on it and scan for a virus. If there is a virus, get rid of it by using the antivirus software.


Malware USB Detect

#2 Use DiskPart Command Prompt

Do you usually use Command Prompt on your Windows? If you are not familiar with it, do not worry since it's not too difficult. You simply follow these steps below to fix 'Copy-protected' issue on your USB drive. DiskPart is a command-line utility to manipulate and control the partitions on your hard drive, and it's fairly simple to use.


Step 1: Press Windows + X keys at once, and choose Command Prompt (Admin)- Windows PowerShell (Admin) from the popup.


Step 2: From there, type in diskpart, and hit Enter.


Step 3: Enter the list disk in cmd and you will see a list of available mounted disks.


Step 4: Make sure your USB drive shows up in cmd windows. Note the number of your disk and then enter the following command: select disk [your disk number]


List Disk Command


Step 5: Next, enter the following command: attributes disk clear readonly


Wait for a few seconds and you have already cleared the remaining read-only file, attributing from your connected USB drive.


#3 Use Registry to Fix Copied Protection

If none of the mentioned solutions above could fix the copy protection issue on your USB drive, you should not worry. There are a few tricks for you. The next method is to edit the Windows Registry.


If you are not happy to be using the Windows Registry method, you can move on to the next section: that is, how to format your USB drive. But, if possible, you should still give this solution a shot to fix the error. Press Windows and R keys at once to open the Run dialogue. After that, type in Regedit and hit Enter. Next, navigate to the following location:




From there, look for WriteProtect. If you see it, simply double click on it to open the Edit DWORD (32-bit) value box. In this box, set one of two values: 1 or 0. 1 means that your USB storage device can be written, while 0 means your USB storage device is protected. In this case, you need to set the Value to 0. When you are done, hit the OK button

#4 Format USB Drive

The last resort you should try is to format it again. But, before getting started, make sure you have already backed up all your important data to the hard drive in your Windows PC. All the data will be lost after you format your drive. Performing a format can make your USB able to read and write again. Prior to formatting your drive, choose the kind of system it's running on: FAT32 or NTFS.


Step 1: On your computer, open Windows Explorer and click on My Computer. You will have an overview of drivers on your computer. Right-click on your USB drive and click on the Properties option.


Step 2: Right-click on the USB drive and choose Format. There will be a small popup with multiple custom options like File System and Volume Label. But you should only note the Quick Format option.


Step 3: You can change your Volume Label to something that is memorable. Since you need to fix hardware, so do not tick on Quick Format box - it will just erase your files instead of formatting your USB disk. In case there is a bad sector, a full format will show an error. Wait for the process to be done and your USB drive can then be formatted and ready to use.


Format USB Drive



While the 'unable to write files to USB' (copied protected) issue is not too common, it can be fixed easily just by following the mentioned solutions above. However, if none of them helped you, the last resort is to format USB drive. It will erase all data stored inside it, but the copy protection issue will be addressed.



Web Analytics