By Emily / Last Updated October 26, 2018

Failed to format the write-protected disk!

“When I Format my USB any time, an error message "The disk is write protected" will pop out. I have already tried to insert the pendrive, go to the Disk Management, right click the removable disk, select Format option. But my USB is not Format. When Formatting is complete 100% again, message "The operation did not complete because the media is write protected" appears again. How can I format my write protect USB? Please help me!”

Media Is Write Protected

How to format write-protected hard drive?

When your disk is write-protected, you will not be able to modify files, add files to your drive or delete files from it because of the restrictions associated with permissions and sharing. What’s worse, the disk cannot be formatted with "The disk is write protected" error. If you are stuck with such awkward situations, please don’t worry! Here we will present how to format write-protect disk in Windows using either the Registry Editor , Command Prompt, or by using a professional disk formatting utility.

Solution #1: Using the Registry Editor

1. Press Wind + R to open the Run dialogue. Type regedit and click “OK” to open the Registry Editor.

2. Expand the entries on the left-hand pane to navigate to the following path:


3. Double click WriteProtect and Change the value data from 1 to 0. Then, click OK.

Change Value Data Registry Editor


If there is no StorageDevicePolicies under Control, you can right click Control and go to New->Key. Then name it with StorageDevicePolicies.

Then, at the right-hand pane, right click white space and go to New->DWORD (32-bit) value (If your computer is 64-bit version, choose QWORD (64-bit) Value). Name it with Write Protect.

Finally, double-click the newly created DWORD and change its value from 1 to 0. Click OK to apply the change.

Till now, the write protection attribute is removed from the disk, then you can open File Explorer, right-click the disk, select Format…, and follow the hints to format it successfully.


Solution #2: Using Command Prompt

First of all, click on Start and type cmd.exe into the search field. Double-click on Command Prompt to launch the program, the type the following commands and press enter after each one.


list disk

select disk # (ex: Disk 1): to select the disk which is write protected.

attributes disk clear readonly: to change the disk’s properties so that it is no longer read-only.

Till now, the disk is on longer write-protected. Next you need to input some other commands like below to format the disk.


create partition primary

format fs=ntfs


Format Disk CMD

Solution #3: Using a free disk formatting tool (no need to remove write protection first)

As for the first two solutions, you need to first remove write protection attribute property, then you will be able to format it smoothly. That involves lots of complex procedures, which is quite difficult to operate for most common computer users. So is there any tool which allows you to directly format write-protected disk without clearing the write protection first? Clearly Yes. AOMEI Partition Assistant Standard is such a powerful freeware.

  • Steps to format a write-protected hard drive in Windows 10 via this software

1. Download the freeware. Right click the disk that is write protected and select Format Partition.

Format Partition

2. Choose your desired file system (ex: FAT32), and you can also set your other disk format preferences, such as partition label and cluster size.


3. Back to the main interface, click Apply->Proceed to start format the disk.



With those three different solutions available, next time you will be sure to format write-protected disk successfully. Apparently, AOMEI Partition Assistant provides the easiest way, just in three steps you can format the disk, even it is in a read only mode. If you want to enjoy more advanced functions, like convert NTFS to FAT32 without data loss, and vice versa, you can upgrade it to AOMEI Partition Assistant Professional.