~How to mount an apfs volume in Unraid~


Recommended Posts

For everyone who needs to mount an apfs volume



     Open terminal or ssh into server and work through these steps:

mkdir -p /tmp/apfs && cd /tmp/apfs
wget https://github.com/ich777/apfs-fuse/releases/download/v20200708/fuse3-3.10.1-x86_64-1.txz
wget https://github.com/ich777/apfs-fuse/releases/download/v20200708/apfsfuse-v20200708-x86_64-1.txz
installpkg fuse3-3.10.1-x86_64-1.txz
installpkg apfsfuse-v20200708-x86_64-1.txz
rm -rf /tmp/apfs


     Now, all dependencies are available. The following steps show an example with an qcow2 image. This requires an additional step:

qemu-nbd --connect=/dev/nbd0 /path/to/your/image.qcow2


     You can now mount your apfs volume with:

losetup -r /dev/loop8 /dev/nbd0p2
mkdir /mnt/disks/apfsvolume
apfs-fuse /dev/loop8 /mnt/disks/apfsvolume


Thanks to @ich777 for the files!

Edited by giganode
  • Like 1
  • Thanks 2
Link to comment
  • 4 months later...
  • 1 year later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.