How to Fix “You Need to Format the Disk” Error for USB Drives and SD Cards in Windows 11/10

·
8 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

“You need to format the disk in drive X: before you can use it”, Windows shows this dialog when it can’t read the file system on your USB drive or SD card, usually because of corruption, an unsafe removal, or a damaged partition table. Don’t click Format yet.

⚠️ Data warning: Formatting will erase everything on the drive. Work through the fixes below first, as most cases of file system corruption are recoverable without losing your files.

Fix #1: Try a Different USB Port or Computer

Before assuming the drive is corrupted, rule out a bad port or card reader.

  1. Unplug the drive and plug it into a different USB port, ideally a rear port on a desktop or a direct port on a laptop, not a hub.
  2. If it’s an SD card, try a different USB card reader.
  3. If you have access to another PC, plug the drive in there. If the second PC reads it fine, the problem is with your Windows installation, not the drive. Jump to Fix #2 or Fix #3.
  4. If every computer you try shows the same format prompt, the drive itself is corrupted. Skip ahead to Fix #4 or Fix #5.
Windows 11 "You need to format the disk in drive E: before you can use it" dialog with Format disk and Cancel buttons visible

Fix #2: Check the Drive in Disk Management

Disk Management shows you exactly what Windows sees, whether the partition is RAW, Unallocated, or just missing a drive letter. This tells you which fix to try next.

  1. Right-click the Start button and select Disk Management.
  2. Find your removable drive in the list, identified by size.
  3. Look at the status of the partition:
Disk Management showing a removable USB drive with RAW file system and Healthy status, with the partition highlighted

Here’s what each status means and what to do:

What Disk Management showsWhat it meansWhat to try
File system = RAWFile system is corrupted; Windows can’t mount itFix #3 (chkdsk), then Fix #4 (TestDisk)
UnallocatedPartition table is damaged or deletedFix #4 (TestDisk) for recovery, or Fix #6 to reformat
Healthy, no drive letterDrive is fine but has no letter assignedRight-click the volume > Change Drive Letter and Paths… > Add…
Unknown file systemFormatted by a camera, TV, or Linux deviceFix #3 (chkdsk), then Fix #5 (Error Checking)

Fix #3: Run chkdsk to Repair the File System

chkdsk can repair file system errors and recover data from bad sectors, and it often fixes the format prompt without any data loss.

  1. Right-click the Start button and select Windows Terminal (Admin) or Command Prompt (Admin).
  2. Type the following command, replacing X: with your drive’s actual letter:
chkdsk X: /f /r
  1. Press Enter and wait. The /f flag fixes errors; /r locates bad sectors and recovers readable data. This can take several minutes on larger drives.
Windows Terminal (Admin) running chkdsk X: /f /r with the scan progress visible

When it finishes, safely eject the drive, unplug it, and plug it back in. If Windows still shows the format prompt, the file system damage is too severe for chkdsk move to Fix #4.

Note: If the drive shows as RAW or has no drive letter, chkdsk usually can’t run at all. Skip straight to Fix #4.

Fix #4: Recover Files with TestDisk or PhotoRec (Before You Format)

If chkdsk didn’t work or can’t run, use TestDisk to repair the partition table, or PhotoRec to pull your files off the drive before formatting. Both are free and open source.

Option A: Repair the partition with TestDisk

  1. Download TestDisk from CGSecurity and extract the ZIP file.
  2. Run testdisk_win.exe as Administrator.
  3. Select Create to create a new log file, then select your USB drive from the list and press Enter.
  4. Choose the partition table type, usually Intel for most USB drives, and press Enter.
  5. Select Analyse > Quick Search. TestDisk will scan for lost partitions.
  6. If it finds your original partition, select it and press P to verify your files are listed. Then press Enter > Write to restore the partition table.
  7. Reboot and check if the drive is readable.
TestDisk partition analysis screen showing a found partition with file listing visible

Option B: Recover files with PhotoRec

If TestDisk can’t repair the partition, use PhotoRec to copy your files to a different drive before you format:

  1. Run photorec_win.exe from the same TestDisk download folder.
  2. Select your USB drive, choose the partition (or the whole disk if unpartitioned), and select a destination folder on a different drive to save recovered files.
  3. Let it run. PhotoRec will copy recoverable files to the destination folder. File names won’t be preserved, but the data will be.

