How to Fix a USB Drive or SD Card Showing as Unallocated Space

Watch the video on YouTube
▶ Watch the video on YouTube

A USB stick or SD card suddenly doesn’t show in File Explorer, and Disk Management labels it Unallocated (black bar). This means the drive has no usable partition. It often happens after removing the drive without ejecting it, or after using it in a camera, Raspberry Pi or other device.

Fixing it means creating a new partition, which erases what’s on the drive. If you need the files, recover them first.

Step 1: Recover your files if you need them

Free tools such as PhotoRec or TestDisk can often find files or lost partitions on unallocated drives. Save recovered files to a different drive, never to the same card.

Step 2: Create a new volume in Disk Management

  1. Right-click the Start button and choose Disk Management.
  2. Find your USB or SD card. Check the size carefully so you don’t pick the wrong disk.
  3. Right-click the Unallocated space and choose New Simple Volume.
  4. Click Next, keep the full size and choose a drive letter.
  5. Pick a file system: exFAT for large files and use with phones, cameras or Macs, FAT32 for small cards and older devices, or NTFS for Windows-only use.
  6. Tick Perform a quick format, click Next and then Finish.

Step 3: Use DiskPart if New Simple Volume is greyed out

Warning: these commands erase the selected disk. Choosing the wrong disk number can wipe your main drive.

  1. Right-click the Start button and choose Terminal (Admin).
  2. Type diskpart and press Enter.
  3. Run the commands below one by one. Replace X with your USB’s disk number from list disk, which you can identify by its size.
list disk
select disk X
clean
create partition primary
format fs=exfat quick
assign
exit

The drive should now appear in File Explorer with a new letter.

If it still doesn’t work

  • Try a different USB port or card reader.
  • If DiskPart shows errors like “device not ready” or the size reads 0 bytes, the flash memory has probably failed.
  • Very cheap drives can report a fake capacity and lose data. Replace them.

Frequently asked questions

Why does my 64 GB card show as smaller?

The card may still have old partitions from another device. Using the clean command in DiskPart removes them so you get the full capacity back.

Can’t I just format it from File Explorer?

Not while it’s unallocated. File Explorer can only format drives that already have a partition and a drive letter.

Leave a Comment

Your email address will not be published. Required fields are marked *