My SanDisk 512 GB flash drive has been connected to my desktop for years. The computer detects it, but I can't open it or view its contents; Windows reports that the drive is write-protected. It contains irreplaceable family photos and videos, so I don't want to format, reset, or otherwise alter it. I only care about recovering the files, even if the flash drive itself has to be discarded. Is there a safe way to access or recover the data?
5 Answers
The write-protection message may be the drive’s warning that its memory is failing, rather than a simple lock that can be removed. If you have no backup, treat the contents as the priority: don’t save recovered files back to the flash drive, and don’t keep reconnecting it unnecessarily. Copy recovered files to a different healthy disk.
A flash drive that has been used for around ten years may be reaching the end of its life. Some drives switch to read-only mode when their memory is worn out or they detect too many failing blocks. USB flash drives are not reliable long-term archives, so the safest approach is to make a sector-by-sector image or have a professional recovery service work on it. Do not run repair tools directly against the original if the files are especially important.
Write protection normally prevents changes but should still allow reading. If the drive can’t be opened at all, the file system may be corrupted or the flash memory may be failing. You can try recovery software such as Recuva, but avoid formatting, initializing, or writing anything to the drive. Recovery is not guaranteed.
I’ll try recovery software first. It’s frustrating that the drive seems to have become corrupted without warning.
If the drive is still visible with the correct capacity, recovery software may be able to scan it even if Windows can’t browse the files. Ideally, scan a cloned image rather than the original drive. If the drive disconnects, shows the wrong capacity, becomes extremely slow, or contains irreplaceable data, stop experimenting and contact a reputable data-recovery specialist. They charge for the attempt and may not be able to recover everything.
You can check whether Windows has merely marked the disk as read-only by using Disk Management or the administrator version of DiskPart, but clearing the read-only attribute will not repair a damaged file system. Be very careful to select the correct disk, and do not use any command that formats, cleans, or recreates partitions. If the data matters more than the drive, professional recovery is safer than repeated repair attempts.

I don’t want to format it; I’m specifically looking for a software-based recovery option. Is ten years unusually long for a flash drive?