HDD Mac Data Recovery
Last updated: November 13, 2023
How to Recover Formatted Hard Drive on a Mac

How to Recover a Formatted Hard Drive on a Mac

Blog->HDD->How to Recover a Formatted Hard Drive on a Mac

It’s not a pleasant experience to realize you just formatted the wrong hard drive or partition on your Mac. It may appear as if you’ve just wiped out a lot of valuable data, but things might not be as bad as you think. Depending on how you formatted the device, the data can still be recovered with specialized recovery software. The default formatting mode only logically erases the files and folders, making it possible to get the lost data back.

In this article, we will dive into the complexities of data recovery test-proven methods of recovering a formatted hard drive on a Mac.
Note: If you formatted the wrong hard drive on a Mac, stop using the device normally, or your risk overwriting more data. Instead, get familiar with these suggested methods of data recovery to increase your chances of recovering as many files as possible.

Is Data Recovery Possible After Formatting a Mac Hard Drive?

seagate hard drive

Yes you can recover data from a formatted hard drive on macOS.

We have analyzed the most common problems users face when recovering data from a formatted hard drive on Mac and identified the main factors affecting the chances of successful recovery.

Type of Formatting Applied

Let’s look at the different ways you can format a drive on a Mac and how that influences your chances of accomplishing a successful recovery. You use the macOS Disk Utility application to format disks on a Mac. During the formatting process, you can choose to use various security options to protect any sensitive data that resided on the device.

  • 🚀 Fast formatting. The default setting when formatting a disk with Disk Utility is the Fastest option. When using this option, data is only logically deleted from the device, allowing the data to be recovered with software. No overwriting is performed during the formatting process, only the logical links used to access the data are destroyed. Drives formatted with the Fastest option can be recovered, and if you have accidentally formatted your device it is probably with this setting.
  • 🔒 Secure formatting. Disk Utility offers secure formatting settings for cases where you want to render the information unrecoverable. You can choose to overwrite data up to seven times via Security Options under Disk Utility. Additional options let you overwrite the data two or three times. Each overwrite procedure provides further protection against the data being recovered. Using anything but the Fastest setting makes it virtually impossible to recover the data even with commercial recovery software.

Type Of Your Drive

The type of drive that you have formatted can also have an impact on your ability to recover its data with software. Mechanical drives can be recovered if the data has not been overwritten. Solid state drive (SSDs) can be recovered if TRIM has not been enabled on the device.

TRIM is a command that instructs an SSD to permanently delete data that’s no longer needed. If TRIM wasn’t enabled on your SSD, you can still recover data after formatting it. If TRIM was enabled, it’ll be difficult or impossible to do that depeding on how long you’ve used the drive after formatting.

The newer the model of your Mac PC or MacBook laptop, the more likely it is to have an SSD. To confirm which media is intalled on your device, click the Apple logo in your desktop’s top left corner, click About this Mac > Storage. You’ll see a description of your storage medium under the hard drive icon, e.g., Flash Storage which implies an SSD is installed.

For the late version (Sonoma), click on the Apple logo > About this Mac > More info. Scroll down and tap System Report > Storage. Choose the drive you want to view, and you’ll see details about it. If it’s an SSD, you’ll see something like “Apple SSD AP1024.”

  • 💽 Formatted internal/system drives. Your ability to recover formatted internal drives depends on how they were formatted as described above, and the type of drive in your computer. Mechanical drives can be recovered as can SSDs that don’t have TRIM enabled. One problem you may face is that internal drives are often formatted as part of an operating system installation, such as to address serious errors with your file system start to occur or to perform a clean install to refresh your machine. When you reinstall your OS, some files will be overwritten, reducing the chances for a full recovery of the device’s data.
  • 🔌 Formatted external drives. External mechanical drives that have been logically formatted can be recovered with software. If they are SSDs, they need to have been formatted with TRIM disabled if you want to recover their data. With TRIM disabled, if you act quickly and don’t use the device much after formatting it, chances are good that you can recover the majority of your data. Once again, the key is to avoid overwriting the information so is can be recovered by software.
  • ⚙️ Formatted SSD drives. Solid-state drives (SSDs) can also have data recovered after formatting by recovery software if the device does not have TRIM enabled. You should take an additional step before attempting this type of recovery. Make a byte-level backup of the SSD and use the backup media to perform the recovery. This saves additional wear and tear on the SSD as the recovery software scans and recovers data and is a valid step to take with a hard drive recovery as well.

Reason for Formatting

