Report

Removing Write Protection Using Diskpart

Ask a question Alliancepotato - Latest answer on Sep 16, 2016 03:13AM
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 
Helpful
+26
moins plus
"attributes disk clear readonly" works but after that clean command received an error : the media is write protected.How to solve this ?
Add comment
Helpful
+2
moins plus
Thank you for the tip.

Regards
Ashu- Oct 3, 2015 10:58PM
This will not format my drive Will it??
Reply
Fade- Dec 20, 2015 10:17PM
its now work for my flashdrive verry protected
Reply
Craig- Jan 15, 2016 05:46PM
Same here. Wish someone would come up with a way that actually works. :-(
Reply
Pathik Fade - Apr 25, 2016 02:45PM
i can not work this
Reply
Dickson orengo- Sep 16, 2016 03:13AM
It will not wipe all user account unless u select disk 0
Reply
Add comment

Members get more answers than anonymous users.

Being a member gives you detailed monitoring of your requests.

Being a member gives you additional options.

Not a member yet?

sign-up, it takes less than a minute and it's free!