Diagnostic guide
USB Flash Drive Write-Protected, RAW or Showing 0 Bytes – Recover Before You 'Fix' It
Symptom
Your USB flash drive says it is write-protected, shows as RAW, reports 0 bytes, or refuses to format.
These three messages come from the same place: the drive's controller or file system is no longer behaving normally. Microsoft's documentation says a RAW partition means the disk has no recognised file system, and that formatting it erases all data, so a RAW stick should not be formatted if you want the files. Whatever the message, the steps people find first (registry hacks, vendor 'restore' tools, format) either do nothing or destroy the contents. The files, if they are readable at all, are readable now, so copy them before anything else.
Do not
STOP - Do Not Format or Run a Restore Tool
- Do not click Format when Windows or macOS offers
- Do not run a manufacturer's 'restore', 'repair' or low-level format tool
- Do not edit registry write-protect settings and then write to the drive
- Do not keep plugging it in and out of different ports and computers
- Do not run CHKDSK on a stick that is acting up
Why this matters: Microsoft states that formatting a disk erases all data on it and says not to format a RAW partition if you are trying to recover files. A stick that has gone read-only may be failing, and every extra write or reconnect cycle can make it worse. Restore tools are designed to return a drive to blank.
Cause
Most Likely Causes
- 01
Damaged File System
High LikelihoodPulling the stick without ejecting, or a power or port hiccup during a write, can leave the file system unreadable. It then shows RAW or asks to be formatted.
- 02
Controller Fault or Worn Memory
Medium LikelihoodFlash drives are cheap, heavily used devices. A controller problem can produce 0 bytes, wrong size or a drive that will not write, while the data may still be readable.
- 03
Physical Write-Protect Switch or Policy
Medium LikelihoodSome sticks have a switch, and some computers apply a write-protect policy. This is the simplest cause and the first thing to rule out.
- 04
Damaged Connector or Board
Less CommonA cracked USB plug or a broken solder joint produces drives that appear and disappear. The memory chip on the board is often fine.
What to do
Safe Diagnostic Checks
These checks are non-destructive and safe to perform. Follow them exactly as written.
Rule out the simple things
- 01Look for a small lock switch on the stick and slide it to the unlocked position
- 02Plug it directly into a port on the computer, not a hub, as Microsoft's guidance suggests
- 03Try one other computer; if it behaves the same, the stick is the problem and not your PC
- 04Stop after that; repeated reconnecting does not help
Copy first, read-only
- 01If any files show, copy them to your computer right now; do not move them
- 02In Disk Management, note whether the drive is Online and what size and file system it reports
- 03If it shows RAW or says it needs formatting, choose Cancel
- 04If copying fails partway or the drive vanishes, stop and note which folder was last copied
A drive reporting 0 bytes with a wrong capacity is often a controller fault. Do not try to initialise it; Microsoft notes some USB drives cannot be initialised at all, and initialising a disk in use erases its data.
Escalate
When Professional Recovery Is Required
You should seek professional data recovery if any of these apply:
- The stick shows RAW, 0 bytes or the wrong capacity
- It is read-only and you cannot copy the files
- The stick is physically damaged: bent, cracked plug, water
- A format or restore tool has already been run
- The files are irreplaceable (documents, photos, work)
Process
Our Recovery Process
- Turnaround Time
- 3-7 business days
- Success Rate
- Assessed in the free evaluation; depends on the damage
What happens when you bring your drive to us:
- 01Free evaluation: identify the controller and test whether the memory responds
- 02Read the stick through a write-blocked path and create an image
- 03If the controller is failing, access the memory directly where the design allows
- 04Rebuild the file system on the image and extract your files
- 05Verify files open, return on new media
FAQ
Frequently Asked Questions
Related
Related Guides
- 01
USB Device Not Recognized – Device Descriptor Request Failed
Windows shows 'USB Device Not Recognized' with 'Device Descriptor Request Failed' in Device Manager. - 02
CHKDSK Is Not Available for RAW Drives – Data Recovery
When you run CHKDSK, Windows says 'CHKDSK is not available for RAW drives.' - 03
You Need to Format the Disk in Drive Before You Can Use It
Windows prompts: 'You need to format the disk in drive X: before you can use it.' - 04
SSD Shows Up as 0 Bytes – Data Recovery
Your SSD appears in Windows but shows 0 bytes capacity or drastically wrong size.
Background reading
Free diagnosis
Need Professional Data Recovery?
Free Diagnosis • No Recovery, No Charge
Our certified technicians have recovered thousands of drives with these exact symptoms. Get your free evaluation today.
- 97% Success Rate
- Across all device types
- ISO-5 Cleanroom
- Class 100 certified facility
- 24/7 Emergency
- Available for critical cases