How to Unlock a Flash Drive That Is Write-Protected or Password-Protected

When I copied an important presentation to my USB stick, a pop-up window on my computer said, "The disk is write-protected." What's going on? Is there any solution?

by Jacky Edwards

Earlier, I set an encrypted thumb drive. Now, how can I remove it since I have forgotten the password?

by Donna Forhecz

The flash drive with password protection and write protection are both effective ways to protect our data security. However, this can also result in the device being locked in unexpected circumstances. If you're experiencing a headache due to this, please calm down. The guide below will help you make clear how to unlock a USB drive. With just a few simple steps, your data can regain its freedom.

Table of contents
A USB Stick Lock Types and Symptoms
How to Unlock a Flash Drive That Is Write-Protected
How to Unlock a USB Drive without Password
How to Recover Files Lost/Corrupted by Unlocking a Flash Drive
Conclusion

A USB Stick Lock Types and Symptoms

#1. Write Protection

When the flash disk is write-protected, people can access the files in it but cannot perform any write operations on it, such as adding, deleting, modifying, or even formatting the device. Write protection is used by many users to prevent important files from being tampered with and deleted. However, sometimes, a flash drive write protection can be triggered accidentally due to the following reasons:

#2. Password Protection

Some users encrypt their flash drives to protect business information or personal privacy. Usually, you will be prompted to enter a password or use encryption software to access it every time you connect it to a computer. Without the correct credentials, you will not be able to see anything in it.

Now that you know the types of USB drive locks, you can choose the appropriate solution according to your practical issue.

How to Unlock a Flash Drive That Is Write-Protected

Knowing the reasons for unexpected write protection on USB drives, then you can choose these ways to remove this restriction. While doing it, please be careful to avoid data loss or device damage.

Method 1: Check the Physical Write-Protect Switch (if there is one)

Some flash drives come with a physical lock switch that allows you to control its write permissions easily. Usually, it is located on the side or back of the device. If the switch is in the locked position (a lock icon will be there), slide it to the other side to unlock the write protection USB drive. Once it is done, reconnect it to the computer and see if you can add, copy, or edit data there.

Note: If the switch is damaged or cannot be slid, it might be a hardware problem. Don't hesitate to get in touch with the flash drive support.

Method 2: Use the Diskpart Command

How do you unlock a flash drive without a physical switch or having confirmed that the physical switch is off? USB flash drives locked in this situation are due to improper system settings and disk policy. Using the following command, then you'll be able to remove the write protection.

  1. Press "Win" + "R" simultaneously, type in "Diskpart," and press Enter.
  2. Type the following commands in sequence.
    list disk
    select disk X (Find the number of your locked USB stick according to the size and replace the "X" with the number)
    attributes disk clear read-only
  3. When you see the "Disk attributes cleared successfully" in the command window, it means your flash drive is unlocked from write protection. After that, type "exit."

Method 3: Through the Group Policy Editor (only for Windows Professional and above)

When you exclude computers in enterprises, schools, or government agencies, where administrators may restrict external devices through Group Policy, checking the following settings can also unlock a write-protected USB drive.

  1. Press the shortcut keys "Win" + "E" to open the File Explorer.
  2. Type "C:\Windows\System32\gpedit.msc" in the address bar and press Enter.
  3. In the sidebar of the window, expand "User Configuration > Administrative Templates > System" and click "Removable Storage Access".
  4. Find "Removable Disks: Deny write access" on the right panel and double-click it.
  5. Set the option to "Not Configured" or "Disabled," and then click "OK."

Method 4: Modify Registry Settings

If the flash drive is still write-protected, you can try to modify the registry to remove it. However, we suggest you back up the registry by clicking "File > Export" before editing it. It will be helpful to avoid system problems caused by modifying the registry.

  1. Type "registry editor" in the search box next to the Start menu and press Enter.
  2. Go to "HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > StorageDevicePolicies." in the left panel. If the "StorageDevicePolicies" option does not exist, please select "New" > "Key" and rename it "StorageDevicePolicies." Also, in the next step, you should create a "DWORD (32-bit) value" and name it "WriteProtect."
  3. Double-click "WriteProtect" on the right and change the value to "0" in the dialog box that appears.
  4. Restart your PC to check whether the USB drive has been unlocked for write protection.

