how to remove write protection on usb

How to Remove Write Protection on a USB: Step-by-Step Guide

Introduction: Having trouble accessing or modifying the files on your USB drive due to write protection? This guide will provide you with an easy-to-follow step-by-step process to remove write protection and regain control over your USB device.

What is Write Protection?

Before we proceed, let’s understand what exactly write protection is. Write protection is a safety feature that prevents any unauthorized modification or deletion of files on a storage device, such as a USB drive. It ensures that the data remains intact and cannot be accidentally or intentionally altered.

how to remove write protection on usb

Method 1: Check the Physical Switch

Some USB drives come with a physical switch that enables or disables write protection. Locate this switch on your USB device and make sure it is in the “unlocked” or “off” position. This simple step might resolve the issue and allow you to write files to the USB drive.

Method 2: Modify the Windows Registry

If the physical switch is not the cause of the write protection, you can try modifying the Windows Registry.

  1. Press the Windows key + R to open the Run dialog box.
  2. Type “regedit” and press Enter to open the Registry Editor.
  3. Navigate to the following location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies.
  4. If you cannot find the “StorageDevicePolicies” folder, right-click on “Control” and select New -> Key. Name the new key as “StorageDevicePolicies”.
  5. Right-click on the newly created “StorageDevicePolicies” folder and select New -> DWORD (32-bit) Value. Name it as “WriteProtect”.
  6. Double-click on “WriteProtect” and set its value to 0.
  7. Click OK, close the Registry Editor, and restart your computer.

Method 3: Format the USB Drive

If the above methods didn’t work, you can try formatting the USB drive to remove write protection. However, note that formatting will erase all the data on the USB drive, so make sure to backup any important files before proceeding.

  1. Connect the USB drive to your computer.
  2. Open the File Explorer and locate the USB drive.
  3. Right-click on the USB drive and select the “Format” option from the context menu.
  4. In the Format window, choose the file system (e.g., FAT32, NTFS) and allocation unit size. You can also provide a new name for the USB drive.
  5. Check the “Quick Format” option if available.
  6. Click “Start” to begin the formatting process.
  7. Once the format is complete, you should be able to access and write files to the USB drive without any write protection error.

Method 4: Use Diskpart Command

If the above methods have not resolved the issue, you can try using the Diskpart command-line utility.

  1. Press the Windows key + R to open the Run dialog box.
  2. Type “diskpart” and press Enter to open the Diskpart command prompt.
  3. Type “list disk” to display the list of connected disks.
  4. Identify the disk number associated with your USB drive.
  5. Type “select disk x” (replace “x” with the disk number of your USB drive).
  6. Type “attributes disk clear readonly” to remove the write protection attribute from the USB drive.
  7. Exit Diskpart by typing “exit”.

After completing these steps, the write protection should be removed from your USB drive, allowing you to modify or delete files as desired.


Write protection on a USB drive can be a frustrating issue, but with the methods mentioned above, you can easily remove this restriction and regain control over your storage device. Remember to handle your USB drives with care and always keep backups of important data to avoid any potential data loss.

Similar Posts