Ping Fm Logo
Roman Kropachek Photo
Written by:

Last update on

How to Remove Write Protection on USB Drive

How to Remove Write Protection on USB Drive

We all know the struggle of plugging in a USB drive to quickly transfer files, only to be met with the exasperating message that the device is write protected. I’ve been there, and it can be a real hassle, especially when you’re in a hurry. Over the years, I’ve mastered several methods to remove write protection from my USB drives, and today, I will share these practical steps with you. Whether it’s due to a physical lock or system settings, here is an extensive how-to guide on tackling this common issue.


Common Scenarios:

🔒 Physical Write Protection on the USB Drive

  • An external switch on the USB drive is enabled, physically preventing write operations.
  • USB flash drives or SD cards with such locks can be easily toggled to remove write protection.

💻 System-Level Write Protection

  • Windows operating system settings or registry entries can enforce write protection on connected USB drives.
  • Removing this form of protection often involves system-level changes.

🛠 Corrupted File System or Drive Errors

  • File system errors on the USB drive can trigger a write protection error as a defensive measure.
  • Repairing these errors typically involves disk utility software.


Step-by-Step Guide. Removing Write Protection On Usb Drive:

Method 1: 🔄 Flipping the Physical Switch

  • Locate the physical switch on the side of your USB drive or SD card.
  • Slide the switch in the opposite direction to unlock the write protection.
  • Re-insert the USB drive into your computer and attempt to copy files to it.

Note: Not all USB drives have a physical switch. If you cannot find one, proceed to the next method.

Conclusion: The physical switch is a straightforward fix, but only applicable to devices that include such a feature.

Method 2: 🖥 Using Diskpart on Windows

  • Open the Command Prompt as an administrator by typing ‘cmd’ in the Start menu, right-clicking on Command Prompt, and selecting ‘Run as administrator’.
  • Type ‘diskpart’ and press Enter to run the utility.
  • Once Diskpart is running, type ‘list disk’ and press Enter to view the connected storage devices.
  • Identify your USB drive by its size and type ‘select disk X’, replacing X with the number corresponding to your USB drive.
  • Type ‘attributes disk clear readonly’ and press Enter to remove the write protection.

Note: Be very cautious with Diskpart. Selecting the wrong disk can result in data loss.

Conclusion: Diskpart is a powerful tool for managing disk attributes, including removing write protection.

Method 3: 📝 Editing the Registry

  • Press Win+R, type ‘regedit’, and press Enter to open the Registry Editor.
  • Navigate to ‘HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies’.
  • If the StorageDevicePolicies key does not exist, right-click on ‘Control’, select New > Key, and name it ‘StorageDevicePolicies’.
  • Inside StorageDevicePolicies, look for a value named ‘WriteProtect’. If it does not exist, right-click, select New > DWORD (32-bit) Value, and name it ‘WriteProtect’.
  • Set the value of ‘WriteProtect’ to 0 and press OK.
  • Close the Registry Editor and restart your computer.

Note: This method will affect all USB storage devices. Always backup your registry before making changes.

Conclusion: Registry edits can disable system-wide write protection settings.

Method 4: 🛠 Using Disk Utility Software

  • Install disk utility software.
  • Launch the software and select your USB drive.
  • Choose the option to check and fix disk errors.
  • Follow the on-screen instructions to repair the USB drive.

Note: Some disk utilities offer advanced features that may not be necessary for simple write protection removal.

Conclusion: Disk utilities provide a user-friendly interface for diagnosing and repairing drive issues.

Method 5: 🧽 Formatting the USB Drive

  • Open ‘This PC’ or ‘My Computer’.
  • Right-click on the USB drive and select ‘Format…’
  • Ensure the ‘Quick Format’ option is unchecked to perform a full format.
  • Click ‘Start’ and wait for the format process to finish.

Note: Formatting will erase all data on the USB drive. Make sure to back up any important files before proceeding.

Conclusion: Formatting can remove write protection, but it is a last resort due to data loss.

Method 6: 🔄 Updating USB Drive Drivers

  • Open ‘Device Manager’ by right-clicking on the Start button and selecting it.
  • Expand the ‘Disk drives’ section and find your USB drive.
  • Right-click on the USB drive and select ‘Update driver’.
  • Choose ‘Search automatically for updated driver software’ and follow the prompts.

Note: Driver issues can cause various problems, including write protection errors.

Conclusion: Keeping your drivers up to date can prevent many hardware-related problems.


Precautions and Tips:

🎯 Always Handle with Care

  • Avoid removing the USB drive while files are being transferred or written to the disk.
  • Use the ‘Safely Remove Hardware’ feature before unplugging the USB drive to prevent file corruption.

⚙ Keep Your System Updated

  • Regularly update your operating system to ensure all drivers and system files are current.
  • Staying updated can help prevent compatibility issues that may cause write protection errors.


USB Drive Care and Maintenance

Proper care and maintenance of USB drives are essential for longevity and reliability. Always cap your USB drive when not in use to protect it from dust and debris. Keep your drives away from extreme temperatures and magnetic fields. Furthermore, it’s wise to have a good data recovery tool at your disposal, such as Recuva in case things go wrong. Data recovery is often possible even after a drive appears to fail. It’s worth noting that high-quality USB drives from reputable manufacturers, such as SanDisk or Kingston, are often more reliable and come with better warranties than no-name brands. For more information on proper USB drive care, visit the USB Implementers Forum, the support hub for technology-related concerns for USB devices.


In conclusion, encountering a write protection error on your USB drive is not the end of the world. By employing one of the aforementioned methods – whether it’s flipping a physical switch, tweaking system settings, updating drivers, or using disk utility software – you can likely resolve the issue. Remember, precautionary measures like safely ejecting your USB drive and keeping your system updated can mitigate the risk of encountering such problems in the future. If all else fails, formatting is a viable option, but always make sure important data is backed up before proceeding. Through proper care and regular maintenance, you’ll ensure your USB drives serve you well for years to come.


To check if your USB drive is write-protected, right-click on it in 'This PC' or 'My Computer', select 'Properties', and check if the 'Read-only' attribute is enabled.

The first step is to ensure the USB drive does not have a physical switch that controls write protection, often found on the side of the drive.

Yes, disk management tools can sometimes be used to remove write protection. Access your disk utility software and look for options to change disk attributes or permissions.

Yes, the Diskpart utility can remove write protection. Open Command Prompt as administrator, type 'diskpart', then 'list disk', 'select disk #', and 'attributes disk clear readonly'.

Modifying the Windows Registry could solve the write protection issue. Navigate to 'HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies' and set 'WriteProtect' to 0.

Formatting can remove write protection if no physical or software lock is present. However, it will erase all data on the USB drive.

If formatting fails, the USB drive may be failing or have a permanent write protection feature. In such cases, replacing it might be the only option.

Some malware might induce write protection, so running an antivirus scan could potentially remove the write protection if caused by such software.

A last-resort method could involve using low-level formatting tools. However, this can be risky and should only be attempted if all other methods fail.