Besides the above way2 method, you may also try the following cmd to remove the read-only attribution on your pendrive or disk.
First, you need to identify the vendorID and productID of your USB device. You can check the properties of the USB drive via Diskpart to fix disk is write-protected issue.
0 : read, write and execute 1 : read and write 2 : read and execute 3 : read only 4 : write and execute 5 : write only 6 : execute only 7 : no permissions Accordingly, the first digit - for the user, the second - for his group, the third - for all others.
2 Type the command below into the command prompt, and press Enter. How to make pendrive read only permanently The utility even recovers permanently erased files from removable storage devices like external hard drives, pen drives, memory cards, SSD drives and other storage devices.