How to Recover Data from an Encrypted APFS Disk

Read about how to recover data from an APFS drive if it does not open in Windows, was encrypted in macOS, was formatted, or its partitions no longer appear in the system. We will look at how to access such a volume, unlock it if the correct password is available, browse the drive contents, and find deleted files if they have not yet been overwritten.

How to Recover Data from an Encrypted APFS Disk

The APFS (Apple File System) file system is used on modern Mac computers to store data on SSDs and other drives. Built-in encryption capabilities help protect files from unauthorized access, but they can also make recovery more difficult in the event of accidental deletion, formatting, or disk corruption.

Recovering data from an encrypted APFS drive has its own specifics, because access to files requires correct handling of the file system structure and encryption keys. In some cases, standard macOS tools do not allow you to restore lost files, especially if the volume was formatted, damaged, or the system no longer boots.

In this article, we will examine how to recover data from an encrypted APFS drive, what conditions are required for successful recovery, how to work with deleted files and damaged APFS partitions, and how to use Hetman Partition Recovery to find and recover lost data.

Go to view
Data Recovery from Encrypted APFS Disks

Data Recovery from Encrypted APFS Disks

APFS Encrypted File System

APFS Encrypted is an encrypted variant of the APFS file system that Apple uses in modern versions of macOS for SSDs, flash drives, and external drives. This format provides fast file operations, enables efficient distribution of free space among volumes, and adds data protection.

APFS Encrypted file system in Disk Utility

During formatting, the user sets a password. Based on it, macOS protects the encryption key that provides access to the contents of the partition. The files themselves are stored on the drive in encrypted form, so without the correct password they cannot be opened or viewed.

When a flash drive is connected to a Mac or opened in specialized data recovery software, a key must be entered. If it is correct, the drive is unlocked, the volume is mounted, and the files become available for viewing, copying, or recovery.

In Windows, such an APFS drive usually does not open with standard tools, so special software is required to access it.

Characteristic Description
File system APFS (Apple File System) is Apple’s modern file system optimized for SSDs and flash storage devices.
Encryption APFS supports built-in data encryption, including via FileVault in macOS.
Data protection Files on an encrypted volume are stored in a form that is inaccessible without the appropriate key or password.
Volume structure APFS uses containers, volumes, and shared space, which distinguishes it from traditional file systems.
File deletion After deletion, data may remain on the drive, but access to it depends on the state of the file system and encryption mechanisms.
Data recovery Specialized software that supports APFS and encrypted volumes can be used to search for lost files.
Password requirement Accessing the contents of an encrypted volume may require the user password or another method of obtaining the encryption key.
SSD and TRIM On SSDs, the TRIM command may physically release blocks after data deletion, which can significantly complicate further recovery.
File system corruption If the APFS structure is damaged, the volume may stop mounting normally, although some data may still be recoverable.
Safe recovery Recovered files should be saved to another physical drive to avoid overwriting the lost data.

How to Recover Data from an APFS Drive

METHOD 1. Recovering Deleted Files

If an encrypted APFS Encrypted volume was created on the flash drive and the files suddenly disappeared, do not write new data to it.

This may happen after accidental data deletion, improper device disconnection, incorrect actions in Disk Utility or Terminal, or after changing the partition structure.

Connect the flash drive to the computer and launch Hetman Partition Recovery. The program will detect the file system and display information about the found partition.

The all-purpose choice for recovering files from deleted, formatted, damaged, or inaccessible storage devices.
Hetman Partition Recovery: APFS Encrypted USB

Pay attention to its status in the right part of the window: if it is encrypted, the program will mark it as locked.

Hetman Partition Recovery: APFS Encrypted USB status

Enter the correct password to access the contents, then start scanning.

Hetman Partition Recovery: unlocking APFS Encrypted volume

After the analysis is complete, the program will show existing files and deleted data if they have not yet been overwritten.

Hetman Partition Recovery: detected APFS Encrypted disk

Review the results in the preview window and save the required files to another drive to avoid damaging the information on the flash drive from which recovery is being performed.

Hetman Partition Recovery: APFS Encrypted disk analysis results

METHOD 2. Recovery After Partition Deletion

If the APFS partition was deleted or no longer appears in the system, run a full scan of the drive. In this case, a quick scan may be insufficient, because the program needs to examine the entire structure of the flash drive, find traces of the previous partition, and restore information about it.

Run Full Analysis and specify the APFS file system. The program will start scanning the drive.

Hetman Partition Recovery: full analysis of APFS Encrypted disk

When an encrypted APFS partition is found during analysis, a password entry window will appear. Enter the correct password, after which Hetman Partition Recovery will continue the analysis and display the found files available for viewing and recovery.

Hetman Partition Recovery: unlocking APFS Encrypted disk with password

METHOD 3. Searching for Deleted Partitions

If the flash drive was formatted with another file system, use the search for lost partitions. To do this, connect the drive to the computer, launch Hetman Partition Recovery, and select the physical device in the list rather than the newly created volume.

Hetman Partition Recovery: search for partitions on disk

Next, open the Find Partitions function from the context menu, specify the file system that was previously used on this drive, and start a full search.

Hetman Partition Recovery: partition search settings on disk

If you know the starting and ending sectors of the lost partition, set them manually and scan that area, or leave these parameters at their default values.

Hetman Partition Recovery: partition search range on disk

The program will examine the structure of the flash drive, find traces of the previous partition layout, and restore information about the lost partition.

Hetman Partition Recovery: detected partition after search

After the search is complete, the program will display the found areas and identify their file system. If one of the partitions was encrypted, enter the correct password to access its contents.

Hetman Partition Recovery: found encrypted partition

Start analysis of the found partition and wait for the scan to complete. After that, the program will display the available files. Review the results in the preview window and save the required files to another drive or disk.

Hetman Partition Recovery: available files of encrypted partition

Hetman Partition Recovery helps find lost APFS partitions, access encrypted data with the correct password, preview the found files, and save them to another drive. This is a convenient way to inspect a drive and recover important information.

Conclusion

Recovering data from an encrypted APFS drive is possible even in cases of accidental file deletion, formatting, or corruption of the partition structure. However, working with an encrypted APFS file system has its own specifics and requires correct access to the drive and, if necessary, the encryption key or password.

To increase the chances of successful recovery, it is important not to write new data to a damaged or formatted drive. If macOS cannot read the APFS partition normally, specialized data recovery software can scan its structure and find lost files.

Hetman Partition Recovery allows you to search for deleted and lost data, including in cases of file system corruption. Choosing the correct scanning mode and saving recovered files to another drive will help minimize the risk of permanent data loss.

Vladimir Artiukh

Author: , Technical Writer

Vladimir Artiukh is a technical writer for Hetman Software, as well as the voice and face of their English-speaking YouTube channel, Hetman Software: Data Recovery for Windows. He handles tutorials, how-tos, and detailed reviews on how the company’s tools work with all kinds of data storage devices.

Oleg Afonin

Editor: , Technical Writer

Oleg Afonin is an expert in mobile forensics, data recovery and computer systems. He often attends large data security conferences, and writes several blogs for such resources as xaker.ru, Elcomsoft and Habr. In addition to his online activities, Oleg’s articles are also published in professional magazines. Also, Oleg Afonin is the co-author of a well-known book, Mobile Forensics - Advanced Investigative Strategies.

Recommended For You