Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Lost Partition Recovery: Step-by-Step Guide

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If a partition has disappeared from your disk, you can often recover it without professional data recovery services—provided you stop using the drive immediately and use the right tools. This guide walks you through the process of restoring a lost partition using Windows' built-in Disk Management and the free TestDisk utility. The key is to act quickly: as soon as you notice a missing partition, stop writing any new data to that disk to avoid overwriting the partition table or the files you want back.

What You'll Need

  • A Windows PC (the steps below are for Windows 10/11; TestDisk also runs on macOS and Linux, but the commands differ slightly).
  • Administrator access to the computer.
  • A USB drive or external hard drive with enough space to back up recovered files (if the partition is damaged, you may need to copy files to another drive).
  • TestDisk – a free, open-source utility. Download it only from the official website (cgsecurity.org).
  • Patience – do not rush; a wrong step can make recovery harder.

Step-by-Step

  1. Stop using the affected drive immediately. Do not save files, run disk cleanup, or even open folders on that drive. Every write operation risks overwriting the very data you want to recover.
  2. Check if the partition is simply hidden or unassigned. Right-click the Start button and select Disk Management. Look for your disk. If you see unallocated space where the partition used to be, the partition table may be damaged. If you see the partition but it has no drive letter, right-click it and choose Change Drive Letter and Paths to assign a letter. If that works, you're done—back up your data immediately.
  3. If the partition is missing entirely, download TestDisk. Go to cgsecurity.org, download the Windows version, and extract the ZIP file to a folder (e.g., C:\testdisk). Do not install it on the same drive you're trying to recover—use a different drive or a USB stick.
  4. Run TestDisk as Administrator. Navigate to the extracted folder, right-click testdisk_win.exe and select Run as administrator. If Windows SmartScreen appears, click More info then Run anyway (this is a known safe tool, but you must confirm).
  5. Create a log file. TestDisk will ask if you want to create a log. Choose Create and press Enter. This log helps track your steps; it's saved in the same folder.
  6. Select the disk with the lost partition. Use the arrow keys to highlight the physical disk (not the partition) that contains the lost partition. Press Enter. Be careful: disks are listed by size, not by drive letter. If you have multiple drives, double-check the size to avoid picking the wrong one.
  7. Choose the partition table type. TestDisk will detect the partition table type (usually Intel for MBR or EFI GPT for UEFI systems). The default is usually correct—press Enter to accept.
  8. Select [Analyse] and press Enter. TestDisk will scan the disk for existing partitions. This may take a few minutes. After the scan, it shows the current partition structure.
  9. Look for the lost partition in the list. If you see a partition marked with a red D (deleted) or if the partition is missing, press P to list files inside it. If you can see your files, press Q to return.
  10. If the partition is listed but not marked as deleted, you may need to use Quick Search first. Highlight the partition and press Enter to select it, then choose Quick Search. TestDisk will search for lost partitions and display them. If you find yours, select it and press Enter to mark it as active.
  11. Write the partition table back. After selecting the correct partition, press Enter to return to the previous menu, then choose Write. Confirm with Y when asked. This writes the recovered partition information back to the disk. TestDisk will ask you to reboot—do so.
  12. After reboot, check if the partition is back. Open Disk Management again. If the partition appears with a drive letter, you're done. If it appears as a raw or unformatted drive, do not format it—stop and seek professional help, as formatting will destroy the data.
  13. If the partition is restored but files are missing, you may need to use TestDisk's Advanced > Undelete or a file recovery tool like PhotoRec (also from cgsecurity.org) to recover individual files. This is a separate process; see the FAQ below.

Common Mistakes

  • Continuing to use the drive after noticing the loss. Even opening a folder can update the filesystem journal and overwrite data.
  • Choosing the wrong disk in TestDisk. If you select the wrong physical drive, you could write a partition table to a good disk and corrupt it. Always verify by size.
  • Formatting the partition when Windows asks. Windows may prompt to format a raw partition. Never click Format—that erases the data permanently.
  • Using a recovery tool that writes to the same drive. Always install and run recovery software from a different drive (like a USB stick) to avoid overwriting.
  • Skipping the log file. The log helps you track what you did and can be useful if you need to ask for help.

Tips

  • Back up regularly. The best recovery is the one you never need. Use a cloud backup or an external drive.
  • Use a disk image. If you have a spare drive of equal or larger size, create a full disk image before attempting recovery. Tools like Clonezilla or Windows' built-in backup can do this. Then work on the image, not the original.
  • TestDisk is powerful but text-based. Read the on-screen prompts carefully. If you're unsure, press Q to quit and research the exact step.
  • If you have an SSD, be extra careful. SSDs use TRIM, which can permanently erase deleted data quickly. Stop using the drive immediately and consider professional help if the data is critical.
  • Record the disk size and partition layout before you start. Write down the original partition sizes and order. This helps you identify the correct partition in TestDisk.

Troubleshooting

If TestDisk does not find the lost partition:

  1. Run Deeper Search instead of Quick Search. This scans the entire disk for partition signatures and can find partitions that Quick Search missed. It takes longer but is more thorough.
  2. If Deeper Search finds multiple partitions, look for the one with the correct size and file system type (NTFS, FAT32, etc.). Press P to preview files to confirm.
  3. If nothing is found, the partition table may be severely damaged. Try Rebuild BS (boot sector) for a single partition, but this is advanced—only do it if you know the exact file system type.

If the partition is restored but Windows shows it as RAW:

  • Do not format. The partition table is fixed, but the boot sector may be damaged. In TestDisk, select the partition and choose Boot > Rebuild BS. This reconstructs the boot sector without touching your files.
  • If that fails, use chkdsk from an elevated command prompt: chkdsk X: /f (replace X with the drive letter). This can repair file system errors but may not always work on a raw drive.

If you accidentally wrote the wrong partition table:

  • Immediately stop using the drive and run TestDisk again. It can often revert the change by re-running the analysis and writing the correct table. If you're unsure, seek professional help.

Frequently Asked Questions

Can I recover a partition without any software?

Sometimes yes, if the partition is simply hidden or lost its drive letter. Disk Management can reassign a letter. But if the partition table is corrupt, you'll need a tool like TestDisk.

Will TestDisk work on an SSD?

Yes, but SSDs have TRIM which may have already erased deleted data. If the partition was lost recently, stop using the drive immediately. Recovery is less reliable than on a traditional hard drive.

How long does TestDisk take?

Quick Search takes a few minutes. Deeper Search can take several hours on a large drive, depending on its size and speed.

Can I recover files from a lost partition without restoring the partition itself?

Yes, use PhotoRec (from the same cgsecurity.org site). It scans the raw disk for file signatures and recovers files without needing a partition table. It's slower but works even if the partition is unrecoverable.

Will TestDisk damage my data?

If used correctly, no. It only writes the partition table when you explicitly choose Write. However, any write operation carries a small risk. That's why you should back up the disk image first if possible.

What if the partition was encrypted (e.g., BitLocker)?

TestDisk can restore the partition structure, but you'll need the correct encryption key or password to access the data. If you have the key, you can unlock the drive after recovery. If not, the data is effectively inaccessible.