The reason for formatting your drive plays a significant role in its chances of recovery because it might indicate the integrity of the data. Let’s examine the most common reasons and their recoverability chances.

  • 💥 Accidental formatting: This happens when you mistakenly format a drive, thinking it was a different drive or partition. In this case, the data can easily be recovered if security options haven’t changed.
  • : Internal drives are often formatted when reinstalling the macOS operating system. The recovery chances are reduced because there’s a high risk of data getting overwritten during the reinstallation process. If you use a newer Mac with M1/M2/M3/T2 chips, reinstalling the system makes it impossible to recover data due to the encryption of the system disk with these chips.
  • 👾 Virus or malware attack: It’s recommended to reformat hard drives infected with virus or malware. In this case, the virus itself can affect the data recovery chances. You can be lucky if it wasn’t a virus designed to overwrite files.
  • ❌ Corrupted file system: You may have reformatted your hard drive because its file system got corrupted. In that case, the data’s integrity might have been affected by the file system corruption, reducing the recoverability chances.

How to Recover Files From a Hard Drive That Has Been Formatted

Data recovery software is your best bet if there are no available backups of the formatted drives. We tested and chose the best data recovery software that gave us excellent results. Each tool has its pros and cons, which we’ve summarized in the table below.

Criteria Disk Drill PhotoRec
🤗 User-Friendliness User-friendly, with a graphical interface and a step-by-step recovery process. Command-line interface makes it less user-friendly for some users. Requires some technical knowledge.
🦾 File recovery efficiency Recovers a wide range of file types, including specific formats of documents, photos, videos, and more. Recovers a wide range of file types, including documents, photos, videos, and more. But not as extensive as Disk Drill.
🔎 Deep Scan Capabilities Offers deep scanning for in-depth data recovery. Capable in file recovery however it is worth noting that PhotoRec utilizes signature scanning and is not capable of recovering original file names.
🗃️ Supported File Systems Supports various file systems including APFS, HFS+, NTFS, ExFAT, FAT32, and more. Can recover data from a wide range of file systems, including NTFS, exFAT, FAT, EXT, HFS, and more.
🚀 Scanning Speed Faster scanning process Slower scanning process
🖼️ Preview and filtering functionality Provides preview and filtering options to help users find specific files quickly. Limited file preview and filtering capabilities.
💸 Cost Offers the ability to scan hard drives for free and preview recoverable files. Recovery requires obtaining the license. Completely free and open-source software.

Option A: Disk Drill

Disk Drill iconDisk Drill provides a user-friendly and secure method of recovering data from an accidentally formatted hard drive on a Mac. With just a few clicks you can start scanning and recovering data you thought was lost. The tool supports the recovery of virtually any type of disk-based storage device including internal and external hard drives. It has a faster scanning process than PhotoRec. This tool allows you to preview and recover specific files, unlike PhotoRec which recovers everything at a go. The tool can successfully recover hundreds of file formats including the image and video files often stored on external hard drives.

Disk Drill has superior recovery capabilities. It fully supports modern Mac devices and all major file systems that you might use on your hard drive. Disk Drill can locate lost partitions and handle just about any type of data loss situation that you face after formatting a disk.

In addition to its excellent data recovery performance, Disk Drill includes free tools that help you protect and manage your valuable data. The app enables you to make byte-level backups, find duplicate files, erase free space, and securely shred data so it cannot be recovered.

Want to learn more about Disk Drill? Take a look at our review.

The following procedure demonstrates how to use Disk Drill data recovery software to restore files from a formatted hard drive.

  1. Download and install Disk Drill for Mac You can start with the free trial version of the tool which lets you scan your hard drive to determine which files the tool can recover.download and install disk drill
  2. Connect the device to your Mac if attempting recovery on an external hard drive.
  3. Launch Disk Drill and select the formatted hard drive or partition from the app’s main window.disk drill - select your drive
  4. Click the Search for lost data button to initiate the scanning process.disk drill - search for lost data
  5. Click Review found items in the top right when the scanning process is done.disk drill - review found items
  6. Preview the recoverable files that Disk Drill finds to determine which ones you want to recover. Files are categorized into Pictures, Videos, Audio, Documents, and Archives folders for easy identification.disk drill - preview recoverable filesdisk drill - preview
  7. Select the files you want to restore and click Recover.disk drill - recover
  8. Provide a safe location for storing the recovered data that is not on the original device.disk drill - provide safe recovery location
  9. Click Next to complete the hard drive data recovery process.click next

Option B: PhotoRec

PhotoRec uses a command line interface, unlike Disk Drill which uses a graphical interface. The command line interface makes PhotoRec less user friendly; it requires some technical knowledge to use it effectively.

