-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable mounting to "/Volumes" on macOS #194
Comments
Sounds like a good idea. I can implement this, can you test? |
Sure. Can you also check #124? This has been fixed upstream. |
OSXFuse automatically creates the mountpoint if it is below /Volumes because this would require root permissions which the user might not have. Reported at #194
Pushed to https://github.com/rfjakob/gocryptfs/commits/macos_volumes , MacOS binary attached - could you test? Binary: gocryptfs.gz |
OSXFuse automatically creates the mountpoint if it is below /Volumes because this would require root permissions which the user might not have. Reported at #194
It creates the dir in Volumes but it is not mounted in Finder. I will read some more tonight and come back. |
@rfjakob I tested a bit more and it works perfectly fine. However I noticed two things:
|
It might also make sense to pass the following mount options on macOS to avoid the creation of these additional files:
|
Do you get an error when passing options via |
Oh, you have to use |
gocryptfs test /Volumes/Test -o local
Wrong number of arguments (have 3, want 2). You passed: "test" "/Volumes/Test" "-olocal"
Usage: gocryptfs [OPTIONS] CIPHERDIR MOUNTPOINT [-o COMMA-SEPARATED-OPTIONS] Same result with |
|
Great! But I find this a bit misleading or incomplete for beginners like me:
|
As reported in #194 , OSXFuse creates the mountpoint if it does not exist.
Great. Thank you very much for your efforts. |
Right now running
gocryptfs encdir /Volumes/encdir
errors out. However, osxfuse automatically creates theencdir
if mounted to/Volumes
because this would requireroot
permissions which the user might not have.I guess
mount.go
needs to be modified to not check the directory existence when the mount path matches/Volumes/*
on macOS.I'm willing to write a PR myself but I'm a total Go newbie. Not sure that these are the only critical references in the source:
gocryptfs/mount.go
Lines 38 to 65 in a4dff6a
The text was updated successfully, but these errors were encountered: