How to Recover Data from an Erased Hard Drive on Mac (Even from a Startup Disk)

recover erased hard drive on mac

Accidentally erasing your hard drive, even your startup disk, doesn’t automatically mean catastrophe. Because of how file storage and deletion work, you have a small window of opportunity to get most or even all your data back (as long as it hasn’t been overwritten yet).

In this guide, we’ll show you different ways to restore data from an erased hard drive–whether it’s an internal storage device or your Mac’s startup disk (which means you can’t boot into macOS). We’ll also briefly discuss how disk erasure works to give you a better idea of what conditions make successful recovery more likely.

How Does Disk Utility Erase Data?

Disk Utility is the main disk management application on macOS, and it can assist you with various tasks related to your disks, including erasing them completely. The application has four levels of security when it comes to erasing data:

  • Fastest,
  • Fast,
  • Secure,
  • Most Secure.

If you’ve used anything above “Fastest” to erase your data, you’re not going to get it back. Luckily, “Fastest” is the default setting, so if you didn’t change it, you still have a good chance of recovering what you’ve lost.

erase dialog box in disk utility

Data erased with the “Fastest” setting isn’t actually physically gone from the disk. Instead, a new file system is created that is “unaware” of the old files. As that file system stores new data, your old files eventually get overwritten. But as long as no other applications or data have been saved to the data blocks your files were stored in, your files still exist and are recoverable–they’re just not immediately accessible through your operating system’s interface.

Secure Erase is only available for macOS Sierra and earlier versions of macOS. But overwriting behavior also applies to modern Macs–as long as your files haven’t been overwritten by new data or by TRIM, they should still be recoverable.

How to Recover Data from an Erased External Hard Drive on a Mac

If you’ve got no backups for your data, the only way to restore files from an erased external hard drive is to use data recovery software. This is a type of tool that can scan storage devices for any remaining data–even if your drive’s contents are completely inaccessible through Finder.

There are many different recovery software apps that you can try, but we’ll be using a tool called Disk Drill for this guide. It has a great interface that beginners can immediately pick up, it supports file types commonly used with external hard drives (ExFAT, HFS+, APFS, and more), and it’s compatible with more file formats (including RAW photos, videos, and various documents) than most recovery software.

You can also download Disk Drill for free, scan your drive as many times as you want, and preview all your files–so you can follow along with this guide all the way through. You’ll only need to purchase a license at the actual recovery phase, but you’ll at least figure out which files are actually recoverable.

Note that this guide is only applicable to hard drives. If you want to restore data from an SSD, recovery chances may be lower, but full recovery is still possible with the right timing, conditions, and some luck. Check out our guide on recovering files from SSDs to maximize your chances of success.

Step 1. Before connecting your external hard drive to your Mac, download and install Disk Drill.

Step 2. Open Disk Drill and grant all necessary permissions, as demonstrated by the wizard.

permissions window in disk drill

Step 3. Once Disk Drill’s interface appears, connect your hard drive to your Mac. Then, select your drive from the list and click Search for lost data. If the app asks you to choose a scan type, select Universal scan.

universal scan button in the dialog box in disk drill

Step 4. Wait for Disk Drill to finish scanning your external hard drive. Once it tells you the scan is complete, you can click Recover All to restore all the data Disk Drill found. Then, jump to step 7. If you want to restore specific files and folders only, click Review found items.

scan results in disk drill

Step 5. Expand the Deleted or lost and Reconstructed sections to find your erased files. You can use the search bar and the filters in the sidebar if you’re only interested in restoring specific files.

search and filter tools in disk drill

Step 6. When you locate the files you want to restore, we recommend clicking each of them once to open a preview–this allows you to verify its recoverability. Then, select the files you want to restore (using the boxes in the left column) and click Recover.

recover button in disk drill

Step 7. Finally, select a destination folder on your Mac for the recovered files. Do not save the files to the erased external hard drive (to prevent overwriting). Then, click Next.

file destination selection dialog box in disk drill

Make sure that your drive doesn’t get disconnected or lose power while the recovery process is ongoing, to make sure that the files don’t get corrupted along the way.

What to Do if You’ve Accidentally Erased Your Startup Disk on Your Mac

Erasing your Mac’s startup disk means that both your user data and macOS have been wiped out. If you attempt to reinstall macOS and recover your data afterward, the new operating system files may overwrite your data. In this case, the safest way to restore data from an erased startup disk is to attempt recovery without reinstalling macOS. Below, we’ll guide you through 5 different methods to do this.

