How to remove the write protection from a flash drive

Sometimes it is impossible to format a USB flash drive or SD card, transfer or write data to it. The Windows system displays an error message saying, “The drive is write-protected. Remove the protection or use a different drive”. In this article, we will analyze the causes and solutions to this problem.

How to remove the write protection from a flash drive

Contents

  1. Mechanical write protection
  2. Checking the flash drive for viruses and other malware
  3. How to unlock a flash drive using the Windows Registry
  4. Removal of protection through group policy
  5. Removal of write protection with the Diskpart utility
  6. Removal of protection by software from third parties
  7. How to remove write protection from a single file
  8. What to do if important data was lost

Mechanical write protection

Manufacturers no longer use hardware write protection on flash drives for quite some time. However, if we are talking about SD cards, this switch is still in use. Sometimes even experienced users forget to check this switch, which is on one side of the device.

Therefore, the first thing to do is check that it is not in the “lock” position and if so — move it to the open position.

How to remove the write protection from a flash drive

A recording error may occur due to a flash drive overflow. Check the free space and file system of the flash drive. For example, on FAT32 it will not be possible to write a file larger than 4 GB.

How to remove the write protection from a flash drive

Checking the flash drive for viruses and other malware

Sometimes a virus that is already in your system can also block writing to a USB memory stick. In addition, maybe it got into it from this flash drive, and to save itself from being erased, it turned on the protection. In this case, it makes sense to check the drive for viruses, both system built-in tools and professional antivirus. You can download, for example, a bootable antivirus kit from Avast or Nod32. You can also create a bootable Windows 10 flash drive, boot from it, install antivirus and check your problematic USB stick.

To start the scan, you need to run your antivirus, and then select which drive to scan.

It is worth noting that in all modern antivirus programs, the interface is approximately similar. Therefore, problems with scanning should not arise.

How to remove the write protection from a flash drive

If the antivirus found the malware, we remove it immediately. After that, the write protection should be removed.

How to unlock a flash drive using the Windows Registry

It often happens that the issue is not with viruses, but a Windows system that blocks files and the problem lies in the registry.

Important: Before making any changes, create a Windows recovery point. If you made a mistake and have a problem with your computer, you can recover the registry and bring your system back to its original state.

To unlock a flash drive with the help of a registry you should:

  1. Right-click on the “Start” button, select “Run”, enter the regedit command and confirm the action by pressing “Enter” How to remove the write protection from a flash drive
  2. In the registry editor go to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > StorageDevicePolicies

    Create this option if it is not available in your system.

    How to remove the write protection from a flash drive
  3. After creation, go to this section, create there a DWORD 32-bit value (or 64 bit depending on your system) and call it WriteProtect. How to remove the write protection from a flash drive
  4. In the Value Data text field, write “0” (zero) How to remove the write protection from a flash drive
  5. Reboot the computer.

    After rebooting, the write protection of the flash drive should be removed.

Removal of protection through group policy

If you can’t disable the registry protection, it might be a matter of Group Policy

In this case, to remove the protection from the flash drive, it is necessary:

  1. Press the “Win+R” key combination, enter the gpedit.msc command and press Enter.

    The Windows Group Local Policy Editor will be displayed.

    How to remove the write protection from a flash drive
  2. Go to the following path: Computer ConfigurationAdministrative TemplatesSystemRemovable Storage Access.

    Find “Removable Storage Access” and make sure that “Removable Disks: Deny execute access”, “Removable Disks: Deny read access” and “Removable Disks: Deny write access” are disabled.

    How to remove the write protection from a flash drive
  3. If any of these options are enabled, double-click on it and select “Disabled” to turn it off. How to remove the write protection from a flash drive
  4. Reboot the computer.

Removal of write protection with the Diskpart utility

If a user is afraid to make changes to Windows registry keys and does not want to waste time manipulating Windows Group Policies, you can use the diskpart utility.

  1. Right-click on “Start” and select “Windows PowerShell (Admin)” How to remove the write protection from a flash drive
  2. Enter the diskpart command How to remove the write protection from a flash drive
  3. Perform the following commands one by one:
    • list disk and press Enter. (This command displays a list of drives connected to your PC).
    • select disk 0 (Replace 0 with the write-protected device number) and hit Enter.
    • attributes disk clear readonly and confirm, with Enter. (This command removes protection from the drive)
    • exit (exit from diskpart utility)
    How to remove the write protection from a flash drive

    Once these commands have been completed, the drive is ready to use.

Removal of protection by software from third parties

Brand flash drive manufacturers release special programs. Some of them can help you remove write protection when your drive is protected. Besides, many versatile applications are designed to remove protection from your flash drive. Their operation principle is approximately the same, so that we will consider the program EaseUS Tools M as an example.

  1. Download the application and install it on your computer.
  2. Open the application and select “Write Protection” How to remove the write protection from a flash drive
  3. Choose a write-protected drive and press “Disable”

    All done! You can use the drive.

As already mentioned, branded flash drive manufacturers produce special programs. Some of them can also help you remove write protection when the drive is protected.

Below is a list of the most popular ones:

  • Transcend JetFlash Online Recovery
  • Silicon Power Flash Drive Recovery Software
  • Kingston Format Utility
  • SD Memory Card Formatter

How to remove write protection from a single file

Sometimes it happens that you have one file that you want to make changes to, but can’t because the file is write-protected. When this happens, it is marked as read-only. To make changes, you must add the ability to modify the file:

Step 1: Right-click on the desired file and select “Properties”

How to remove the write protection from a flash drive

Step 2: Uncheck the “Read Only” attribute and press “OK”

How to remove the write protection from a flash drive

After that, you can make changes to the file you need.

What to do if important data was lost

Often while trying to remove the write protection from a flash drive, users perform manipulations that lead to the drive’s failure. It can be as the drive’s file system damages, as well as accidental formatting or deletion of important files. In addition, there are many causes of problems with the drive, but the most important thing is that whatever the cause, all of these activities lead to the loss of important data.

If you notice missing files or strange behavior of the drive, it is better not to wait for it to fail, but to recover all important information right away to avoid losing it.

In addition, you can use this method of data extraction before you proceed to remove the write protection from the flash drive. Thus, you will protect yourself from losing important files.

However, if the data is still missing, use RS Partition Recovery immediately, since every unnecessary manipulation increases the probability of data loss.

RS Partition Recovery

RS Partition Recovery

All-in-one data recovery software

The point is that when deleting data or formatting a drive, the system only removes the so-called “link” to the file, allowing it to be overwritten with other information. The file physically remains on the disk. Therefore, any unnecessary manipulation may overwrite an important file and thus cause irretrievable data loss. Unfortunately, it is no way to foresee when the system will overwrite certain data due to too many factors affecting the data distribution on the disk.

It is the main reason why it is strongly recommended not to waste time and use RS Partition Recovery right away.

It is easy to use, and does not require the resources of your PC. That is, you can use RS Partition Recovery even on an old laptop.

But the most important thing is that it supports ALL modern file systems, so you can recover lost data no matter what operating system Windows, Linux, FreeBSD, or Solaris was using on the flash drive.

RS Partition Recovery deep scanning mode

Just connect the flash drive to your computer and follow the integrated File Recovery Wizard. Everything happens practically in a few clicks.

Frequently Asked Questions

Write protection on a flash drive is a feature that prevents any new data from being written or saved onto the drive. This feature is useful when you want to protect the data on the drive from being accidentally deleted or modified. Some flash drives have a physical switch that can be toggled to enable or disable write protection, while others may require software such as RS Partition Recovery to enable or disable this feature.
To check if your flash drive is write-protected, try to copy a file to it. If you receive an error message saying that the drive is write-protected, then it is. You can also check the physical switch on the flash drive, if it has one. If you need to remove the write protection, you can use software such as RS Partition Recovery to format the drive and remove any write protection.
There are several common reasons for write protection on a flash drive, including a physical switch on the drive itself, a virus or malware infection, file system errors, and corrupted or damaged sectors on the drive. In some cases, the drive may also be write-protected due to a software setting or policy. To remove write protection, users can try using RS Partition Recovery or other data recovery software to repair any file system errors or recover data from the drive.
There are several ways to remove write protection from a flash drive. One way is to check if the drive has a physical write protection switch and make sure it is turned off. Another way is to use diskpart command in Windows to remove write protection. You can also try formatting the drive using a data recovery software like RS Partition Recovery, which can remove write protection and recover data from the drive at the same time.
Leave a comment

Related Posts

Recovering data from Oracle VirtualBox virtual machines
Recovering data from Oracle VirtualBox virtual machines
Oracle VM VirtualBox virtual machines store data in *.VDI virtual hard disk files. When virtual machine files become corrupted, it becomes difficult to load the virtual machine data files. Thus, there is a need to recover data files from the … Continue reading
DIY NAS or building NAS with an old computer
DIY NAS or building NAS with an old computer
One of the most pressing issues of today in the IT field is data storage, which involves information security and multi-user access. To solve this issue, there are SAN and NAS systems. What is a NAS, what purpose does it … Continue reading
Linux File System – ZFS
Linux File System – ZFS
The Linux operating system is quite flexible. It can be used on desktops as well as on servers. The main thing is to choose the correct file system for your needs. In this article, we will look in detail at … Continue reading
Windows File Systems: What You Need to Know (and Why)
Windows File Systems: What You Need to Know (and Why)
Did you know Windows Phone uses NTFS? Why most memory cards and nearly all USB pen drive are still using the ancient FAT? How come you can store full-length HD movies on some flash drives but not the others? Why … Continue reading
Online Chat with Recovery Software