Removing write protection using Diskpart [Solved/Closed]

-
Hello,
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:

diskpart

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

clean

create partition primary

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

exit


See more 

3 replies

Best answer
approved by Dana Elfenbaum on Jul 4, 2019
99
Thank you
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!

http://flashboot.ru/files/file/383/

Say "Thank you" 99

Glad we were able to help! Love us? Write us a review! Rate CCM

CCM 5721 users have said thank you to us this month

After years looking for solution, u r the avengers!!! Thank you so very much...
Posts
51373
Registration date
Monday February 1, 2010
Status
Moderator
Last seen
October 29, 2019
13423
94
Thank you
Thank you for the tip :

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:

diskpart 

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

clean

create partition primary

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

exit



Regards
its now work for my flashdrive verry protected
Same here. Wish someone would come up with a way that actually works. :-(
i can not work this
It will not wipe all user account unless u select disk 0
thankss...
super working..
Posts
1
Registration date
Wednesday December 30, 2015
Status
Member
Last seen
December 30, 2015
4
0
Thank you
"attributes disk clear readonly" works but after that clean command received an error : the media is write protected.How to solve this ?
Mine did that too