By right clicking on the disk you can choose properties and then select security step 4.
Lock usb drive read only.
The lock option is similar to a complete disable the main difference is after a reboot the devices can been recognized by the system but not opened or accessed.
If your usb drive is with such tab check the position of the lock tab and make sure it is on unlock position.
Typically when your usb drive is stuck read only error also called write protected you will be unable to make any modification on the usb drive which could protect your data from being changed by someone else.
If you need to format read only write protected usb drive you can remove write protection from it using the following tricks at first.
Usb write protect handy tool that enables write protection on all usb disk drives and lock it from any outside data manipulation.
But what if you want to make some changes.
To edit the permissions you should now select everyone from group or user names step 5.
Type list disk or lis dis into the console.
Some usb flash drive or sd card is with a physical lock slide tab.
The security permissions may be set so that all users only have read permissions to files on the flash drive.
Check write protection tab.
Usb write protect is portable in nature and all you need to do is run the program and click on the button to enable the lock.
Access mode is the standard option of allowing usb drives the default full read and write access making them read only or making the devices invisible to the system.
The newly connected usb drive should be the last on that list.
How to remove write protection using lock switch.
Or you can find your drive by looking on the size of drives.
To check if security permissions need to be changed follow the steps below.
The program also has some additional features that makes the usb drives immune to auto run.
It will show all the connected drives including your usb.
If using diskpart as detailed above does not work to clear the read only attribute of a usb flash drive the security permissions may need to be changed.
If the media has this switch make sure the switch is set to write not read only.
Plug in the write protected disk.