In this generation we all have any one kind of storage device in the form of Hard Disk, SD Card, Pen Drive and many more, and 50% of people will face this problem due to misbehavior with their storage devices like Remove any USB device without safely eject, and some face this on SD card due to mass storage access with PC and eject phone hardly and caused SD Card write protected, so below is the solution to solve this problem permanently and be safe in future.
Solution 1
Look for write protection switch on your SD card
slot if it's on then turns it off and then try again to write data on your card
Solution 2
Scan your SD Card or USB Drive with a updated anti virus software it's because of sometime virus block the devices for write protection and I recommend to perform this task before step ahead on further solution.
Solution 3
Now this solution is
little bit with manipulating registry file of your write protected device,
below is the step to update a registry file to fix your write protected device.
1. Press
Windows
+ R key to open Run menu
2. Type regedit and hit enter to open regestry window
3. Now
navigate to this path Computer\HKEY_LOCAL_MACHINE\SYSTEM \CurrentControlSet\Control\StorageDevicePolicies and make some value change in WriteProtect dword file with below step
4. Double
click on a WriteProtect dword file to change
the below listed value in a Value
Data field and restart the computer to make changes effect if required.
If value data = 1, it means that Yes, write protect my USB storage
device.
If value data = 0, it means that No, don't write protect my USB storage
device.
Note : In some case
there is missing StorageDevicePolicies
key in a parent key called control Key so you have to make a StorageDevicePolicies key in a parent
key called control Key then you have to create a new file called DWORD (32-bit) value in StorageDevicePolicies below is the step
to create a key called StorageDevicePolicies
and dword (32-bit) value called WriteProtect file.
5. In
regestry editor navigate to this path Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
6. Right-click Control key, and select New > Key, named StorageDevicePolicies.
7. On
the right panel of StorageDevicePolicies,
right-click and select New DWORD and give
it name as WriteProtect.
8. After
creating the DWORD file perform the
above Step No 4 and restart to make changes effect
Solution 4
If you are familiar
with command prompt in windows then you have to try below command to unlock
your SD card or USB drive.
Note : Perform the
below step after inserting your SD card in to the USB card reader and run CMD
Prompt with administrative rights.
1. Press
Windows
+ R key to open Run menu
2. Type
CMD
and hit enter to open command prompt
3. Now
in command terminal type diskpart to run disk partition utility
4. Type
list
disk and hit enter, it will show you the available disk on to the CMD prompt
5. Type
select
disk 1 to select the disk, in my case it is disk no 1 so I select 1.
6. Type
attribute
disk clear readonly to clear write protection flag from your SD card
or USB drive.
Now check your device
is remove from write protection or not if it's work then it's great for you if
not then please go ahead for further operation, but before we go ahead I recommend
you to take your device backup to other device because in this further
operation your SD Card or USB Drive is going to format, so further operation is
given below:
7. Type
clean
and hit enter to clear the assigned letter to your SD Card or USB Drive
8. Type
create
partition primary and hit enter to create a primary partition on
your selected
disk
9. Type
select
partition 1 and hit enter to select a partition no 1.
10. Type
active
and hit enter, it will active the selected partition on your disk.
11. Type
format
fs=ntfs quick or format fs=fat32 quick of your choice file
system and hit
enter to perform a quick format operation on your selected disk.
12. Type
assign
and hit enter and it will assign a letter to your drive and make it accessible.
Now check your device
is remove from write protection after complete format operation or not if not
then there is some serious issue with your disk which may be solve in many
cases using linux tool called sdtool can be found here. There is
a Raspberry Pi build, otherwise you'll have to build from sources.
Solution 5
Some serious issue in
your SD Card or USB Drive may be locked via MMC write protection flag (perhaps
your phone did that for some reason on your SD Card). Unfortunately, this can
be fixed by a card reader which presents as a USB mass storage device (that is,
most of them) If you have a Linux computer with a real SD/MMC card reader, try sdtool
can be found here in linux it will solve 95%
1. Open
the terminal and type fdisk -l and hit enter it will show you
the available disk
same as windows CMD prompt but the command structure is different.
2. Type
sudo
sdtool /dev/mmcblk0 unlock and hit enter it will unlock a write protection from your SD Card or USB Drive.