Method 1: Use Disk Drill in Recovery Mode

In the previous section, we covered using Disk Drill to restore files from an external hard drive. But it’s also capable of scanning internal drives, and it has a feature that allows you to run it even if macOS has been completely erased.

When you erase a Mac, Recovery Mode remains intact. Through Recovery Mode, you can access the Terminal to run a special command that temporarily downloads and runs Disk Drill (including its graphical user interface) without ever booting into macOS.

You need a stable internet connection for this method to work! Don’t worry, Recovery Mode helps you connect to available WiFi networks.
  1. Hold down Command + R while your Mac is turning on to start it in Recovery Mode.
  2. Once you’re in, start Terminal from the Utilities menu.open terminal in recovery mode on mac
  3. Once in the Terminal window, you’ll need to run one of several commands, depending on your macOS version:For macOS 11.7.10-26.x:
    sh <(curl http://www.cleverfiles.com/bootmode/boot.xml)

    For macOS 10.15.7-15.x:

    sh <(curl http://www.cleverfiles.com/bootmode/boot5.xml)

    For macOS X 10.11.6–macOS 12.6:

    sh <(curl http://www.cleverfiles.com/bootmode/boot4.xml)

terminal command in recovery mode on mac

4. Disk Drill should now be downloading. Once that’s done, simply start it, and follow the steps we outlined in the previous section to recover your files. Keep in mind that previews will be disabled when you’re in Recovery Mode. recover files with disk drill in recovery mode on mac

Once you hit Return and run the command, Disk Drill’s main menu will eventually appear on-screen. From there, follow our instructions in the data recovery section to proceed. You should be able to choose your startup disk and scan it as you would an external storage device. Just make sure to save recovered files to an external storage device, not your Mac (to avoid overwriting data).

Method 2: Scan Your Mac in Target Disk Mode (Intel-Based Macs Only)

Target Disk Mode is a feature that turns your Intel-based Mac into a readable external storage drive. If you have another Mac that actually works and can boot, you can connect your Mac (with the erased disk) while in Target Disk Mode and scan it with data recovery software.

Target Disk Mode only works if FileVault is disabled. You may be able to disable FileVault by mounting it in Disk Utility on the host Mac and entering the correct password.

Step 1. Connect your Mac to a working Mac (the “host” Mac) with the appropriate cable.

Step 2. On your Mac with the erased drive, press the power button and quickly press and hold the T key.

Step 3. When you see the Thunderbolt or FireWire icon on your Mac’s screen, release the T key. Your Mac drive should appear on the host Mac as an external drive (check Finder).

Once the host Mac recognizes your Mac as an external drive, you can use data recovery to scan it for files, as if it were any other external storage device. Follow our instructions in the data recovery section–just make sure to install the recovery software on the host Mac, and to correctly identify your Mac (with the erased disk) during the source selection step.

Method 3: Use a Time Machine Backup

Restoring a backup from Time Machine a good option for those who want to recover their data with minimal hassle, but is a bit limited in terms of control over the recovery process compared to the other options we outlined above. If you want to restore an entire disk from a Time Machine backup you need to follow these steps:

  1. Connect the external hard drive with a Time Machine Backup to your Mac.
  2. Restart your Mac, and hold down Command + R. If you’re using an M1 Mac hold down the power button.
  3. Once you’re at the macOS Utilities screen, select Restore from Time Machine Backup.restore from time machine in recovery mode
  4. Select the backup you want to restore, and click Continue. Your Mac will start recovering the selected backup and will then restart.
Unfortunately, this method doesn’t work for all backups, especially Time Capsule backups. If you’re unable to successfully restore your Time Machine data, try the other methods in this guide.

Method 4: Download or Recover User Data From iCloud

If you enabled iCloud synchronization on your Mac, that means that any of your files stored in iCloud-synced folders would have been uploaded to Apple’s servers. Fortunately, wiping your Mac doesn’t delete those files from iCloud. You can simply download them from the iCloud website to any computer with a browser and an internet connection.

Step 1. Open a browser on your Mac.

Step 2. Navigate to iCloud.com and log in.

sign in page in icloud

Step 3. Locate the Drive section and click it.

drive section in icloud

Step 4. Click on a file or folder to select it (you can hold the Shift or CTRL button to select multiple items). Then, click the meatball menu beside one of the selected files and click Download a Copy…

download a copy option in the dropdown menu

If your files were deleted before your Mac was wiped, you may be able to restore them using iCloud’s own integrated data recovery tool. On any browser, log in to iCloud.com. Then, click the menu button (beside your profile picture) and select Data Recovery.

Method 5: Send Your Mac to a Professional Data Recovery Service

If none of the solutions worked for you, or you prefer entrusting your data to specialists, consider sending your Mac to a professional data recovery service. A data recovery service is a company of technicians with special training and equipment for restoring data from different types of devices.

The best data recovery services can vary based on where you’re located, but here are some common features to look for:

  • Free estimate: Certain data recovery services can give you a free estimate over the phone after you explain what caused the data loss. However, make sure that you verify the final cost before proceeding.
  • Recovery fee guarantee: Most reputable data recovery services offer a “No data – no charge guarantee.” This means you only get charged if they successfully restore the data you originally asked for (not just a bunch of random files).
  • Cleanroom: Most big shops have a Class 100 Cleanroom–a special facility that keeps tiny particles away from the sensitive internal parts of the storage devices, which need to be disassembled for more complex recovery operations. You don’t really need a cleanroom for restoring erased drives, but in case your Mac is damaged, this is an important factor to consider.
  • Shipping discounts: Depending on where you live, you may be offered free or discounted inbound shipping. However, outbound shipping is almost never free, even if you don’t push through with the recovery.
When choosing a data recovery service, we strongly recommend that you check reviews from various platforms (like Google Reviews, Yelp!, TrustPilot, etc.), focused on the local branch you’ll be sending your Mac to.

Conclusion

As long as you know what you’re doing and have taken the time to prepare yourself with the right resources in advance, accidentally erasing a drive on your Mac is something that can potentially be undone with minimal long-term damage. The most important thing is to stop using the drive immediately, and have at least one recovery tool available and ready to use.

FAQ

When you erase your Mac’s hard drive, all the data, including your personal files, applications, and system settings, will be permanently deleted. This process clears the entire hard drive, leaving you with a new macOS installation.

There are different steps to restart your Mac after erasing your hard drive, and it depends on the Mac that you have. Before restarting, make sure that you are connected to the internet and plug in the power adapter. Reinstalling macOS needs an internet connection.
For Macs with Apple T2 Security Chip:

  1. Click the Apple menu, select Shut Down, then press and hold the power button until Loading startup options appear.
  2. Select Options and click Continue, then follow the instructions that appear on the screen.
  3. On the Recovery app window, select the Reinstall option for your macOS release, click Continue, and then follow the onscreen instructions to complete the reinstallation process.

For Intel-based Mac that doesn’t have the Apple T2 Security Chip:

  1. Click on the Apple menu and select Restart.
  2. Immediately press and hold the Command-R keys. This will bring up the Recovery app window. From there, select Disk Utility and click Continue.
  3. In Disk Utility, locate the volume you wish to erase from the sidebar and click on it. Then, click on Erase in the toolbar.
  4. On the Name field, give a name to the volume and select APFS from the format pop-up menu.
  5. Click on Erase Volume Group to proceed with the erasing process.
  6. Once the process is complete, click Done and then choose Disk Utility > Quit Disk Utility.
  7. On the Recovery app window, select Reinstall for your macOS release, click Continue, and then follow the instructions on the screen.
Yes. Erasing Macintosh HD deletes everything. This will leave your hard drive clean, so it is important to back up all your important files and data first before erasing your hard drive.

It is possible to retrieve the data previously stored on a hard drive by using data recovery tools. However, the success of data recovery is not guaranteed, and it depends on various factors. If a hard drive has been wiped using a secure erase method, the data is unlikely to be recovered.

In addition, the physical condition of the hard drive can also impact the recovery process. If your hard drive is already damaged or has already experienced a failure, this may reduce the success of your data recovery.

A passionate lover of technology, Stefan graduated with a MSc in geological engineering and currently serves as a freelance writer. His passion for technology and writing made him become an advocate for Mac and its features as they drive innovation… Full Bio
Alejandro Santos
Chief Writer
Alejandro is Macgasm’s Chief Writer and Apple ecosystem enthusiast. He pens the majority of troubleshooting guides and software reviews for this website, tapping into his love for technology and extensive background in technical writing. He started his career by helping… Full Bio