A drive that worked fine yesterday now shows "You need to format the disk in drive X: before you can use it," and Windows offers exactly one button to move forward. Don't click it. That message doesn't mean your files are gone, it means Windows lost the index that tells it where your files are. The files themselves are almost always still sitting on the drive, untouched.
What's Actually Wrong With the Drive
Windows organizes every drive using a file system, usually NTFS or exFAT. That file system is essentially an index: it tracks which files exist and exactly where each one physically sits on the drive. When that index gets damaged, Windows can no longer read it, so it labels the drive RAW instead of NTFS or exFAT and assumes the safest move is to offer a fresh start.
The data underneath is usually intact. Only the map to it is broken. A few things commonly cause that:
- Unplugging the drive without using Safely Remove Hardware first
- A sudden power loss or improper shutdown mid-write
- A damaged partition table after a failed format or clone
- Malware altering file system structures
- A loose or failing USB cable, port, or enclosure
Confirm which situation you're in before doing anything else. Open Disk Management (Win + X, then Disk Management) and find the drive in the list.
| What Disk Management Shows | What It Means | What To Do |
|---|---|---|
| File system listed as RAW | File system index is damaged, data is likely intact | Recover files, then repair or format |
| Shows NTFS or exFAT, but still won't open | Lighter corruption, not full RAW | Try CHKDSK first |
| Drive is Unallocated | Partition itself is gone, not just the file system | Use partition-recovery software, don't create a new volume yet |
| Drive doesn't appear at all | Connection, controller, or physical hardware issue | Try a different cable, port, and PC before anything else |
| Drive makes clicking, grinding, or beeping sounds | Physical/mechanical damage | Stop. Power it off and see a data recovery professional |
1. Rule Out a Simple Connection Problem
Before touching any software, eliminate the easiest explanation. A worn USB cable or a flaky port can make a perfectly healthy drive look corrupted.
- Unplug the drive and try a different USB cable if it's external.
- Try a different USB port, ideally one on the back of a desktop, not a front-panel or hub port.
- Try the drive on a second computer if you have one available.
If the drive reads normally somewhere else, the drive is fine and the port, cable, or hub is the real problem. If it's a USB flash drive specifically that's misbehaving, our guide to fixing "Unknown USB Device" errors covers the connection side in more depth.
2. Recover Your Files Before Doing Anything Else
If the drive still shows RAW after ruling out a connection issue, recover your files now, before running CHKDSK or attempting any repair. Repair tools rebuild the file system, and rebuilding can overwrite exactly the data you're trying to save. Recovery software instead reads around the damaged index and reconstructs files directly from the raw data on the disk.
TestDisk and PhotoRec are free, open-source tools built specifically for this. TestDisk can often rebuild a damaged partition table and restore the drive to working order with its original file names intact. If that fails, PhotoRec (bundled with it) scans the raw disk and carves out files by their content, which works even when the file system is too damaged for anything else to read.
- Run TestDisk as administrator.
- Select the affected drive, and choose the correct partition table type (usually Intel/EFI GPT for modern drives).
- Choose Analyse to scan for existing or lost partitions.
- If TestDisk finds your original partition marked in green, select Write to restore it. This is the best outcome, since it fixes the drive without touching a single file.
- If nothing shows up, or the partition can't be rebuilt cleanly, switch to PhotoRec instead and save recovered files to a different drive, never back onto the damaged one.
Never recover files onto the same drive.
Writing recovered files back onto the drive you're recovering from can overwrite data you haven't recovered yet. Always save to a separate drive or a second partition.
3. Try CHKDSK — Only Once Your Files Are Safe
CHKDSK is Windows' built-in disk-repair tool, and it can genuinely fix file system corruption. The catch: it works by rewriting the file system structures it's repairing, which is exactly what can finish off files a recovery tool hasn't pulled off yet. Run this only after your files are safely copied elsewhere, or only if the drive shows NTFS/exFAT rather than full RAW and you're comfortable with the small risk.
- Press Win + S, type
cmd, right-click Command Prompt, and choose Run as administrator. - Type the command below, replacing
E:with your drive's actual letter, and press Enter.
chkdsk E: /f /r /x
Let it run all the way through, even if it takes hours on a large or heavily damaged drive. Don't unplug the drive or close the window while it's working. If the drive shows as RAW rather than NTFS or exFAT, CHKDSK will simply refuse to run and tell you the file system type is RAW. That's your cue to rely on TestDisk or PhotoRec instead.
4. Format the Drive Only Once Your Files Are Safe
Once your files are recovered and sitting safely on another drive, formatting is the right way to get this one working again. Right-click the drive in File Explorer, choose Format, pick NTFS for a drive that will mostly live on Windows PCs, or exFAT if it needs to work with Macs too, and let it run a full format rather than a quick one if the drive showed signs of corruption.
Keep This From Happening Again
- Always use Safely Remove Hardware before unplugging an external drive
- Don't unplug a drive while a file is actively copying or saving
- Keep a second backup of anything you can't afford to lose — an external drive is not a backup location on its own
- Run a virus scan periodically if the drive is frequently connected to different computers
Frequently Asked Questions
Does "You need to format the disk" mean my files are already gone?
No. This message almost always means the file system index is damaged, not that the actual data has been erased. Your files are usually still physically present on the drive. Formatting is what actually destroys the structures needed to recover them, so avoid it until you've tried recovery first.
Can I use CHKDSK on a RAW drive?
No. CHKDSK only works on drives Windows recognizes as NTFS or FAT32/exFAT. If a drive shows as RAW in Disk Management, CHKDSK will refuse to run and report that the file system type is RAW. Use TestDisk or a recovery tool instead.
Is it safe to keep using a drive that just showed this error?
Not for anything important. If the corruption was caused by a bad cable or an improper ejection, the drive itself may be fine long-term. But if it was caused by bad sectors or early mechanical failure, the same problem can return. Recover your files, then treat the drive as suspect until you've used it without issues for a while.
Why does the drive show 0 bytes used and 0 bytes free?
Windows calculates used and free space by reading the file system index. When that index is damaged, Windows has no way to know what's actually stored on the drive, so it reports zero on both. It doesn't mean the drive is actually empty.
When should I stop trying this myself and go to a data recovery service?
If the drive makes clicking, grinding, or repeated beeping sounds, or doesn't spin up at all, stop immediately. That's physical damage, and every additional power-on cycle risks making the data less recoverable. A professional recovery service works in conditions DIY software can't replicate at home.
