Data

USB drive asks to format: how to recover files

Windows asks to format your USB drive, but your important files are on it. What to do in the first few minutes, how to recover data, and when you need a repair.

FixLabReading 5 min

Flash drive connected to a laptop on a desk
Flash drive in a laptop port

If a USB drive asks to format, click Cancel and don't write anything to it: recovering files after formatting is harder, and sometimes impossible. First, check another port and another computer, look at the drive in Disk Management, and then make a copy or run recovery software that saves files to a different drive.

Why Windows asks to format a USB drive

This window appears when the system can't read the file structure on the USB drive. The files themselves often stay in place, and only the table of contents is missing. The causes fall into logical and physical.

  • The USB drive was unplugged during a write operation or without safely removing it, leaving the file system incomplete.
  • A USB drive from a Mac or Linux is formatted in a file system (such as APFS or ext4) that Windows can't read.
  • Memory cells have worn out, and some blocks can't be read.
  • Controller failure: the USB drive shows zero capacity or doesn't show up at all.

The first two issues can be fixed without hardware work; the last two can't. That's why the first step is always the same: find out what the system actually sees.

Close-up of a flash drive USB connector
Flash drive connector contacts

What to do in the first few minutes

  1. Click Cancel in the window asking you to format. Don't click Format disk.

  2. Unplug the USB drive and plug it into another port, preferably a rear port on the computer case without a hub. Then try another computer.

  3. Press Win+R, type diskmgmt.msc, and open Disk Management. Find the USB drive by its capacity at the bottom of the window.

  4. If the capacity is visible and the file system shows as RAW, the issue is usually logical, and chances of recovery are generally higher. If the capacity is zero ("No Media") or the drive is not in the list, it's most likely a controller or memory issue.

  5. If the files are important, move on to recovery rather than running a drive check. Save everything that's found to a different drive.

What the USB drive shows and what to do
What you seeLikely causeWhat to do
Capacity is visible, asks to formatFile system failureRecover files, then format
Capacity is 0 bytes or no mediaController or memoryDon't try to format, diagnostics needed
Not in File Explorer or in the listPhysical failureAnother PC, then a technician
Casing is very hotPossible board failure on the USB driveUnplug it and don't connect it again
Files open corruptedMemory wearCopy everything to a different drive

USB drive recovery: what you can do yourself

Checking the drive with the chkdsk command can fix errors, but it can also alter data. Without parameters, it only displays the status and doesn't fix anything. With the /f, /r, /x, and /b parameters, it fixes errors, and Microsoft specifically notes that fixing on FAT usually alters the file allocation table and sometimes causes data loss. That's why, if you need the files, recovery comes first, then checking the drive.

For recovery, there is Microsoft Windows File Recovery: a command-line app from the Microsoft Store for Windows 11 and 10. The source and destination must be different drives. For FAT or exFAT flash drives, Microsoft recommends the /extensive mode, command example: winfr E: D: /extensive. Here E: is the flash drive, and D: is another drive. Third-party programs work on the same principle: they read the flash drive and write what they find to another drive.

A successful result isn't guaranteed in advance. Microsoft explicitly states that the space might've been overwritten. The less you worked with the flash drive after the failure, the higher the chances. Other cases of missing files are covered in the article how to recover deleted files.

Hands holding a flash drive and card reader near a PC tower
Connecting a flash drive through a different port
Flash drives, memory cards, and a card reader on an antistatic mat
Flash drives and memory cards arranged on a desk

When a flash drive isn't detected or gets hot

Zero capacity, disappearing from the system after plugging in, and the casing getting very hot usually point to a faulty controller or memory. Recovery programs won't usually help here: they only work with what the system can read. First, rule out simpler causes: try another port, a different extension cable, or another computer. If the flash drive still isn't detected, check the breakdown on the USB not working page.

Before trying it yourself

How to avoid losing files again

As long as a flash drive is the only storage location, any failure means losing your files. Keep important data in at least two places: the flash drive and a computer, the cloud, or an external drive. The full process is described in the article how to back up. Before unplugging the flash drive, use Safely Remove Hardware and Eject Media from the notification area: this gives write operations time to finish.

You can do it yourself

  • The flash drive is detected, the capacity is visible, and it simply asks to format
  • You've got another drive for the recovered files
  • The files aren't critical, and losing them isn't a disaster

Better to call a technician

  • The capacity is zero, and the flash drive isn't detected on other computers
  • The casing heats up, or there's an odor or traces of liquid
  • The flash drive holds the only copy of important documents
  • Recovery programs didn't find anything

Frequently asked questions

Can I recover files if I've already clicked Format?
Sometimes yes, if nothing was written to the flash drive afterward. There's no guarantee: new data could've taken that same space.
Why does the flash drive show 0 bytes?
Most often, the controller doesn't report the memory capacity to the system. Recovery software can't fix this, so diagnostics are needed.
Is it safe to run chkdsk on a flash drive with important files?
Without parameters, it's safe: the command will only show the status. With the /f, /r, /x, and /b parameters, it makes repairs, so do recovery first.
A flash drive from a camera or Mac asks to format, is it broken?
Not always. Windows might not understand the format the drive is formatted in. Plug it back into the device where it was working.

Contact

Tell us what broke

Describe the problem: a technician tells you what to do next and quotes the price before any work starts.

  • Daily 10:00-21:00
  • Price agreed before any work starts
Request