Newbie me trying to mount my OsX APFS partition but stuck with cmake error

As the titles says I´m tryng to mount the APFS partition from the OsX install on this laptop. I´ve read several guides for this and most of them said kinda the same thing: install apfs-fuse in various ways.

This guide was the one I tried, guide install apfs-fuse.

Im stuck on some mess with cmake:

cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

Do I have to find the cmake txt file and tell it what version it should say it is and what build tool it should use?

Im too lazy to read and learn about that so I´m asking for help :slight_smile:

Install apfs-fuse-git from the AUR (Arch User Repository).

Too bad. You’re going to have to read the wiki link. Don’t worry, it’s actually quite simple. :stuck_out_tongue_winking_eye: :point_up:

3 Likes

Hoho, sorry. The AUR link you provided was no where near as pain-in-the-arsly to read as the ones about horrible cmake :wink:

Ha! Still got the kinda same error using the apfs-fuse-git using AUR! I guess I fubared something when I tried this before.

Got the following error from trying to install apfs-fuse-git with AUR in the graphical installer:

Preparing...
Cloning apfs-fuse-git build files...
Generating apfs-fuse-git information...
Checking apfs-fuse-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building apfs-fuse-git...
==> Making package: apfs-fuse-git r101.66b86bd-1 (mån 30 okt 2023 23:56:17)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating apfs-fuse git repo...
  -> Updating lzfse git repo...
==> Validating source files with sha256sums...
    apfs-fuse ... Skipped
    lzfse ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of apfs-fuse git repo...
Cloning into 'apfs-fuse'...
done.
  -> Creating working copy of lzfse git repo...
Cloning into 'lzfse'...
done.
==> Starting prepare()...
Submodule '3rdparty/lzfse' (https://github.com/lzfse/lzfse.git) registered for path '3rdparty/lzfse'
Cloning into '/var/tmp/pamac-build-hobs0n/apfs-fuse-git/src/apfs-fuse/3rdparty/lzfse'...
done.
Submodule path '3rdparty/lzfse': checked out 'e634ca58b4821d9f3d560cdc6df5dec02ffc93fd'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

Bah Im cursed. Now go buy me some chocolate =)
But seriously, I guess I fubared something with cmake?

Same error as before. You missed something very important in the wiki article I posted above. :wink:

Be sure you have the necessary files for building applications from source

pamac install base-devel git
2 Likes

Did you mean:

**Use the AUR at your own risk!** -- **No support** will be provided by the Manjaro team for any issues that may arise relating to software installations from the AUR. When Manjaro is updated, AUR packages might stop working. **This is not a Manjaro issue**
... or, was it something else?

Thanks. That was not clear for me at all but Im learning… slowly.

Im sorry but I just cant get it to work.

I typed:
“sudo mount /dev/hda2 /home//apple” and it gives me this:

“mount: /home/hobs0n/apple: unknown filesystem type ‘apfs’.
dmesg(1) may have more information after failed mount system call.”

Ive tried using dmesg but havent learned how to use it. Is there any easy way to solve this?
I mean “unknown file system: apfs” sounds like i havent got working apfs drivers installed but as I showed earlier in this post I followed all the instructions and I havent got any errors (I think)

As well as build/install instructions it helps to read usage instructions too.

apfs-fuse <device> <mount-directory>
1 Like

Thanks for a quick answer! :slight_smile: I think I read too many guides/instructions, they gave different instructions and it just made me confused.
I think I got it mounted now. I just have read how to get it visible and/or readable for my user.

https://github.com/sgan81/apfs-fuse#mount-options–o-

Looks like -o uid=1000,gid=1000 should work. Use the id command to check your uid and gid first, they may not be 1000.

1 Like

Hoho yay I finally got that command right “sudo apfs-fuse -o uid=1000,gid=1000 dir dir” :slight_smile:

Now I just have to read howto change the permissions on my directory I mounted /dev/sda2 too.

“ls -l” gives me:
“d??? ? ? ? ? ? apple”

EDIT: damnit, the command chmod is harder to learn than buildind space rockets >_<

