Thursday, August 15, 2013

How to disable write protection from USB Drives

How to disable write protection from USB Drives

write protectionSome memory cards and USB pen drives have write protection switches, which allows you to prevent files from being deleted, or any new files being written to the device. It also prevents the drive or card from being formatted.
2 methods are here that  you can try to format the drive and remove the write protection.



METHOD-1


Removing write-protection in the Registry using Regedit.exe


1) Open Start Menu>>Run, type regedit and press Enter; now you find a window of registry editor.

2) Now go through the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlset\Control\StorageDevicesPolicies

3) Double click the key WriteProtect in the right pane and set the value from 1 to 0 in the value data box and press OK button.

4) At last just exit registry, restart your computer and then again re-connect your USB pen drive on your computer. That is it, done.

METHOD-2

First we will try to remove read only attribute from the specific drive.

Warning : Be sure to do this on the right disk since the diskpart command can do serious damage if you run it on the wrong disk.

1)  Start Menu -> Run(or in search box) -> Type 'cmd' -> press 'Enter' -> Command Promt will open
2) Type 'Diskpart' -> enter ->  'list disk' -> enter
3) Select the disk you are going to modify, if your required USB disk is in 'disk 4' then  
4) type 'select disk 4' -> enter , now disk 4 is selected,  'list disk' will show star(*) beside it 
5) 'list disk' -> enter 
To Clear the Read-Only attribute on the selected disk (To Disable write protection): 
6) Type 'attributes disk clear readonly' -> enter
The disk is no longer Write protected. The Read-Only attribute is removed.
7) Type 'clean'   ->  enter

The Diskpart will clean the Disk
8) Type 'rcreate partition primary'   -> enter
9) Type'format fs=fat32'  ->  Enter 
You can swap fat32 for ntfs if you only need to use the drive with Windows computers
10) Type 'exit'  -> Enter






1 comment :