How to Recover a Deleted Partition on an External Hard Drive

Published 2026-10-16 · LuxuriousComputers Repair

If your external hard drive suddenly shows as unallocated space in Disk Management, or Windows asks you to format a drive that previously had years of files on it, the partition table has likely been deleted or corrupted. The good news is that the files are usually still on the drive — only the map that tells the operating system where to find them is damaged.

Do Not Format the Drive

When Windows detects a drive without a recognized partition, it will prompt you to format it. Do not click Format. Formatting writes a new empty file system over the drive, which can make recovery significantly harder. If you accidentally clicked Format and the quick format completed, stop using the drive immediately — some data may still be recoverable, but every new write reduces your chances.

Step 1: Check Disk Management

Before attempting recovery, confirm the drive is physically detected by your computer:

  1. Press Win + X and select Disk Management
  2. Look for your external drive in the list. It will typically appear as Disk 1, Disk 2, etc., depending on how many drives are connected
  3. If the drive shows black unallocated space where your partition used to be, the partition table is damaged but the drive is physically working — recovery is likely possible
  4. If the drive does not appear at all, try a different USB port, a different cable, or connect it to another computer. If it still does not appear, the issue is hardware-level and may require professional data recovery

Step 2: Recover the Partition with TestDisk

TestDisk is a free, open-source tool specifically designed to recover lost partitions. It works by scanning the drive for the signatures of deleted partition tables and file system structures:

  1. Download TestDisk from the official CGSecurity website. It runs as a portable application and does not need to be installed
  2. Run testdisk_win.exe as Administrator
  3. Select Create a new log file
  4. Choose your external drive from the list (match it by size to make sure you select the correct drive)
  5. Select the partition table type. For most external drives, this is Intel (MBR) for drives under 2 TB or EFI GPT for larger drives
  6. Choose Analyse, then Quick Search. TestDisk will scan for lost partitions
  7. If it finds your partition (shown in green), press Enter to continue. Verify the partition looks correct by selecting it and pressing P to list files
  8. If the files are there, go back and select Write to restore the partition table
  9. Restart your computer. The drive should appear with your files intact

Step 3: If Quick Search Fails, Try Deep Search

If TestDisk's Quick Search does not find the partition, run a Deeper Search. This takes longer (potentially hours on large drives) but scans every sector for file system signatures. If Deeper Search finds the partition, follow the same steps to write the recovered partition table.

Step 4: Recover Individual Files

If the partition itself cannot be restored (the file system is too damaged), you can still recover individual files:

  1. In TestDisk, use the Advanced menu and select the unallocated space
  2. Select List to browse the drive's contents. Even without a valid partition, TestDisk can often read the file system structure
  3. Select files and folders you want to recover and press C to copy them to another drive
  4. Alternatively, use PhotoRec (included with TestDisk) for file-type-based recovery. PhotoRec scans raw sectors and recovers files by their headers — it works even when the file system is completely destroyed, though recovered files lose their original names

Common Causes of Partition Loss

When to Get Professional Help

If the drive makes clicking, grinding, or beeping sounds, do not run any recovery software — these are signs of mechanical failure, and continued use can make the data permanently unrecoverable. Professional data recovery services have clean-room facilities and specialized equipment to recover data from physically damaged drives. Similarly, if you accidentally formatted the drive and then continued using it, a professional service has better tools for recovering overwritten data than consumer software.

Need Expert Help?

Our team at LuxuriousComputers Repair is here to help you with any questions.

Computer Repair Marion Ohio →