Removing write protection using Diskpart

Alliancepotato - Updated on Mar 2, 2018 at 02:59 AM
 NhuiSG - Aug 6, 2019 at 07:50 AM
Removing write-protection using Diskpart

With your USB drive plugged in, launch a command prompt. Do this by searching for cmd.exe in the Start menu (or Start screen in Windows 8). In Windows XP, click Start then Run, and type cmd.exe in the box.

NOTE: you may need to run Cmd.exe with administrator privileges if you see an "access is denied" message.

To do that, right-click on the shortcut and choose Run as administrator. In Windows 8, simply choose Command prompt (admin).

Now, type the following, pressing Enter after each command:


list disk

select disk x (where x is the number of your USB flash drive - use the capacity to work out which one it is)

attributes disk clear readonly


create partition primary

format fs=fat32 (you can swap fat32 for ntfs if you only need to use the drive with Windows computers)



3 responses

After following every step one by one this finally worked for me. I had attempted to burn an ISO image to my Toshiba usb 3.0 and it became write protected in the process $65 saved.

What I have read and I don't have the technical details it will format on a low level flash process, don't quote me..

I tried the unlocker program from Filehippo and Malwarebytes fileassassin, neither worked. Hope this helps someone else!
After years looking for solution, u r the avengers!!! Thank you so very much...