keepcalculator

06 Numbers and Powers

Recover Lost Partition Mac: Step-by-Step Guide

Card No. 06·76602 · Updated · Standard formula, shown below

If you’ve lost a partition on your Mac, you can often recover it using Disk Utility, Terminal, or third-party data recovery software, depending on whether the partition was deleted, corrupted, or the drive was reformatted. This guide covers the most reliable methods, from built-in macOS tools to professional recovery options, and explains what to do first to maximize your chances of success.

Why Partitions Disappear on Mac

Partitions on a Mac can vanish for several reasons, and understanding the cause helps you choose the right recovery method. Common culprits include:

  • Accidental deletion in Disk Utility or during macOS installation
  • File system corruption from improper ejection, power loss, or a crash
  • Failed OS update or upgrade that interrupts the partition map
  • Third-party disk management tools that misconfigure the partition scheme
  • Physical drive failure or bad sectors that make the partition unreadable

If you see a disk in Disk Utility but it shows as “free space” or “unformatted,” the partition entry may be damaged. If the disk doesn’t appear at all, the issue could be more serious, like a hardware failure.

First Steps: Stop Using the Drive

The moment you realize a partition is missing, stop writing any new data to that disk. Every file you save, every app you install, and even normal background tasks can overwrite the very data you want to recover. If the missing partition is on your startup disk, shut down the Mac and boot from another drive (like a USB installer) before attempting recovery. For external drives, unplug them and connect only when you’re ready to work.

Also, make a note of the drive’s capacity and what was on the partition (file system type, approximate size, and whether it was APFS or HFS+). This information helps when you use Terminal commands or recovery software.

Method 1: Check Disk Utility First

Before trying complex Terminal commands, open Disk Utility (in /Applications/Utilities/). Select the physical disk (the top-level item, not the volume) and click First Aid. This runs a check of the partition map and file system. If the partition is merely corrupted, First Aid might repair it and make it visible again. If it doesn’t, you’ll see an error message that gives a clue about the underlying problem.

If the partition shows as “free space” but you know it had data, do not click “Erase” or “Partition” to fill that space. That will destroy the old partition entry. Instead, proceed to Terminal or recovery software.

Method 2: Using Terminal to Rebuild the Partition Map

macOS includes a command-line tool called gpt that can repair a damaged GUID Partition Table (GPT). This method works when the partition entry is missing but the underlying data is intact. Here’s a typical procedure:

  1. Boot into Recovery Mode (Intel: Cmd+R; Apple Silicon: hold power button) and open Terminal from the Utilities menu.
  2. Type diskutil list to see all disks. Identify the disk identifier (e.g., disk2) of the affected drive.
  3. Run sudo gpt -r show /dev/disk2 to display the current partition table. Look for a partition entry that is missing or shows a different size than expected.
  4. If you see an entry with the correct size but it’s not being recognized, you can try sudo gpt add -i 2 -b 409640 -s 12345678 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk2 (adjust the index, start block, and size to match your situation). The type UUID for APFS is 7C3457EF-0000-11AA-AA11-00306543ECAC and for HFS+ it’s 48465300-0000-11AA-AA11-00306543ECAC.
  5. After adding the entry, run diskutil mount /dev/disk2s2 (replace with the correct identifier) to see if the volume mounts.

Warning: This is advanced and requires precise numbers. A single wrong block number can cause further damage. If you’re not confident, use recovery software instead.

Method 3: Data Recovery Software

When the partition table is too damaged or you can’t identify the correct parameters, third-party data recovery tools are the most practical option. These applications scan the raw disk for file system signatures and rebuild the partition structure. Some popular choices include TestDisk (free, open-source), Disk Drill, and EaseUS Data Recovery Wizard. Most offer a free trial that lets you see what’s recoverable before you pay.

Here’s what to expect when using such software:

  • You’ll select the physical disk (not the volume) to scan.
  • The software will offer a “quick scan” for recently deleted partitions and a “deep scan” for formatted or corrupted drives.
  • After scanning, you’ll see a list of found partitions or files. Preview files to confirm they’re intact.
  • Recover files to a different drive to avoid overwriting the source.

If the software finds the partition but can’t mount it, some tools can create a disk image of the raw data, which you can then scan again without risking further damage.

When to Use APFS vs HFS+ Recovery

macOS started using APFS (Apple File System) as default from High Sierra (10.13) onward, especially for SSDs. HFS+ (Mac OS Extended) is older and still used on some HDDs and older systems. The recovery approach differs slightly:

  • APFS: Uses a container structure with multiple volumes. If a volume disappears, it may be because the container’s superblock is damaged. Tools like TestDisk can often rebuild the container. You might also try diskutil apfs list in Terminal to see if the volume still exists but isn’t mounted.
  • HFS+: Has a simpler partition structure. The partition entry in the GPT is often the only thing missing. Re-adding it with gpt can work if you know the exact start and size.

If you’re unsure which file system you had, check the disk’s capacity and the macOS version you were using. If it was an external drive used for Time Machine, it’s likely HFS+ (or APFS on newer systems).

Common Mistakes That Worsen the Problem

Many users accidentally reduce their chances of recovery by:

  • Creating a new partition in the free space left by the lost one.
  • Running First Aid on a disk that has a missing partition entry (it may erase the partition map).
  • Using a Windows-based recovery tool that doesn’t understand APFS.
  • Ignoring SMART status warnings that indicate hardware failure.
  • Continuing to use the Mac normally, which writes logs and caches to the affected drive.

If you suspect hardware failure (clicking sounds, drive not spinning up, excessive bad sectors), stop all software attempts and consult a professional data recovery service. They have cleanroom facilities and specialized tools to read damaged platters.

Frequently Asked Questions

Can I recover a partition after erasing the whole disk?

Yes, but only if you haven’t written new data to the disk. When you erase a disk, macOS creates a new partition map, but the old file system data remains until overwritten. Recovery software can scan for these remnants and reconstruct the partition. The sooner you stop using the disk, the better the outcome.

Does Time Machine back up partitions?

Time Machine backs up files, not the partition layout. If you lose a partition, you can restore your files from a Time Machine backup to a new partition, but you’ll need to recreate the partition structure manually. Time Machine doesn’t help with recovering the original partition itself.

Is it safe to use Terminal to recover a partition?

It can be safe if you know exactly what you’re doing and have a backup of the current partition table. However, a single typo in a block number can corrupt the disk further. For most users, recovery software is safer because it’s designed to be non-destructive and often includes a preview function.

How long does a deep scan take?

It depends on the drive size and speed. A 1TB external HDD can take several hours to a full day. SSDs are faster, but the scan time also increases with the number of files. Be patient and don’t interrupt the scan, or you may have to start over.

Can I recover a partition from a dead Mac?

If the Mac won’t boot, you can remove the drive and connect it to another Mac using a USB-to-SATA adapter or an enclosure. Then use the same recovery methods as you would for an external drive. If the drive itself is dead, professional recovery is the only option.

What’s the difference between a partition and a volume?

On APFS, a partition is a physical division of the disk, while a volume is a logical container within that partition. You can have multiple volumes in one partition. When people say “lost partition,” they often mean a volume disappeared. The recovery process is similar, but you may need to rebuild the volume’s metadata rather than the partition map.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →