My SanDisk 512 GB USB flash drive has been connected to my desktop for years. The computer detects it, but I can't open it or view the files because Windows reports that the drive is write-protected. It contains irreplaceable family photos and videos, and I only care about recovering the data—I do not want to format, reset, or otherwise erase the drive. Is there a safe way to access or recover the files?
4 Answers
Write protection normally prevents changes but should still allow reading. Since the contents aren’t accessible, the file system or the flash drive itself may be failing. Don’t format it, run repair tools, or keep trying operations that write to the drive. If the files are important, make a read-only image of the drive first or take it to a professional recovery service. Recovery software such as Recuva may help, but there’s no guarantee, especially if the hardware is dying.
You can check whether Windows has accidentally set the disk’s read-only attribute, but do this only if you’re certain you’ve selected the correct disk. In an elevated Command Prompt, DiskPart can show the disks with `list disk`, then you can use `select disk N` with the correct disk number and `attributes disk`. Clearing the attribute may remove a software-level lock, but it won’t repair a corrupted file system or failing flash memory. Don’t use any command that initializes, cleans, formats, or writes to the drive before attempting recovery.
Utilities that report drive health can sometimes provide clues, but many flash drives don’t expose reliable SMART information. If the drive appears unstable, disconnects, or shows the wrong capacity, avoid repeated scans. A professional service has specialized tools for creating a sector-by-sector image and working from that copy, which is much safer than experimenting on the original.
Flash drives can put themselves into read-only mode when their memory is worn out or too many blocks have failed. A drive that has been used for around ten years should be treated as unreliable, and USB flash drives aren’t suitable as the only long-term copy of important photos. The safest approach is to stop using it and have a recovery specialist examine it; they may charge for the attempt even if the desired files can’t be recovered.
I don’t want to format it. I’m specifically looking for a software-based recovery option, although I understand the drive may simply have reached the end of its life.

I’ll try recovery software carefully, but I’m worried because the files became inaccessible without any warning.