apfs-fuse icon indicating copy to clipboard operation
apfs-fuse copied to clipboard

sudo: ./apfs-fuse: command not found

Open GullibleGreenGecko opened this issue 5 years ago • 10 comments

I have supposedly done everything right from https://linuxnewbieguide.org/how-to-mount-macos-apfs-disk-volumes-in-linux/ but error still occurred. I am very inexperienced with linux (having ubuntu at the moment) so please have patience with me. Any comment appreciated...

GullibleGreenGecko avatar Aug 10 '19 12:08 GullibleGreenGecko

This is a late reply, but if you followed the guide you linked, then apfs-fuse should be in /usr/local/bin, thus you could instead run sudo /usr/local/bin/apfs-fuse. Cheers.

timokratia avatar Feb 20 '20 17:02 timokratia

I have the same error here, tried your solution, still got the same error. Any other ideas?

BraveSentry avatar May 23 '20 06:05 BraveSentry

If by the same error you mean command not found, try which apfs-fuse to see where it is located, and use sudo /path/to/apfs-fuse instead.

If it says apfs-fuse not found then you didn't install it on your PATH, and you need to copy them to your PATH, for example, to /usr/local/bin with sudo.

timokratia avatar May 23 '20 06:05 timokratia

apfs-fuse /dev/sda2 /mnt/macOS gives me apfs-fuse: Befehl nicht gefunden., which is German for "command not found. apfs-fuse gives me no output at all, even after copying the whole folder to /usr/local/bin. Any other ideas?

BraveSentry avatar May 23 '20 10:05 BraveSentry

If you copied apfs-fuse to your /usr/local/bin, try sudo /usr/local/bin/apfs-fuse /dev/sda2 /mnt/macOS. Does this command give you any output?

timokratia avatar May 23 '20 10:05 timokratia

The same in green: sudo: /usr/local/bin/apfs-fuse: Befehl nicht gefunden Btw: If I use nemo to search for "apfs-fuse", I only get two exact matches: One is the folder that got created through git clone, and the other a 443,6 kB (443.552 Bytes) file of type "Unknown (application/x-sharedlib)", located in /usr/local/bin/apfs-fuse/build. Should there be anything else? Or is there anything I can/should do to this file?

BraveSentry avatar May 23 '20 11:05 BraveSentry

Looks like you copied the whole apfs folder from git clone to /usr/local/bin. However, you only need the things in the apfs-fuse/build folder in /usr/local/bin.

So, first move the apfs-fuse folder out to, say, your home folder:

sudo mv /usr/local/bin/apfs-fuse ~/

Then copy everything in the build folder (not the build folder itself) to /usr/local/bin. Then the above solution should work.

(What it does is to put build targets on your PATH, so your terminal would recognize it. Sometimes this is done automatically during the build process, but it's not the case with apfs-fuse here.)

timokratia avatar May 23 '20 11:05 timokratia

Nice, thank you. @GullibleGreenGecko if this helped you too, I suggest you close this issue.

Now I'm running into ownership issues, but I think that's not the fault of apfs-fuse.

BraveSentry avatar May 23 '20 14:05 BraveSentry

hello, i have the same issue, i cant figure out, in my local bin folder is the apfsfuse but dont work, the same error

/usr/local/bin/aptfuse/src/apfs-fuse/apfsfuse: command not found

micaelaalcalde avatar Jun 22 '20 04:06 micaelaalcalde

Read again what timokratia wrote here: https://github.com/sgan81/apfs-fuse/issues/93#issuecomment-633034991 Did you follow it exactly?

BraveSentry avatar Jun 22 '20 05:06 BraveSentry