Updated 2026-11-16 · 5 min read
How to Fix USB Flash Drive Showing 0 Bytes or Wrong Capacity
USB flash drive showing 0 bytes, RAW filesystem, or 64GB drive showing only 4MB? How to rescue your files before repairing the partition table.
Plugging in a 64 GB or 128 GB USB flash drive only to see Windows Disk Management report '0 Bytes', 'No Media', or a shrunken 4 MB capacity is a confusing problem. Files suddenly disappear, and Windows refuses to open the drive.
This issue is often triggered by corrupted Master Boot Records (MBR), interrupted partition table writes (such as after burning bootable ISOs), or firmware descriptor mismatches. Your data is usually still on the memory chips.
Why USB Drives Report 0 Bytes or Fake Shrunken Sizes
When an operating system reads a USB drive, it inspects the partition table at sector 0. If this sector is corrupted, Windows cannot calculate the volume size and reports 0 bytes.
If the drive was used as a Linux live USB or Raspberry Pi installer, Windows only sees the tiny EFI bootloader partition (e.g. 4 MB or 300 MB) and hides the rest as unallocated space.
Do Not Run Destructive Partition Commands Yet
Common forum advice suggests running `diskpart clean` or reformatting. While this fixes the drive's capacity, it permanently wipes the metadata pointers needed to recover your files with their original names.
Physical Drive Scanning with DiskMend
DiskMend opens the USB drive as a raw physical disk (`\\.\PhysicalDriveX`), completely ignoring whatever corrupt volume size Windows File Explorer reported. It scans the true hardware capacity and carves your files.
Step by step
- 1
Do not format
Cancel any Windows prompts asking to format the USB drive.
- 2
Launch DiskMend
Choose the physical USB drive from DiskMend's hardware list.
- 3
Scan full physical capacity
DiskMend scans the entire flash storage space regardless of partition errors.
- 4
Check the results
Look at photo previews and each file’s intact or partial status before saving.
- 5
Export to PC and repartition
Save files to your PC, then format the USB to restore full capacity.
| Symptom | Likely Cause | Risk to Data | Recovery Action |
|---|---|---|---|
| Shows 0 Bytes / RAW | Corrupted MBR or Boot sector | Low (Data intact on flash) | DiskMend Physical Scan |
| Shows 4 MB (Was 64 GB) | Residual bootable ISO partitions | Low (Files in unallocated space) | DiskMend Lost Partition Scan |
| No Media / 0 MB | Failing NAND memory controller | High (Hardware issue) | Requires specialized reader |
Frequently asked questions
Why does my 64GB USB only show 4MB in Windows?+
The drive likely contains an ISO image or non-Windows partition scheme. The rest of the 64GB exists as unallocated space. DiskMend can scan and extract files from that hidden space.
Can DiskMend fix the USB drive's capacity?+
DiskMend safely extracts all your files first. Afterward, you can use Windows Disk Management or Diskpart to clean and restore the full capacity.
Will formatting the USB bring my 0-byte files back?+
No! Formatting creates a blank filesystem and makes recovering your previous files much more difficult. Always recover first, format later.