Hello,
I have a USB flash drive which was working properly for months, but today, when inserted into a workstation, it is being opened in read-only mode, whereby I can read and execute files on it, but not add anything to it or modify a document from it.

Tried to format it but got a surprise as this operation failed as well due to the read-only mode.

The flash drive does not have any physical switch to change it to read-only mode and back to writeable-mode.

How can I solve this issue?

Regards.

Dani AI

Generated

A compact, safe-first diagnostic and recovery checklist that builds on the helpful suggestions from , and . Start with the least-destructive steps and stop as soon as you have a reliable copy of any important files.

If files are still readable, copy them off immediately. For flaky transfers use a tool that retries and logs errors (image the device if the data is important so you work from an image, not the failing stick). Test the same USB stick on a different PC and on a Linux box if possible — that quickly distinguishes host/driver problems from a device-level failure. On Linux dmesg will often show I/O or "write-protect" messages; on Windows check Event Viewer for disk errors.

If you want a filesystem-level repair after backing everything up, run the OS repair utility appropriate for the filesystem. On Windows, run the disk-check utility against the drive letter (replace X: with the drive letter). Only do this after you have copied data off:

chkdsk X: /f

Also check for software-enforced write protection: some group policies and the StorageDevicePolicies registry value can deny writes to removable media. Before editing the registry, export the key so you can restore it if needed.

If the stick remains read-only on multiple hosts and OSes, that usually means the flash controller has set the device to read-only to protect data because of internal wear or too many bad blocks. That state is often irreversible; vendor low-level utilities can sometimes remap or reinitialize controllers but results are frequently temporary. For anything important, stop using the stick as primary storage and replace it. If the data is critical and copying fails, consider a professional recovery service.

Recommended Answers

All 4 Replies

Since you are open to formatting, look up the old HP USB FORMAT TOOL (google it!) and try that. I'll skip any advice about running as admin, formatting on Linux and head to the obvious. These things have limited life spans. Here a 16GB stick is now under 4 bucks at the grocery store. Only those that can't wrap their head around the life span or cheapness spend more than a hour trying to save it.

What rproffitt said. Also, this is an indication that either the file system is munged, or the disc has too many bad sectors. Back up the data and get a new thumb drive, as advised.

Thanks guys, eventually bought a new one, but managed to format the old one as well using the HP tool mentioned by rproffitt, keeping it as a spare one for temporary transfers

I'm a little late to the party but I have found that when all else fails, I can often "rescue" the media with diskpart.exe via the clean subcommand. This is a command line tool that comes with Windows and which is run in a shell as Administrator. If you use it, be very careful you have selected the correct disk.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.