It uses signature scanning, meaning it’s not capabe of recovering original file names. But you can recover differnet types of files including photos, videos, word documents, and more. You can recover file from various file systems, including NTFS, FAT, exFAT, HFS, EXT, etc.

This tool has a slower scanning process and no file preview and filtering capabilites like Disk Drill. However, PhotoRec is a free and open-source software you don’t need to pay for.

Note: PhotoRec doesn’t work alone. You must install two companion software tools to use it: Homebrew and TestDisk.

Follow the below steps to restore files from a formatted hard drive using PhotoRec:

  1. Install Homebrew on your Mac by navigating to the Terminal app and entering this command:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    install homebrew

    You may be prompted to enter yur Mac’s password.terminal password

  2. Enter the below command to install TestDisk:
    brew install testdisk

    install testdisk

  3. Run PhotoRec by entering the below command:
    sudo photorec

    run photorec

  4. Use your keyboard’s up and down arrows to choose the formatted hard disk you want to recover from the list. If the disk isn’t showing, double-check that it’s connected to your Mac and relaunch PhotoRec.photorec- use arrows
  5. Select the partition and click Search in the bottom-left corner.photorec - select the partition
  6. Select the file format the disk uses and press Return/Enter.photorec - select file format
  7. Choose the location you want to store the recovered files in. You can not select individual files on PhotoRec. Instead, the app recovers all the files it finds, so ensure to save the files in a place you can easily locate.photorec - choose the location to recover files
  8. PhotoRec will start the recovery process, and you’ll receive a notification when it’s done. Afterward, head to the location you chose in the preceding step, and you should see your recoverd files there.

Are there any specific challenges when recovering formatted external disks?

The main issue users can run into when trying to recover a formatted external hard drive is making sure your Mac recognizes the device. Before launching Disk Drill to start a recovery, you need to connect the external drive to your computer. You should open a Finder window to verify the computer sees the drive.

external drive in Finder

If the device is not showing up in Finder, it may be that the cable is not firmly connected, either to the drive or the computer. Disconnect and reconnect the cable and attach it to the computer again.

It is better to ensure the disk appears in the Disk Utility app with the correct size instead of Finder. If something is wrong with the disk’s file system, it will not appear on Finder but can still appear in Disk Utility. Showing up in Disk Utility is enough for a Disk Drill recovery.

You should be able to access the external drive at this point. If not, you may have a damaged cable. Try using a different connector to attach the external drive to your Mac. But, reconnecting the disk does not always restore access to it.

Once the device is connected to your Mac and the operating system can access the drive, the recovery steps are essentially the same as for an internal drive. Select the external hard drive from the list of available devices presented by Disk Drill and click the Search for lost data button to start scanning the drive for recoverable files and folders.

Alternative Approaches to Recover Data from Formatted Drive on Mac

Here are some alternative approaches to recover from formatted hard drive on a Mac.

Time Machine Backups

If you have previously backed up your files to an external hard disk with the Time Machine app, you can recover it with the same software. The drawback is that this method only works if you previously remembered to back up your Mac device, which many people don’t.

Using iCloud Backups

If your Mac device is connected to an iCloud account with sufficient storage space, you can recover files from iCloud back to the device. This method will hardly work if you’re on iCloud’s free tier, which gives just 5 GB of storage space, insufficient for Mac backups. You must pay for a premium plan to access more than 5 GB. Apple offers different plans between 50 GB and 12 TB.

Note: iCloud doesn’t back up entire disks, but only files from some applications and selected folders.

Contacting Professional Data Recovery Services

You can contact professional data recovery services to take a look at your Mac and see if they can recover files for you. However, this option is usually expensive. It can take significant time and also doesn’t guarantee successful recovery.

Frequently Asked Questions

The safest option is to use specialized data recovery software like Disk Drill and PhotoRec to recover files. However, you can try alternative methods like recovering a Time Machine or iCloud backup or contacting a professional data recovery service to help you.
You can use data recovery software to scan and recover files that have not yet been overwritten on the drive.
Yes, you can use Time Machine to recover data from a formatted hard drive, if you had previously backed up the data on another drive.
Jeff Cochin has spent a better part of his writing career helping users recover lost data from their personal and work devices. When not describing the best way to avoid a costly data loss, Jeff likes to spend time outside and go on short cycling adventures.
avatar approver Andrey Vasilyev Approver
Andrey Vasilyev is an Editorial Advisor at onMac. Andrey is a software expert with extensive experience in data recovery, computer forensics, and litigation. Andrey has over 12 years of experience in software development, database administration, and hardware repair.
Scroll to top