I was using IntelliJ when my USB flash drive suddenly wasn’t being recognised and IntelliJ became unresponsive. I tried safely removing it but it wasn’t showing up there, so I force closed IntelliJ, plugged it out and plugged it back in and now the entire drive is read-only. Doesn’t appear to be corrupted. I can still access all my files. I just can't run any programs or write to any files without moving them off the drive.
I’ve tried changing the following value to 0 in regedit.exe. But I still get the error “The disk is write protected”.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect
I’ve tried using diskpart to remove its Read-Only attribute, to which it responds “Disk attributes cleared successfully”, despite not recognising that it was read-only in the first place. But then when I try to clean the flash drive using it, it says:
DiskPart has encounted an error: The request could not be performed because of an I/O device error.
I’ve tried deleting its contents using diskmgmt.msc but when I right click it, its “Delete Volume” option is greyed out.
Is there anything I can do?
It’s a GOODRAM USB 3.0 64GB flash drive and I’m on Windows 8. Any other specs can be provided if needed.