Format A USB drive simply easy and every user can do this by simply Right click and Select format. But sometimes Windows Users face problem this disk is write protected, Can’t format the drive etc. This is because of the USB drive corrupted, have some bad sectors and may be fully infected with a virus which protects to format the drive. If you are also Struggling from similar problems You can use Windows command prompt to format write protected Pendrive. Here follow below steps to format write protected USB drive using CMD prompt on Windows 10.
Post Contents :-
How To Format write protected USB
First of all Check the write protection switch if available
Some USB flash drives have a physical switch which allows you to lock or unlock write protection. The location of a switch on a USB flash drive will be different. Make sure the lock switch is slid up to unlock position. As You will not be able to transfer files to the USB drive if it is locked.
But If the write protection switch on your USB drive is off and you still get the error message or there is no physical switch on your USB drive, apply the solution below.
Format USB using Command prompt
Note: Formatting USB drive permanently deletes data from the drive. If you have important data on your USB drive We recommend recover them using free Data recovery utility before formatting the drive.
Now follow steps below to remove read-only attribute and format the drive.
- First of all, connect the USB flash drive to your Computer.
- Now open a command prompt as administrator
- Type command Diskpart and press enter key to run Diskpart tool.
- Now Execute list disk command to list all the disks in your system.
- Here identify the USB drive you want to format.
Note: You can generally identify the USB drive using its size. For instance, I’ve plugged in a 16GB pen drive. So my USB drive is represented as “Disk 1”.
- Now type command select disk 1 and press enter key.
- After selecting the disk, run clean command to clean the USB drive,
- you will get Diskpart Succeed in cleaning the disk
- Then run command Create partition primary,
- And run Format fs=NTFS Quick command to format the drive with the NTFS file system.
Note: If you wish to use FAT32 file system instead of NTFS, use Format fs=FAT32 Quick command.
- After formatting, if you will not see the USB drive in the File Explorer. then run assign command to assign a drive letter.
- That’s all you have successfully format the USB drive from the command prompt.
- Now type exit command to leave disk part tool and close command prompt.
Tweak Registry to clear write protection on all devices
But if still, you are getting The disk is write Protected error message, Follow steps below to Tweak Windows registry to clear write protection for all devices.
- Press Windows + R, type regedit and ok to open windows registry editor,
- First backup registry database, then navigate the following path,
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control.Right-click Control and click New, then click Key.
- Rename the key as StorageDevicePolicies.
- Again right click on StorageDevice Policies key on the left side of the pane.
- Then On the right side, right-click the blank space and click New > DWORD (32-bit) Value.
- Rename the newly created DWORD as WriteProtect.
- Note: If you have already this option (StorageDevicePolicies\ WriteProtect), there is no need for you to create a new one.
- Simply double click on WriteProtect and change its value 0 to 1.
- That’s all Close the Registry Editor And restart Windows
- Now check if the drive working properly.
If not its time to buy a new drive, Or you can contact the manufacturer if the drive is under warranty.