Smart Systems for Home

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

How to Restore a Partition on Windows and macOS

· 6 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

Restoring a partition means bringing back a deleted, corrupted, or accidentally wiped drive section so your files and operating system work again. The exact steps depend on whether you have a backup, a recovery image, or need to recover data from the raw partition. In most cases, you can restore a partition using built-in tools like Windows Backup and Restore, macOS Time Machine, or a recovery partition. If you don't have a backup, you may still recover data with third-party recovery software—but that’s a separate process. This guide covers the common scenarios: restoring from a backup, using a recovery drive, and recovering a lost partition.

What You'll Need

  • A backup of the partition (Windows File History, macOS Time Machine, or a disk image).
  • A recovery drive or installation media (USB or DVD) for your operating system.
  • Administrator or root access to the computer.
  • If no backup exists, a third-party partition recovery tool (like TestDisk or a commercial product) and a separate storage drive to save recovered files.

Step-by-Step

Restoring a Partition from a Backup (Windows)

  1. Boot from your Windows installation media (USB or DVD). You can create one using Microsoft’s Media Creation Tool from another working PC.
  2. Choose your language and click Next, then click Repair your computer in the bottom-left corner.
  3. Select Troubleshoot > Advanced options > System Image Recovery. (If you don’t see this, your media may not include recovery tools; try the “Recovery” tab in Settings on a working system instead.)
  4. Follow the wizard to select the system image backup that contains the partition you want to restore. The wizard will format and restore the target partition, so ensure you pick the correct drive.
  5. Complete the restore and restart. Your files and settings should be back to the state of the backup.

Restoring a Partition from a Backup (macOS)

  1. Restart your Mac and hold Command (⌘) + R to enter Recovery Mode.
  2. Choose Restore from Time Machine Backup from the macOS Utilities window.
  3. Select the Time Machine backup that contains the partition you want to restore, then choose the destination drive (the one where the partition should be).
  4. Confirm the restore. The process will erase the destination drive, so make sure you’ve selected the correct one.
  5. Wait for the restore to finish; your Mac will restart automatically.

Restoring a Deleted Partition (No Backup)

  1. Stop using the drive immediately. Any new writes can overwrite the deleted partition’s data.
  2. Download a reputable partition recovery tool like TestDisk (free, open-source) or a commercial option like EaseUS Data Recovery Wizard. Install it on a different drive than the one you’re recovering.
  3. Run the tool as administrator (Windows) or with root privileges (macOS). In TestDisk, select the physical disk (not the partition) that contains the lost partition.
  4. Choose the partition table type (usually MBR or GPT) and select Analyse. The tool will scan for lost partitions.
  5. If it finds the missing partition, you can choose to Write the partition table back to the disk. This restores the partition structure, but it does not guarantee file recovery—you may still need file-level recovery.
  6. If you only need files, use a file recovery tool to copy them to another drive before attempting any partition table rewrite.

Restoring a Partition from a Recovery Drive (Windows)

  1. Create a recovery drive from another Windows PC: search for “Create a recovery drive” in the Start menu and follow the prompts.
  2. Boot from the recovery drive (change boot order in BIOS/UEFI if needed).
  3. Choose Troubleshoot > Advanced options > System Restore or Startup Repair if the partition is corrupted but not deleted.
  4. For a full partition restore, use System Image Recovery as described above.

Common Mistakes

  • Writing to the drive before recovery – Installing software or saving files to the same drive can overwrite the very data you’re trying to restore.
  • Choosing the wrong destination drive – Restoring a partition image to the wrong disk will erase that disk’s data permanently.
  • Ignoring the partition table type – Using the wrong partition table (MBR vs. GPT) can make the restored partition unbootable.
  • Not backing up after a successful restore – A restore is a good time to create a fresh backup to avoid future loss.

Tips

  • Always keep a separate backup of important partitions on an external drive or cloud service. Regular backups make restoration trivial.
  • Before restoring, note the exact size and label of the original partition. This helps you identify the correct target.
  • If you’re using TestDisk, read the on-screen instructions carefully—it’s a text-based tool with specific key commands.
  • For critical data, consider professional data recovery services if the partition is physically damaged or the data is irreplaceable.

Troubleshooting

If the restore fails or the partition doesn’t appear

  • Check the connection – Ensure the drive is properly connected (SATA, USB, or NVMe). Try a different cable or port.
  • Run a disk check – In Windows, open Command Prompt as administrator and run chkdsk /f on the drive. On macOS, use Disk Utility’s First Aid.
  • Verify the backup is intact – If you’re restoring from an image, try mounting the image file on another computer to confirm it’s not corrupted.
  • Update your recovery media – If using an older installation USB, create a fresh one from the latest official ISO.
  • If the partition table is corrupted – Use TestDisk’s “Rebuild BS” option to fix the boot sector, or use a tool like MiniTool Partition Wizard to rebuild MBR.

If the system won’t boot after restore

  • Boot from your installation media and select Startup Repair (Windows) or use Disk Utility > First Aid on macOS.
  • Recreate the boot loader: on Windows, use bootrec /fixmbr, bootrec /fixboot, and bootrec /rebuildbcd in Command Prompt from the recovery environment. On macOS, reinstall the OS while keeping your data (choose “Reinstall macOS” in Recovery).

Frequently Asked Questions

Can I restore a partition without a backup?

Yes, but only if the partition was deleted or corrupted, not overwritten. Use partition recovery software like TestDisk to scan for lost partitions and restore the partition table. However, if you’ve written new data to that space, recovery may be incomplete.

Will restoring a partition erase my other partitions?

No, if you restore only the target partition and select the correct drive, other partitions on the same disk should remain untouched. However, always double-check the destination to avoid accidental erasure.

What’s the difference between restoring a partition and recovering files?

Restoring a partition brings back the entire partition structure (including the file system and possibly the OS). Recovering files copies individual files from a damaged or deleted partition to another location, without restoring the partition itself.

How long does a partition restore take?

It depends on the size of the partition and the speed of your drives. A 100 GB partition could take 30 minutes to a few hours. Larger drives or slow USB connections will take longer.

Can I restore a partition on a drive that is currently in use?

No, you cannot restore a partition that is mounted or in use. You’ll need to boot from a recovery drive or use a live Linux USB to perform the restore without the drive being active.

Is it safe to use third-party recovery tools?

Reputable tools like TestDisk, EaseUS, or Recuva are generally safe, but always download from official sources and scan for malware. Be aware that free versions may have limitations, and never use tools that promise “cracked” or “unlimited” versions—they often contain malware.