STATUS_NO_MEDIA (0XC0000178) fix: No media in drive
Your drive says there's no media. This usually means a USB or SD card is dead, loose, or the driver's glitched. Let's fix it step by step.
What's happening
You plug in a USB drive, an SD card, or an external hard drive. Windows wiggles the drive letter in File Explorer, but when you try to open it, you get: STATUS_NO_MEDIA (0xC0000178) - {No Media} There is no media in the drive. The drive is there, but Windows insists it's empty. This happens most often with cheap USB flash drives, SD cards from cameras, or external drives that got yanked out without safely ejecting.
Here's the real deal: the error means the physical media (the flash chip inside the USB or the SD card itself) isn't being read by the controller. Could be a loose connection, a dead card, or a driver that's gone wonky. Let's walk through fixes from quickest to most thorough.
Fix 1: The classic reseat (30 seconds)
This sounds dumb. Do it anyway. Half the time it works.
- Unplug the drive from your PC. Don't just pull gently—give it a firm yank if it's a USB. For SD cards, push it in to click it out.
- Wait 10 seconds. Let the port's power cycle.
- Plug it back in. Use a different USB port if you can. Front ports on a desktop are better than back ones for USB 2.0 drives, because they have less interference.
What you should see: If the drive was just confused, you'll hear the USB connection sound and the drive will show up with its files. If you still get the error, move to Fix 2.
Fix 2: DiskPart cleanup (5 minutes)
When the drive is detected but Windows can't talk to the media, a hidden partition or bad sector can cause this. DiskPart can tell the drive to re-read its media.
- Press Windows Key + X and choose Disk Management. Look for your drive. If it shows as "No Media" or "Unknown," continue here.
- Open Command Prompt as Administrator. Right-click the Start button, select "Command Prompt (Admin)" or "Terminal (Admin)" on Windows 11.
- Type
diskpartand press Enter. You'll see a new prompt. - Type
list disk. Find your problem drive by size. Usually it's the one with a size like "0 bytes" or "14 GB" but shows no partition info. Note the disk number. - Type
select disk X(replace X with the number from above). - Type
clean. This wipes the partition table. You'll lose all data on the drive. If you don't want that, stop here and try data recovery tools instead. - Type
create partition primary. - Type
format fs=fat32 quick(orntfsif it's over 32 GB). - Type
assign letter=Z(or any free letter). - Type
exittwice to close out.
What you should see: After clean, you might see a brief success message. After format, it'll say "DiskPart successfully formatted the volume." If you get "The media is write-protected" or "The device is not ready," the drive is physically dead. Skip to Fix 3.
Fix 3: Driver rollback and USB controller reset (15+ minutes)
If DiskPart couldn't even see the media, the drive's controller or your USB port driver is the problem. On Windows 10 and 11, a corrupted driver can make any drive show "No Media."
- Press Windows Key + X and choose Device Manager.
- Expand Universal Serial Bus controllers. You'll see items like "USB Root Hub (USB 3.0)" and "Generic USB Hub."
- Right-click each one (all of them) and select Uninstall device. Do not check "Delete the driver software for this device" unless you're sure you want to reinstall from scratch. Just uninstall the device itself.
- After you've uninstalled all USB controllers, restart your PC. Windows will automatically reinstall the drivers on boot.
- After restart, plug in your drive again. Use a USB 2.0 port if you have one—some USB 3.0 ports have finicky controllers. If your drive is a USB 3.0 device, try a USB 3.0 port anyway, but also try a 2.0 port.
Still no luck? The drive's controller chip might have a physical failure. On SD cards, sometimes the little plastic sliding lock tab is stuck. Push it back and forth a few times. On USB drives, try bending the connector very slightly (not kidding—I've saved a dozen drives this way). The pins inside can lose contact. Bend the metal part of the USB plug upward or downward by maybe 1-2 millimeters, then plug it in. If it works, the drive is on its last legs. Copy your data and replace it.
When to give up
If none of these work, the drive is dead. Real talk: USB flash drives and SD cards have a limited number of write cycles. Once the internal controller fails, no software fix will bring it back. You can try professional data recovery for $500+, but for a $10 drive, you're better off buying a new one. Always keep backups.
Was this solution helpful?