Disk Management Shows Drive as Unallocated – Fix It Fast

Your hard drive shows as unallocated in Disk Management after a crash or cable swap. Here's how to recover your data or get it working again.

You plug in a hard drive—internal or external—and open Disk Management. There it is: black bar, says Unallocated. No drive letter. You can't click it. Your heart sinks because that drive had your tax returns from 2018 or your kid's baby photos.

I saw this three times last week alone. One was a Seagate external that got yanked out mid-write. Another was an old WD Blue from a desktop that just wouldn't boot after a power surge. Third one? A brand new SSD that came out of the box showing unallocated because the factory forgot to format it.

Why does this happen?

The short version: Windows looks at the drive and sees no partition table—or a corrupted one. That means it can't figure out where the data starts or stops. So it calls it "unallocated" and waits for you to do something.

Common triggers:

  • Sudden power loss while the drive was writing
  • USB cable got yanked out without safe eject
  • SATA cable came loose inside the PC
  • Drive was used in a different OS (Linux, Mac) and the partition table got confused
  • Old drive from a dead PC—Windows 10 or 11 just can't read the old partition style

Sometimes it's just a bad connection. Sometimes the partition table is toast. We'll figure out which one you've got.

The fix: step by step

Before we do anything: if there's data on this drive and you want it back, do not format it. Formatting wipes the partition table and makes recovery harder. If the drive is empty, you're safe to format.

Step 1: Check the obvious stuff first

Don't laugh. Half the time this is a cable issue.

  1. Turn off the PC. Unplug the drive. Plug it back in—different SATA port if it's internal, different USB port if it's external.
  2. Try a different cable. I keep a spare SATA cable in my bag just for this. USB cables fail more often than people think.
  3. Reboot the PC. Sometimes a fresh boot re-scans the bus and the drive shows up normally.

If after that it's still unallocated, move to Step 2.

Step 2: Check if Windows sees it at all

Open Command Prompt as Administrator (right-click Start > Command Prompt Admin). Type:

diskpart
list disk

You'll see a list of disks. Find the one that matches the size of the problem drive. It'll have a number (like Disk 1). If it says No Media or Not Initialized, that's a different problem. If it just shows as a normal disk with unallocated space, keep going.

If list disk doesn't show it at all, the drive might be physically dead. Try it in another PC to confirm.

Step 3: Initialize the disk (optional but often needed)

Back in Disk Management, if the drive says Unknown or Not Initialized, right-click the black bar on the left side (where it says Disk 1, Disk 2, etc.) and pick Initialize Disk.

It'll ask you for a partition style:

  • MBR (Master Boot Record) – works with older Windows and smaller drives (under 2TB).
  • GPT (GUID Partition Table) – newer, works with drives over 2TB, and required for Windows 11.

If you're not sure, pick GPT. If the drive is under 2TB and you might move it to an old PC, pick MBR. I had a client last month pick MBR for a 4TB drive—that's why it only showed 2TB. Don't do that.

If initialization fails, try this in diskpart:

select disk X   (replace X with the disk number)
clean
convert gpt

This wipes everything. Only do this if the drive has no data you care about.

Step 4: Create a new simple volume

Once the disk is initialized, right-click the unallocated space and choose New Simple Volume. Follow the wizard:

  • Use the full size unless you want multiple partitions
  • Assign a drive letter (I usually pick something after F: to avoid conflicts)
  • Format as NTFS (exFAT if it's an external drive you use with Macs)
  • Quick format is fine if the drive is healthy

Within a minute or two, the drive should show up in File Explorer with a letter and you can use it.

What if the drive has data I need?

If there's data on that unallocated drive, don't create a new volume. That overwrites the partition table and makes recovery harder. Instead:

  1. Use a data recovery tool like Recuva (free for basic stuff), TestDisk (free, powerful, command-line), or DMDE (cheap and works).
  2. Scan the drive as a whole—don't select a partition.
  3. Copy the recovered files to another drive.
  4. After you've got everything, then format and use it normally.

I used TestDisk last week on a client's 1TB external that suddenly went unallocated. Took 20 minutes, got back every file. The tool rebuilt the partition table without wiping anything.

Still not working?

If you've done all the steps and the drive still shows as unallocated, you're probably looking at hardware failure. Here's what to check:

  • Bad sectors: Run chkdsk /f X: (after you've got a letter) to see if the drive is physically failing.
  • Smart status: Download CrystalDiskInfo (free) and check the drive's health. If it's yellow or red, replace it.
  • Try a different PC: If a drive won't initialize on two separate machines, it's dead. Get a new one.

One last thing: I've seen drives show as unallocated because the SATA controller in the BIOS was set to RAID instead of AHCI. Change it to AHCI if you can. That's rare but it happens. I had a Dell Optiplex last year that did exactly that—took me 45 minutes to figure out why no drive showed up.

If none of this works, the drive is probably toast. Back up whatever you can and buy a new one. Hard drives are cheap. Your time isn't.

Related Errors in Hardware – Hard Drives
MD_RECOVERY_ERROR RAID Parity Sync Failure – Quick Fix That Actually Works 0X00003647 Fix ERROR_IPSEC_IKE_QM_EXPIRED (0X00003647) Quick Mode SA Expired Hard Drive Clicking? BIOS Won't See It? Fix It Now Fix USB Hard Drive Not Showing Up in Windows 11

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.