Overview: A "USB flash drive 0 bytes no media" error means the computer cannot access the drive's contents because the NAND flash memory is failing, the file system is corrupted, or there's a connection problem. To fix it, try connecting to another port or computer, update the USB driver, run the CHKDSK command, or reformat the drive in Disk Management. If these steps fail, you can attempt to recover data with a free tool like iCare Recovery Free before concluding that the drive has physical damage or a failing USB controller, which would make it likely unrecoverable.
Quick fixes: Fix usb there is no media found in device with 5 free ways
If it's the error coming from the computer USB port, test it on another USB port or computer. Or sometimes, the error comes with the OS conflicts, for example if the USB drive is exfat, over 32GB, then it may show a file system conflict on a computer earlier than Windows 7.
Uninstall and reinstall a new USB driver with the following steps to make sure the USB drive has the latest driver. It can repair the USB without additional software and show you the data without additional recovery.
Open Device Manager → Locate the USB drive under "Disk drives" or "Universal Serial Bus controllers" → Right-click → Uninstall device. Disconnect and reconnect the drive to reinstall the driver.
Logical errors can usually be repaired with CHKDSK if it still has a file system on the USB drive. If it cannot be repaired with CHKDSK, then a recovery tool is needed to recover data from the damaged USB drive, even when it lost the file system info.
chkdsk X: /f
(Replace X with your USB drive letter.)
Formatting can fix logical errors on USB flash drives but will erase all data. To protect your files, use the following free tool to recover data before formatting.
Diskpart clean will remove all data, please recover data first. And then try Diskpart after the data has been restored to another drive such as the computer hard disk partition.
diskpart
list disk
select disk X
clean
create partition primary
format fs=exfat quick
assign
exit
(Replace X with the correct disk number. Note: If the usb flash drive is under 32GB, Windows can only format it FAT32, format will report error if it's over 32GB. Try exfat instead, or use a free format tool like IM-Magic Partition Resizer to format the USB stick no matter what size to FAT32.)
diskmgmt.msc
).eventvwr.msc
→ Enter.If none of the above solutions work, the problem is likely hardware-related:
Professional chip-level recovery is possible but expensive. Replacing the USB drive is recommended.
Issue Type | Symptoms | Recoverable? |
---|---|---|
File system corruption / logical errors | RAW, 0 bytes, formatting errors | ✅ High (use CHKDSK, Diskpart, iCare Recovery) |
Driver / software issues | Not recognized intermittently | ✅ Very high |
Port / connection issues | Works on one port, not another | ✅ Full recovery |
Minor controller glitches | Intermittent detection | ⚠️ Moderate to high |
NAND flash memory failure | Always 0 bytes, no media | ❌ Very low |
USB controller failure | Not detected, unresponsive | ❌ Very low |
Firmware corruption | Cannot initialize, unpredictable behavior | ⚠️ Low to moderate |
Severe physical damage | Burned, broken, water-damaged | ❌ Professional recovery only |
Background
When I did diskpart in command prompt trying to format the usb thumb stick, however the thumb drive shows 0 bytes no media with the exact words disk 1 no media 0b 0b and it could not be selected inside of the diskpart. The drive also shows blank in my computer as if it would never show up again. I guess there must be something wrong with my memory stick. Can I format it to get it repaired or is there any disk no media repair tool for repairing this damaged usb stick? Using attrib command to fix no media usb error is an advantage but not user friendly?
Disk 2 no media 0 b 0 b Diskpart reported No Media in the Device
Quick fixes: Fix usb there is no media found in device with 5 free ways
Flash drive 0 bytes? Usually usb 0 byte means there is no data detected on your device which is empty as a brand new one.
Usually 1megatbyte = 1024 kilobyte
Mostly exe or zip are measured as * mb
Flash drive capacities are measured from mostly 256 mb to 1 GB in late 1990s and its capacity expanded to 16GB, 32GB, 128GB in the early 2000s and now there are 1TB flash drive or even bigger capacities.
0 Bytes and 1 Byte
However it is embarrassing that mostly when the usb flash drive said 0 bytes, there were tons of data inside but just got invisible.
Can you recover files from 0 bytes? Download usb drive 0 bytes data recovery tool to retrieve files from 0 byte error.
There is another situation that your memory stick may show 0 bytes in raw file system format. A photo below may represent the story for a flash drive that has turned raw format in 0 bytes.
RAW usb drive is 0 bytes for used space, free space and capacity
Video - fix usb drive raw 0 bytes
See more information: usb flash drive 0 bytes, or raw drive fix
Is it possible to use attrib command to repair usb no media? -> THE ANSWER IS NO! YOU MAY USE DISKPART COMMAND INSTEAD. HERE IS WHY.
Show hidden files on usb disk or flash drive using attrib? See tutorial here: how to show files on usb flash drive using attrib cmd [attrib -h -r -s /s /d g:\*.* --> Press Enter]
Attrib - property, what it is?
The attrib command is used to modify the attributes of a file that would not repair the no media error for usb disks or flash drives.
The common attributes of a file are read-only, archive, hide, and system.
Read only attribute refers to the file can only do read operations. It would make users unable to write to the file operation. That is the file write protection.
The archive attribute is used to mark the change of the file. That is, the file has changed after the last backup. Some backup software will only back up the file with the archive attribute when backing up
The hidden property is the hidden file as the name suggests. In general, the file with hidden property will not be displayed in Explorer
System attribute refers to the file labeled as system file. It is the file that the system needs to call
The format and common parameters of the attrib instruction are
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [[drive:] [path] filename] [/S [/D]]
Usually this 0 bytes could be fixed by the tool provided by Windows called 'Error checking' under Tools inside of the perperties of your drive that you may get access by the following route when the 0 bytes is only caused by logical damages.
'This PC' -> Right click usb drive -> Property -> Tools -> Error Checking
Repair no media usb by error checking in Windows 10
Video - how to repair usb drive with error-checking
Also read: 7 usb repair tools free
You may recover your data from the damaged usb flash drive before all fixings: free data recovery software download
Last updated on Aug 22, 2025
(*The Windows download provides iCare Recovery Free, a fully free tool. The Mac version is a trial edition powered by Stellar for Mac data recovery.)