Overview– The write protection is a common issue with the flash drive/pen drive, in this article, you will see what are the reason behind disk protection and how can you remove write protection from the USB drive.
USB Flash drive or Pendrives are the easiest way to carry and transfer any type of data like image, documents, music, movies, etc from one computer to another.
The higher capacity of flash drives is also used for data storage. Flash drives are very useful in Windows Installation and certain troubleshooting.
However, sometimes you may get an error while transferring data from computer to USB flash drive that “The disk is write protected, remove the write protection or use another disk”.
Why does Your Flash Drive Get Write Protect?
Some malware or software can affect the registry entries in Windows computers, or the system admin has put some restrictions on the ports or your flash drive may be corrupt.
This error occurs when Write protection to your USB flash drive is enabled and you cannot transfer any data to flash drive and can’t delete data from flash drive, however, you can copy data from flash drive to your computer.
Write protection to flash drive is sometimes useful, say, you have some important data then enable write protection and prevent from accidental deletion or format, also it is not easy to delete data for a non-tech person.
So enabling and disabling write protection is a good idea to keep your data secure, sometimes due to the different type of malware, it automatically becomes Write Protected in such case you can disable write protection using below technique.
Remove Write Protection From USB Flash Drive Via CMD
Usually, people take Write protection as a problem, since they are unable to copy data to flash drive so this is a big issue, many people throw their flash drive assuming that it is useless now, so here are simple steps by which you can disable Write protection from a USB drive using the command prompt.
1. Insert your flash drive, Go to Start and search for cmd right click on it and “run as administrator” or windows 8, 8.1 user press Start button + X and select Command Prompt (Admin).
2. Once the command prompt is open, type diskpart and hit Enter, it will give you access to manage disk partition.
3. Type list disk and hit Enter, it will show you all connected disk to your computer, like disk 0, disk 1 along with their storage capacity.
4. Recognize your flash drive by its storage capacity like mine is 16 GB ( As per Manufacturer) which is showing here 14 GB (Actual Size) as Disk 1 or remove all other external drives except your Flash Drive, then you will get as above and Disk 1 is going to be your Flash drive.
5. Now type Select Disk # ( Select disk disk no. ) as in the above case I need to type Select disk 1 and hit Enter. It will select disk 1 and any further command will apply on disk 1.
6. Now you need to check if your flash drive is Write protected, just type attributes disk and hit enter, it will show you the current status of disk protection.
as in above image it shows that disk is write protected.
7. Now, to disable write protection from flash drive type attributes disk clear readonly and hit enter.
Above command will clear the read-only mode from your flash drive and it won’t be write protected anymore, you can copy and delete data from your flash drive as usual.
Changing Registry Value to Remove Write Protection
You may be unaware that there are some corrupt registry entries into your Windows computer leading to the write protected flash drive. Changing the registry value is a good idea if the cmd method doesn’t work.
If you have another PC or laptop then connect the flash drive to it and check if it is working or not, if it is working on another computer then there is a problem with your first PC.
If not your flash drive is write protected or it is corrupted. (Use the cmd method to fix it)
To fix the corrupt registry value follow these steps-
1. Press Win + R keys together and it will open “Run” dialog box.
2. Type in “regedit” and hit OK.
It will open registry editor, now navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
3. Make sure to highlight StorageDevicePolicies in order to see the registry values.
4. On the right pane double click on “WriteProtect”
5. In the Value box if it has a value “1” then change it to “0” and hit OK to save the changes.
The value 0 removes the write protection from the registry.
Now, reboot your computer and check if the flash drive is working or not.
By any chance of you don’t see StorageDevicePolicies in the control folder then it is easy to create.
1. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control inside registry editor.
2. In the Control folder right click on the black space in the left pane. Select New -> Key and name this folder “StorageDevicePolicies”.
3. Now highlight the created folder and you would be able to see the registry keys.
4. On the right pane right click on blank space and select “New -> DWORD” name the new key as WriteProtect and change the value to “0“.
Reboot your computer in order to make changes effective. Now you would be able to copy data to the flash drive.
Format the Flash Drive To Disable Write Protection
This is something you wouldn’t want to do if your flash drive has important data into it, but if everything fails and you want to save the flash drive then try to format it.
Just open My Computer or This PC select the flash drive and right click on it then click on Format. It may take some time to format the drive into NTFS (New file system).
If you can’t format the flash drive using Windows GUI then use the cmd to format it.
Follow the steps given in the first method till Step 5 where you would select the flash drive inside diskpart.
After selecting the disk type in format fs=fat32 quick and hit Enter.
This will completely format the flash drive, you may recover the lost data using file recovery tools like Recuva or Undelete.
Enable Write Protection to Flash Drive
Let’s say in any case you want to protect your data from deletion or formatting flash drive then you can enable write protection which will help you to secure your data in flash drive.
To enable write protection follow step 1-6 and then type attributes disk set readonly and hit enter.
This will set your flash drive in Read Only mode that is write protected.
All the above steps to enable and disable write protection applies on USB flash drive, Micro SD Cards, Camera and any other removable storage device.
In case if you have a Camera Memory card then first you need to check the lock button on the side of memory card.
If it is write protected then flip the lock switch on other side (Up Down) it will disable write protection from Camera Memory card, or if you are using memory card holder for SD Cards.
Also, you can follow the above steps if the lock button does not work or broken.
If you want to buy a USB 3.0 Flash drive for faster read and write operation then here is my recommendation for you, this flash drive and its performance are tested by me. Buy Faster USB 3.0 Flash Drive (Affiliate link) which has transfer speed up to 225 MB/s.