I posted about this on the apfs-suse Github on this thread and asked. I havent got any reply yet so I thought I’d update this thread with more info so perhaps you guys can help me :slight_smile:

I´m pretty sure the APFS partition is encrypted since I have to write the password two times when the computer does a cold startup so I add the password on the apfs-fuse terminal command:
: sudo apfs-fuse -o pass=<mypassword> -o uid=1000,gid=1000,allow_other -d 15 /dev/sda2 /home/hobs0n/apple and I got several pages of info. I´m just posted the first half-page here, let me know if you want more.

Device /dev/sda2 opened. Size is 151976800256
Mounting xid different from NXSB at 0 (xid = 15888091). xid = 15888091
Mounting xid 15888091
omap: oid=2637555 xid=15888091 flags=0 size=4096 paddr=151456
omap: oid=1029 xid=15888091 flags=0 size=4096 paddr=151457
omap: oid=2574525 xid=15888077 flags=0 size=4096 paddr=544223
apfs_opendir: 1
apfs_lookup: ino=1 name=BDMV => Lookup hashed key: key=9000000000000001 hash=9318a005 name=‘BDMV’
42 44 4D 56 BDMV
Lookup failed!
FAIL
apfs_getattr: ino=1 => OK
apfs_lookup: ino=1 name=autorun.inf => Lookup hashed key: key=9000000000000001 hash=38C9640C name=‘autorun.inf’
61 75 74 6F 72 75 6E 2E 69 6E 66 autorun.inf
Lookup failed!
FAIL
apfs_lookup: ino=1 name=.xdg-volume-info => Lookup hashed key: key=9000000000000001 hash=74129411 name=‘.xdg-volume-info’
2E 78 64 67 2D 76 6F 6C 75 6D 65 2D 69 6E 66 6F .xdg-volume-info
Lookup failed!
FAIL
apfs_readdir: 1
omap: oid=2748BF xid=F26ED6 flags=0 size=1000 paddr=836E1
dumping entry key
0000: 01 00 00 00 00 00 00 90 0C 8C A6 AC 70 72 69 76 - …priv
0010: 61 74 65 2D 64 69 72 00 - ate-dir.
dumping entry val
0000: 03 00 00 00 00 00 00 00 B7 95 57 81 27 19 21 16 - …W.‘.!.
0010: 04 00 - …
dumping entry key
0000: 01 00 00 00 00 00 00 90 05 E4 71 B6 72 6F 6F 74 - …q.root
0010: 00 - .
dumping entry val
0000: 02 00 00 00 00 00 00 00 F3 67 57 81 27 19 21 16 - …gW.’.!.
0010: 04 00 - …
dumping entry key
0000: 02 00 00 00 00 00 00 30 - …0
dumping entry val
0000: 01 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 - …
0010: F3 67 57 81 27 19 21 16 34 39 D8 DF D4 1E 74 16 - .gW.'.!.49…t.
0020: 34 39 D8 DF D4 1E 74 16 41 3A D8 DF D4 1E 74 16 - 49…t.A:…t.
0030: 00 80 00 00 00 00 00 00 04 00 00 00 00 00 00 00 - …
0040: 05 00 00 00 00 00 00 00 00 00 00 00 50 00 00 00 - …P…
0050: FD 41 00 00 00 00 00 00 00 00 00 00 01 00 08 00 - .A…
0060: 04 02 05 00 72 6F 6F 74 00 00 00 00 - …root…
apfs_readdir: 1
apfs_readdir: 1
apfs_releasedir 1
apfs_opendir: 1
apfs_readdir: 1

If I run without allow_other
sudo apfs-fuse -o pass=<mypwd> -o uid=1000,gid=1000 -d 15 /dev/sda2 /home/hobs0n/apple

I get much shorter info:

Device /dev/sda2 opened. Size is 151976800256
Mounting xid different from NXSB at 0 (xid = 15888091). xid = 15888091
Mounting xid 15888091
omap: oid=2637555 xid=15888091 flags=0 size=4096 paddr=151456
omap: oid=1029 xid=15888091 flags=0 size=4096 paddr=151457
omap: oid=2574525 xid=15888077 flags=0 size=4096 paddr=544223