Once your files are safely copied, you can format the drive using Fix #6.

Fix #5: Run System File Checker (If the Problem Happens on Every Drive)

If Windows asks to format every USB drive or SD card you plug in, even ones that work fine on other computers, corrupted Windows system files may be the cause. The System File Checker (SFC) scans and repairs them.

  1. Right-click Start and select Windows Terminal (Admin) or Command Prompt (Admin).
  2. Type the following and press Enter:
sfc /scannow
  1. Wait for the scan to complete. It typically takes 10–20 minutes. Don’t close the window.
Show an elevated Windows 11 terminal running sfc /scannow, build 10.0.22621.525 or newer, verification progress bar visible.
  1. When it finishes, restart your PC and plug in the drive again.

If SFC reports it couldn’t fix all files, run DISM to repair the Windows image first, then run SFC again:

DISM /Online /Cleanup-Image /RestoreHealth

Fix #6: Reinstall USB Controllers

If the drive works on another PC but Windows consistently fails to read it on yours, a corrupted USB controller driver may be the culprit.

  1. Press Windows + X and select Device Manager.
  2. Expand Universal Serial Bus controllers.
  3. Right-click each item in that section and select Uninstall device. Do this for all items listed.
Device Manager with Universal Serial Bus controllers expanded, right-click context menu showing Uninstall device option
  1. Restart your PC. Windows will automatically reinstall the USB controllers on boot.
  2. Plug the drive back in and see if Windows recognizes it normally.

Fix #7: Format the Drive (Last Resort)

If you’ve recovered your files (or don’t need them), formatting is the cleanest way to get the drive working again.

Format from File Explorer

  1. Open File Explorer, right-click the drive, and select Format…
  2. Choose a file system (see the table below for guidance).
  3. Leave Allocation unit size on default.
  4. Optionally uncheck Quick Format for a deeper scan, which is slower but more thorough on suspect drives.
  5. Click Start.
Windows 11 Format dialog for a USB drive with file system dropdown showing exFAT selected and Quick Format checkbox visible

Format from Disk Management (if the drive is Unallocated)

  1. Right-click Start > Disk Management.
  2. Right-click the unallocated space on your drive and select New Simple Volume…
  3. Follow the wizard and choose your file system.

Which file system should you choose?

File SystemBest forLimitations
exFATCross-platform use (Windows, macOS, cameras, TVs); best general choice for flash drivesNone for typical use
NTFSWindows-only drives, large storage, permissions neededLimited write support on macOS without extra software
FAT32Older devices that only understand FAT324 GB max file size; Windows GUI won’t create FAT32 volumes larger than 32 GB

If Windows can’t complete the format, use Disk Management to delete the existing partition first, then create a new one. If that also fails, the drive is likely physically damaged and should be replaced.

Frequently Asked Questions

Why did this happen suddenly when the drive worked fine yesterday? The most common cause is removing the drive without safely ejecting it during a write operation. Sudden power loss, aging flash memory, or using the drive across multiple devices (cameras, TVs, car stereos) can also corrupt the file system.

Is it safe to click “Format disk”? Only if you don’t need the files, or you’ve already recovered them. Formatting, especially on SSDs and flash drives, makes data recovery significantly harder afterward.

Windows keeps asking me to format the same drive over and over after I format it. If the drive re-corrupts itself after a clean format, the flash memory is worn out or the SD card reader/USB enclosure is failing. Stop using it for anything important and replace it, as flash media is consumable.

My external SSD disconnects and comes back as RAW. This is often a power delivery issue (try a different USB port or cable), a bad enclosure, or in some cases a bug in specific Windows 11 builds. Make sure Windows is fully up to date, as storage-related regressions have been reported in some Windows 11 24H2 builds.

When Nothing Works

If every tool above fails to read or format the drive, the hardware is almost certainly the problem: failed flash memory, a broken SD card reader, or a faulty USB enclosure. At that point, a professional data recovery service is the only realistic option for getting files back. For the drive itself, replace it.

Conclusion

Fix #3 (chkdsk /f /r) resolves the format prompt for most people with mild file system corruption. If the partition table is damaged, TestDisk (Fix #4) is your best shot at recovering data without losing anything. The format prompt coming back repeatedly after a clean format is the one warning sign you shouldn’t ignore, as it means the drive itself is failing and no software fix will change that.