write protected usb

Hi, I have a 128GB SanDisk flash drive. When I was downloading, after I woke up, I noticed that my flash drive automatically switched off from the write mode.
I tried with several programs to get it out of write protect mode, but I couldn’t succeed, even one program warned me that it was physically damaged. I wanted to see who could help me with this.
Thx

@a.hz I know this has been difficult for you, you can try above mentioned steps:

Change Pen Drive Read-Write Properties.

Go to My Computer/This PC and under Devices with Removable Storage, look for your pen drive device. Right-click on it and click Properties. Click Edit, in the pop-up box, sometimes there’s an option to Remove write-protection.

I hope this can help you.

Here are six methods you can try for removing write protection on a USB drive!

1. Check for a write protection switch on the body of the USB drive.
First, look for a tiny switch on the body of your drive. This is a write protection switch that puts your drive into write protect mode, and it can be easy to accidentally activate it in a pocket or backpack. All you’ll need to do is flick the switch into the “off” position. Write protection switches are no longer common on new USB drives, but it’s always worth checking.

2. Make sure there’s enough space left on the flash drive.
Sometimes on smaller units, USB drives will sometimes show up as read-only if they’re running out of space. In Windows Explorer or Mac Finder, right-click the drive and look at its storage space under Properties. If the drive is almost full, try deleting some files. (You should still be able to delete files if this is the case.)

3. On a PC, edit the drive’s settings in Windows Registry Editor.
Open the Windows Registry Editor from your Start menu. Follow this navigation: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies. Here, you should see a DWORD value called WriteProtect. Double-click it to get a dialog box. In the Value Data field, enter a 0 to turn off write protection and click OK.

4. On a Mac, use Disk Utility’s Repair Permissions function.
The OS X Disk Utility gives you an easy way to reset the permissions on a storage device. Just go to Applications>Disk Utility and find your drive’s name in the left panel. Click First Aid to scan the disk for errors. Click Repair Disk Permissions to reset permissions on the flash drive.

5. Use the Windows diskpart utility to remove write protection from the drive.
From the Command Prompt, type “diskpart”, Enter, “list disk” and then Enter again. You’ll see a numbered list of all disk volumes. Find your USB drive by looking at the size of each volume and comparing it with your flash drive size. Type “select disk 1” or “select disk 2”, etc. depending on the number Windows assigned to your USB drive. Press Enter. Next, type this exact phrase, minus quotes: “Attributes disk clear readonly”. Press Enter, wait for diskpart to do its work and then type “Exit” and Enter again.

6. Reformat the drive.
Lastly, you can also try reformatting the USB drive to remove the write protection. This will delete all of the data on the drive, so make sure anything you want to save is backed up.

I hope it helps!

Thanks for sharing those steps, I will try it out.