Method 5: Check Your Flash Drive File System

File system corruption or bad sectors can also trigger write protection. Try the following method to repair the file system to unlock a USB stick.

  1. Open File Explorer. Right-click the USB drive and select "Properties".
  2. In the "Tools" tab, click the "Check" button.
  3. In the dialog box, click "Scan and repair dive."

The above steps also work when your USB access is denied.

Method 6: Other Possible Solutions

Method 7: Formatting the Flash Disk That is Write-Protected (last resort)

When the above methods fail to solve the problem, formatting the write-protection USB drive is the last resort. Please note that this will delete all the files on it, so please back them up first. Here are the steps to it:

  1. Find your flash drive in File Explorer, right-click it, and select "Format."
  2. In the dialog box, click "Start". A warning prompt will appear; confirm it and click "Yes."

The above is how to unlock a flash drive from write protection. We recommend that you go through it step by step, starting from simple methods and steps. If you need to unlock a password-protected USB drive, then check the following part.

How to Unlock a USB Drive without Password

Unencrypt a USB drive is more challenging than removing write protection. Anyway, here are some methods or suggestions you can try.

Method 1. Use Disk Management Software (BitLocker only)

When you enable BitLocker on your flash drive, Windows will store the key in encrypted form on your PC. If you forget the password, using disk management software with the BitLocker password recovery function can help you unlock the flash drive, and EaseUS Partition Master is one of them. Here are the steps for using it.

  1. Connect your flash drive with your Windows PC.
  2. After downloading and installing EaseUS Partition Master, run it.
  3. Click "ToolKit" in the sidebar, then click "Retrieve BitLocker Password" on the right side of the window.
  4. Select the locked thumb drive in the pop-up window, then click "OK."

Tips: If there is no important data on this device, BitLocker can be removed by formatting the USB drive.

Method 2. Use Password-Cracking Tools

For some USB sticks protected by simple passwords, password-cracking tools can sometimes work. Some software on the market, such as Elcomsoft or Passware Kit, can brute-force or dictionary-attack the flash drive lock with password protection.

Note: For important personal or sensitive data, avoid using untrusted tools to crack passwords, which may lead to data leakage or device damage.

Method 3. Ask for Help from A Professional Organization

If the above methods fail to unlock a password-protected USB drive or the encryption level is high, we recommend that you contact a professional organization for help. They have advanced technology and equipment, which can get the files in it through sequence analysis without the need for a password.

How to Recover Files Lost/Corrupted by Unlocking A Flash Drive

Most times, DIY methods of unlocking a flash drive are useful. However, it doesn't guarantee that files will not be lost while doing this process. If you encounter this problem, use a professional recovery data software for PC or Mac, such as iBeesoft Data Recovery, to retrieve files as soon as possible.

Best Data Recovery Software
★★★★★ (Score 4.8 by 1597 Users)
Supports over 2000+ storage devices, such as hard disks, USB drives, and memory cards, even if they are damaged, locked, or even not displayed in the File Explorer.
Built-in latest AI algorithm can reassemble damaged or hidden files.
Simple wizard mode, easy to use for everyone.

Steps to use iBeesoft Data Recovery to recover your lost or damaged files from a locked flash drive:

  1. Connect your USB drive with your computer
  2. Download and install iBeesoft Data Recovery on your computer.
  3. After launching it, select the previously locked USB drive and click the "Scan" button that appears.
  4. Select the data you need and click the "Recover" button to save them.

Conclusion

Whether the flash disk is write-protected or password-protected, unlocking it is possible. The key is to select the appropriate way based on your situation. If you find them useful, please share them on social media. Maybe one of your friends is facing such a problem.

iBeesoft only uses cookies to ensure you have the best browsing experience and does not collect any information.