How Can I Format a Write-Protected USB Flash Drive


My USB flash drive has been write-protected, and I do not know how to format it. So I am finding useful methods to help me format my write-protected USB flash drive. Can anyone help me?

You can't format your USB drive because it's write-protected. To fix this, you need to remove the write protection first, and then you'll be able to format the drive.

I would like to share my methods with you to help you fix this issue. Based on my experience, there are some methods for you to remove the write protection for your USB flash drive.

If your USB flash drive has previously been locked, showing its Lock to ON, it is in a write-protected state, preventing you from formatting or making changes to it.

Here are some steps to unlock a write-protected USB drive:

Step 1. Locate the physical switch on your USB flash drive.

Step 2. Move the switch from ON to OFF.

If your USB doesn't have a physical switch or the system still warns your USB is write-protected, you can try using a third-party tool called Qiling Disk Master to remove the write protection. This tool can quickly and simply remove the write protection, allowing you to use it to format your USB flash drive afterwards.

Now, here are some steps for you:

Step 1. Download the Qiling Disk Master, and install it.

Step 2. Enter the Toolkit section, and click "Write Protection."

Step 3. Select your write-protected USB flash drive, and click "Disable."

After following the steps to remove write protection from your USB flash drive, you can proceed with formatting it.

Step 1. To format a partition on a USB flash drive using Qiling Disk Master, right-click the partition you want to format and select the "Format" option.

Step 2. Assign a file system, partition label, and cluster size to the partition.

Step 3. Click the "Proceed" button to format your USB flash drive.

Step 4. In the Warning window, choose "Yes."

Once you've completed formatting, your device is ready for you to save or store data again.

The Qiling Disk Master allows formatting of write-protected devices, including USB flash drives and SD cards, after removing the write-protection error. It also provides additional functions.

The Qiling Disk Master is a tool that can remove write protection from a USB flash drive, allowing it to be formatted and reused. It's a efficient and operable solution to fix the issue. You can try using it to resolve your problem.

Why Does Windows Report the USB Drive as Write-Protected

The message is a symptom, not a diagnosis. Windows blocks every write command sent to the volume, and several different conditions produce the same error.

Work through these causes in order. The first three are reversible and cost nothing to check, while the last two usually mean you should copy your files off the drive before you attempt anything else.

Remove Write Protection with Diskpart

Diskpart ships with Windows and can clear a disk-level read-only flag that File Explorer and Disk Management cannot touch.

Step 1. Press Windows + R, type cmd, and press Ctrl + Shift + Enter so the command prompt opens with administrator rights.

Step 2. Type diskpart and press Enter. A second window opens with its own prompt.

Step 3. Type list disk and find the number whose size matches your USB flash drive.

Step 4. Type select disk 2, replacing 2 with the number you found, then type attributes disk clear readonly.

Step 5. Type exit to close Diskpart, unplug the drive, and plug it back in.

One warning matters here. Select disk takes a number, not a drive letter, and the wrong number wipes your system disk, so confirm the size twice before you press Enter. If Diskpart answers that the media is write-protected even after this command, the flag sits below the partition layer and the registry method is the next stop.

Fix Write Protection in the Registry

Removable storage policies are stored in one registry key, and a single value there can keep every USB stick on the machine read-only.

Step 1. Press Windows + R, type regedit, and confirm the administrator prompt.

Step 2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies.

Step 3. Double-click WriteProtect in the right pane and set its value data to 0.

Step 4. Unplug the USB drive, restart the computer, and reconnect the drive.

If the StorageDevicePolicies key is missing, create it under Control, add a DWORD value named WriteProtect, and leave it at 0. Values in this key override what the device itself reports, which is why a leftover 1 from a retired corporate lockdown keeps blocking writes long after the policy was dropped. Export the key before you edit it if you want a one-click way back.

Reformat the Drive After Removing Protection

Removing write protection only makes the drive writable again. It does not repair a damaged file system or clean up a half-finished format, so a fresh format is the quickest route to a usable drive.

In Qiling Disk Master, right-click the USB partition and choose Format. The dialog works like the one in Windows Disk Management, but it shows the file system currently on the drive and lets you change it in the same pass.

choose Format for the USB flash drive partition

Click Proceed, review the operation in the pending list, and confirm it. Formatting erases the whole partition, so copy any files you still need to another disk before you confirm.

apply the format operation to the USB drive

When the operation finishes, the drive mounts with an empty file system and the write-protected error should be gone. If the error comes back at the next reboot, the cause sits outside the file system, and the troubleshooting section below covers what to check.

Choose the Right File System for the USB Drive

The file system decides which devices can read the drive, the largest single file it can hold, and how much space the index tables take. Pick it before you click Proceed.

File system Best for Largest single file Watch out for
FAT32 Car stereos, older TVs, cameras, and firmware updates 4GB Windows cannot create a FAT32 volume above 32GB without extra tools
exFAT Moving large files between Windows, macOS, and consoles Effectively unlimited Some older devices do not recognise it
NTFS Windows-only drives and single files above 4GB Effectively unlimited macOS mounts it read-only by default

Set the label, file system, and cluster size in the format dialog, then confirm. A short label such as USB32 makes the drive easier to spot in Explorer, and the default cluster size is the right choice unless a device manual says otherwise.

set the partition label and file system for the USB drive

What to Do If the Drive Stays Read-Only

A drive that turns read-only again right after a successful format is usually failing at the hardware level. Three checks separate a repairable problem from a dying drive.

Before you replace the drive, disable write protection one more time through the graphical Toolkit in Qiling Disk Master and retry the format. The switch is the same one described earlier in this article, and it is the safer choice if you would rather not edit the registry by hand.

disable write protection for the USB flash drive

If the drive turns read-only again on a second computer and a scan finds bad blocks, replace it. Flash memory that has entered its final read-only state cannot be repaired by software, and every further write attempt reduces the chance of a clean copy, so move important files off first.

Frequently Asked Questions

Does formatting a write-protected drive delete the data?
Yes. A format rebuilds the file system and clears the file table, so recovery afterwards is difficult at best. Copy anything you need to another disk before you start.

Why does the error come back after a reboot?
A registry value or a group policy that re-applies at logon is the usual cause. Check StorageDevicePolicies again after the restart, and ask your IT administrator whether removable storage is locked on that machine.

Can a drive with a physical lock switch still be formatted?
No. While the switch sits at Lock, the drive accepts read commands only. Slide it to the unlock position, reconnect the drive, and try again.

Is the registry method safe on a work computer?
Only with permission. On a managed device the policy may be intentional, and changing it can break encryption or backup rules the company depends on.

How do I know the drive is beyond repair?
Two signs are decisive: the drive returns to read-only mode on a different computer, and a surface scan reports a growing number of bad blocks. At that point the controller has locked the memory to preserve existing data, and replacement is the only fix.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!


QilingTech uses cookies to ensure you get the best experience on our website.  Learn more  Got it