Drive Shows as RAW – Fix Without Losing Data
You plug in a drive and it shows as RAW instead of NTFS or FAT32. This fix uses built-in Windows tools to recover the data.
When This Happens
You connect an external USB drive, a second internal hard drive, or an SD card to your Windows 10 or Windows 11 machine. Instead of opening normally, you get a message saying “You need to format the disk in drive X: before you can use it.” When you open Disk Management, the drive shows as “RAW” in the file system column – not NTFS, not FAT32, just “RAW.”
This usually happens after a bad eject (you pulled the cable without clicking “Safely Remove Hardware”), a sudden power loss, or a system crash while the drive was writing data. It can also happen after a virus infection or a damaged file system structure.
Root Cause (in Plain English)
Windows reads a drive’s file system by looking at a special area called the boot sector or partition table. If that area gets corrupted – but the actual data (your files) is still on the drive – Windows doesn’t know how to read it. So it labels it “RAW” and asks you to format it. But formatting erases everything. The real fix is to rebuild that file system structure without touching your files.
Step-by-Step Fix
Important: Do not format the drive. Do not run CHKDSK yet. CHKDSK can make things worse on a RAW drive if you run it wrong. Follow the steps exactly.
- Open Command Prompt as Administrator
Press the Windows key, type “cmd,” right-click Command Prompt in the results, and select “Run as administrator.” Click Yes if UAC asks. - Run Diskpart
In the Command Prompt window, type
and press Enter. You’ll see the DISKPART prompt.diskpart - List the Drives
Type
and press Enter. You’ll see all connected drives. Look at the size column to identify your RAW drive. For example, if it’s a 1TB external drive, it’ll show as 931GB (that’s the actual usable space). Write down the disk number – let’s say it’s Disk 2.list disk - Select the RAW Drive
Type
(replace 2 with your disk number) and press Enter. It should say “Disk 2 is now the selected disk.”select disk 2 - List the Partitions
Type
and press Enter. If you see a partition listed, great – the partition table is still there. If it says “There are no partitions,” skip to the Still Fails? section below.list partition - Check the Partition Type (if partition exists)
If you have a partition, type
and press Enter. Then typeselect partition 1
. Look at the “Type” line. If it says “ID: 07” (that’s NTFS) or “ID: 0B” or “0C” (FAT32), then the partition type is correct. If it says something else like “ID: 00” or is blank, your partition table is damaged.detail partition - Assign a Drive Letter (if partition exists and type is correct)
If the partition type looks correct, type
(or any letter not in use). Press Enter. Then close Diskpart by typingassign letter=Z
. Open File Explorer and check if the drive appears with your files. If it does, you’re done – the fix was just reassigning the drive letter.exit - If Partition Type is Wrong or No Partition
This is the tricky part. You need to recover the partition using a tool like TestDisk. It’s free, it runs from command line, and it’s built for exactly this job. Download it from cgsecurity.org. Extract the zip to a folder, run testdisk_win.exe, and follow these instructions:- Select the disk (use arrow keys, then Enter).
- Choose “Intel/PC partition.”
- Select “Analyse,” then “Quick Search.”
- If it finds your lost partition, select “Write” to save the partition table.
- Reboot your computer. The drive should now show with its original file system and data.
Still Fails? Check This
If TestDisk can’t find the partition, or if the drive still shows as RAW after writing the partition table, the damage is more serious. Your next option is data recovery software. I’ve had good luck with Recuva (free for basic use) or DMDE (has a free mode that recovers up to 4000 files from one folder). Don’t buy anything until you’ve tried the free versions.
One more thing: if the drive makes clicking sounds or won’t spin up at all, stop immediately. That’s physical damage. Turn it off and take it to a professional recovery service. Running any software on a failing hard drive can kill it for good.
If you did format the drive before reading this guide, don’t panic. Stop using the drive right now. The files are still there, just marked as deleted. Run Recuva or DMDE on it immediately, and you’ll likely get most of them back.
Was this solution helpful?