Excellent thread, remembered it as I am now trying to do the same thing. I managed to get the drive mounted but now faced with the permissions issue referred to in the post above this one.
I assume the encryption was handled the first time you ran the command. but back when I was running macOS at work, apfs-fuse didn’t handle encryption. Repeated mount commands with different options will show a drive mounted multiple times. You appear to be running Gnome Files from a user login. That does not (and should not) let you mess with things that require root privileges.
Recent versions of macOS use zsh in a terminal because the lawyers won’t let them provide current versions of bash. Having used zsh at work, I prefer it over bash.
As you see, the Linux GUI environment is limited to things that are widely used. As soon as you want something not commonly used, you have to use the command-line. You can compare the Apple command-line manual with Linux Command to learn about the differences, but macOS and Linux both provide a basic POSIX command-line environment combined with very different administrative tools.
No idea what zsh or bash are, and not sure I need to.
Am I right in thinking that you’re basically saying I can’t do unmount via Files app due to lower priveleges of logged in user rather than root in Terminal?
I’d just like to be able to unmount the drive rather than hot-unuplug, for fear of damaging drive/data as its an important backup of my mac data before moving to Fedora. Do i just need to mount and unmount using Terminal commands rather than Files?
(I haven’t actualy run a mount command, just a command beginning with ‘sudo apfs-fuse’, which did mount it and make it accessible).
I am pretty confused but now that I have access to the drive (I think), I just need to know how to mount and unmount this apfs drive, if anyone can advise the best way to do that please
I’ve encountered undergrad work-study students who resisted learning linux fundamentals – that usually ended up with some disaster.
A fundamental concept Linux “stole” from Unix is the shell program. If you don’t make the effort to understand the concept you risk doing some thing that breaks your system (I often encounter “easy way to fix your linux problem” clickbait sites that suggest commands that would do serious damage).
Yes. You can use the big, complicated “sudo” or the lightweight “doas” in a terminal to run a command with root privileges, but please consult one of the trusted references for the full details of linux permission/privileges and their management.
Hot-unplug won’t alter a read-only filesystem, but it is a good habit to avoid (so you are less likely to unmount a filesystem where it matters), and is the sort of “edge” case that might trigger a bug in programs that have opened files on the filesystem – some may keep a file (in linux, directories are files) “open” in case you want to make further use of it, and only close the file when exiting).
“Resisted” - Being unable to do something is not ‘resistance’. I’d rather you just took my word for that being the case, than have me explain my life situation to see that not everyone is a ‘student’ who can’t be bothered to learn something useful to their future. Some people have no future unless they just achieve certain tasks RIGHT NOW, without the time available to learn the foundations of it. Is it a good situation? No. Is it mine? Yes. So kindly stop insinuating that I am ‘resisting’ anything, you are not in a position to know if that is the case. And it isn’t.
Joey Jonnson was advised to start a
new thread. He has some special circumstances and has minimal command-line experience, so needs a different level of help than most forum users.
Issues that the command is not ran with polkit and is not allowed in the GUI
1.
How did you try decrypting the drive? If this fuse command is ran with root, you also need to unlock the disk with root.
But best would be to have this work without root.
2.
If you run a command with sudo (or with doas or in the future with run0) you run that command as root.
This means if you can only mount something with root, you can also only unmount it with root.
There are polkit rules to solve this. Polkit is a system that manages permissions, what user in what group (you already used id to get that info) can do what action.
Normally for disk mounting, unlocking and unmounting actions, udisks2 is used. This is the one used in GNOME’s and KDE’s file managers.
I dont know if this apfs-fuse is supported by udisks2, likely not.