Mount encrypted APFS volume on Fedora

It's a bit tricky to use apfs-fuse on Fedora. This is how to install and use it.

This is heavily based on a blog on Thomas’ Tech Tips.

Install dependencies for Fedora:

1
sudo dnf install fuse fuse3 fuse3-devel bzip2 bzip2-devel cmake gcc g++ git libattr zlib

On Ubuntu/Debian:

1
sudo apt install fuse libfuse3-dev bzip2 libbz2-dev cmake gcc g++ git libattr1-dev zlib1g-dev

Add cstdint header include to PList.h:

1
2
3
4
5
6
#pragma once

#include <cstdint> // This
#include <vector>
#include <map>
#include <memory>

Build the module:

1
2
3
4
5
git clone https://github.com/sgan81/apfs-fuse
cd apfs-fuse
git submodule update --init
mkdir build && cd build
cmake .. && make

Mount the volume:

1
sudo ./apfs-fuse /dev/sdXn /mnt/apfs-data

Reference: Thomas' Tech Tips and SuperCowProducts' Commit d983f26.

Licensed under CC BY-NC-SA 4.0
Built with Hugo
Theme Stack designed by Jimmy