The most important details are that some USB drives have a small lock or button on the side or back that can be used to turn write protection on or off. To do this, look for any keys or buttons that say "lock," "write protect," or "read-only" and make sure they are open.
Method 2: Use the Windows DiskPart Utility
– Connect the USB drive to your computer that won’t let you write to it.
– To start the Command Prompt, press Win + R to bring up the Run box, then type cmd and press Enter.
– To start the DiskPart tool, type diskpart into the Command Prompt window and press Enter.
– Type list disk and press Enter to see a list of all the disks that are connected to your computer.
– Find out what your USB drive’s file number is and write it down.
– Type pick disk X, where X is the number of the disk on your USB drive, and hit Enter.
– Type the command properties disk clear readonly and press Enter to remove the write protection from the USB drive.
– Close the Command Prompt window and make sure that the write protection has been turned off.
Method 3: Using Terminal (macOS)
– Connect the USB drive to your Mac that won’t let you write to it.
– Start the program Terminal. It is in the Applications folder, in the Utilities folder.
– In the Terminal window, type diskutil list and press Enter to see a list of all the connected drives.
– Find your USB drive’s disk number and write it down.
– Type diskutil info diskX, where X is the number of your USB drive, and press Enter.
– Find the Writable field in the data. If it says “No,” you can’t write on your USB drive.
– Type sudo diskutil disableOwnership /dev/diskX (where X is the name of the disk) and press Enter to turn off write protection.
– When asked, type in your user password, and the Terminal will open the USB drive so you can write to it again.
– Try writing something to the USB drive to see if the write protection has been removed.