Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

fs.Mount with fusermount fails on Android (termux) #727

Closed
mseltahir opened this issue Apr 5, 2023 · 3 comments
Closed

fs.Mount with fusermount fails on Android (termux) #727

mseltahir opened this issue Apr 5, 2023 · 3 comments

Comments

@mseltahir
Copy link

mseltahir commented Apr 5, 2023

Hello hello,

I'm trying to make gocryptfs work on Android (termux). I can build and execute the binary as usual but when I try to decrypt some folder using:

gocryptfs <encrypted directory> <MOUNTPOINT>

It gives me the following error:

fs.Mount failed: fusermount exited with code 31

I looked up this exit code for fusermount but I couldn't find anything useful. And I tried to understand it further by adding this log statement

tlog.Info.Printf("mountpoint: %v\nrootNode: %v", args.mountpoint, rootNode)

where the code is failing here:

tlog.Fatal.Printf("fs.Mount failed: %s", strings.TrimSpace(err.Error()))

and I got this output

Decrypting master key
mountpoint: /data/data/com.termux/files/home/internal/obsidian
rootNode: i0 ():
fs.Mount failed: fusermount exited with code 31

The mount point seem to be correct, but I don't know if rootNode is, do you have any insight on how I can go around this? My feeling is that it is a problem with the fusermount dependency.

Edit:
I'm using the latest version from master (24b3978)

@rfjakob
Copy link
Owner

rfjakob commented Apr 7, 2023 via email

@misterhsp
Copy link

misterhsp commented Apr 8, 2023

fuse only works as root on Android And you must use the -nosyslog option.

...

@mseltahir
Copy link
Author

fuse only works as root on Android And you must use the -nosyslog option.

Oh that's unfortunate, do you know of any other alternative to this method?

Repository owner locked and limited conversation to collaborators May 16, 2023
@rfjakob rfjakob converted this issue into discussion #745 May 16, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants