In this article, we will tell how to format write protected pendrive in CMD step by step. Besides, you can also use the recommended freeware to format write-protected pendrive, USB flash drive or other hard drives.
User Case 1. When I format my USB any time, it shows “The disk is write-protected”. I also tried to format it in Disk Management, right-click it and select format. But my USB is not format. When formatting is close to complete 100%, again the message “The operation did not complete because the media is write-protected”. How can I format my USB? Please help me! —from ccm.net forum
User Case 2. Hi there, I have a problem with my SD CARD. I can't reformat it on my WIN 10 computer, I can't add something to it or remove it! either I always get this error "Windows was unable to complete the format". How to fix it? —from tomsguide
Have you ever met such an annoying issue? If you cannot format drives successfully in Windows 11/10/8/7 because it is write-protected, you can learn how to format write-protected pendrive in CMD.
Usually, when pendrives, USB flash drives, or SD cards become write-protected, you cannot delete files from SD card, or make other modifications. As for the reasons behind this issue, refer to the list below.
◐Your pendrive is damaged by virus infection, hacker or malware.
◐The file system of partition on the drive is corrupted.
◐You set the read-only mode unconsciously.
◐Your pendrive has physical damages or been dead.
Since the pen drive is write-protection, you cannot format it through traditional methods, here we would like to tell how to format write-protected pendrive from Command Prompt: clear read only attribute first and then format it.
Step 1. Click on Search box and input cmd, select command Prompt (Admin).
Step 2. Type diskpart and hit Enter.
Step 3. Type list disk and hit Enter. Here, you’ll be able to see a list of storage media connected to your computer.
Step 4. Type select disk and press Enter. For example, select disk 2 in my case. Make sure you enter the number correctly.
Step 5. Type attributes disk clear readonly and press Enter: this command will clear the write protection attribute from the selected disk.
Now, the pendrive is no longer write protected. Then you can format it as normal. If you want to format it using cmd, please continue typing the commands as below and remember to press Enter after each.
clean
create partition primary
format fs=ntfs
exit
If the write protection attribution is caused by damaged file system, then you need a 3rd party write-protected pen drive format tool. Here we strongly recommend free AOMEI Partition Assistant Standard. This freeware could format the hard drive that is write-protected due to corrupted file system. Besides, this versatile disk manager is also able to help easily format corrupted SD card, format large hard drive to FAT32, format partition to Ext4, resize partition, delete partitions, copy partition, etc. Just3 clicks are required.
Step 1. Download and install AOMEI Partition Assistant on your computer, run the program. Select your pen drive, right-click it and choose “Format Partition”.
Step 2. Choose the desired file system (here we choose FAT32) and click “OK”.
Step 3. Back to the main interface, click “Apply” > “Proceed” to execute the changes.
Now, you are sure to know how to format write protected pendrive in cmd. Obviously, AOMEI Partition Assistant provides an easier way to format write protected pendrive than Command Prompt in Windows 11/10/8/7. Just three steps, the formatting process will be finished. Also, you can upgrade to AOMEI Partition Assistant Pro to enjoy more amazing functions. It allows you to copy OS from laptop to pendrive, wipe pendrive completely, clone pendrive, recover lost partitions and more.