16

Is there any way to mount APFS partition read only or read/write on Linux or Windows?

4
  • 3
    Asked here superuser.com/questions/1157631/… – spikey_richie Nov 10 '17 at 16:07
  • @spikey_richie, That answer is not correct. – Vahid Nov 10 '17 at 16:20
  • 1
    Actually, the accepted answer not being correct doesn't prevent it from being a duplicate... nobody said the system was perfect :/ Ideally, someone would come along with the correct answer [which right now is "there is no way", though that will change over time] & the OP would accept that instead. – Tetsujin Nov 10 '17 at 17:24
  • For a read-only solution in Ubuntu, see this answer – mivk Apr 25 '19 at 18:19
13

Actually there are free tools for both of the OSes.

These are my everyday use tools on my hackintosh.

3
  • 2
    Paragon's APFS software is not currently free – mrgnw Mar 9 '19 at 3:56
  • The question did not ask for a free tool. – Lothar Mar 6 '20 at 20:52
  • Here's a discussion on running apfs-fuse on Windows (may work in the future): github.com/sgan81/apfs-fuse/issues/78 – divieira Jun 11 '20 at 7:25
6

Install libfsapfs-utils (tested in Ubuntu 20.04)

1. Mount APFS partition 3 of /dev/sdd in a directory /mnt

fsapfsmount -f 1 /dev/sdd3 /mnt

where, -f file_system_index (mounts a specific file system)

2. Unmount APFS partition mounted in the directory /mnt

fusermount -u /mnt
2
  • This was successful on an 8TB Seagate drive with two partitions, however I was only able to mount the second partition, sadly this was not my partition of interest. I'll fiddle more with the -f # option. Could you explain that flag further? I'm still confused about it. Something to note, that package is only available for Ubuntu and Ubuntu derivatives if you have focal fossa, if you're using bionic still, then you'll be greeted with dependency hell. – Tmanok Nov 7 '20 at 11:49
  • I can get this to work on Linux Mint 20.10 (Ubuntu 20.04) the drive seems to mount but only can read only access files with sudo but guess that's better than nothing. – lacostenycoder May 25 at 19:17
2

I didn't test it myself, but it seems that a commercial solution is available (currently read-only):

https://backstage.paragon-software.com/business/apfs-linux/

The page doesn't say much, not even the price, though.

2

Paragon now has driver with full Read/Write support:

https://www.paragon-software.com/home/apfs-linux/

(it's not free though)

1
  • 4
    Paragon was already mentioned in Marcelo's answer, then in Aleksei Nosachev's answer. If you are just adding that it now has full read/write support, that would be more appropriate as a comment on Marcelo's answer. – fixer1234 May 24 '19 at 20:41
0

There is a dedicated linux-apfs driver, which even has experimental write support: https://github.com/linux-apfs

If you are on Arch Linux or a derivative, you can install it from the AUR.

3
  • 1
    Do you have any suggestions regarding Debian based Linux OS's? I couldn't find a Linux Kernel version specific to this driver or an APT for it, only libfsapfs-utils and a couple others. Thanks! – Tmanok Nov 7 '20 at 11:52
  • 1
    It seems that there are no debian packages for this module, but there are instructions to build on it at github.com/linux-apfs/linux-apfs-oot – noname Nov 7 '20 at 17:19
  • That was legitimately easier than libapfs-utils, thank you for pointing that out, not sure how I had missed it. For Ubuntu and Linux Mint users, it means that plugging in the external APFS drive will auto-mount using Nautilus or Nemo, whereas libapfs-utils requires a manual mount command. Additionally, it's more native in that now tools like ncdu are able to scan the drive properly! – Tmanok Nov 9 '20 at 1:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.