Skip to content
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

Unmount does not work #233

Closed
linuxissuper opened this issue Jun 4, 2023 · 10 comments
Closed

Unmount does not work #233

linuxissuper opened this issue Jun 4, 2023 · 10 comments

Comments

@linuxissuper
Copy link

linuxissuper commented Jun 4, 2023

It seems SiriKali doesn't use a command for unmounting:
image

I'm on NixOS and built it myself (I probably forgot something?)
But I also tried a version installed through AUR on distrobox and there I get the same error
QIODevice::read (QProcess): device not open

Am I missing some option?

@mhogomchungu
Copy link
Owner

mhogomchungu commented Jun 4, 2023

The unmounting command should look something like below

Command: "/usr/bin/fusermount" "-u" "/home/_/gocryptfs"
-------
Exit Code: 0
Exit Status: 0
-------
StdOut:
-------
StdError:
*************************************

In your case, SiriKali is failing to find "fusermount" executable

@linuxissuper
Copy link
Author

ah I see, thanks

@linuxissuper
Copy link
Author

This may be a stupid question, but is there a way of making SiriKali aware of the PATH variable?

@mhogomchungu
Copy link
Owner

Where is fusermount located in your system?

This commit should solve your issue.

Please update your sources from git version and try again.

@linuxissuper
Copy link
Author

/run/wrappers/bin/fusermount (it's all a little different on NixOS)
hm, I've updated and rebuilt but it still doesn't work

but this is probably nix problem
and I have to adjust my build config

@mhogomchungu
Copy link
Owner

This should now be solved by this commit and it now shows a descriptive error when fusermount can not be found.

I am not sure of a reason but there was one that made me intentionally not including the PATH variable when searching for executables.

Screenshot_20230605_165748

@Saroumane
Copy link

I think a lot of people will encounter this problem, when their distro upgrade to a newer libfuse package.
This bug report libfuse/libfuse#794 (from May) says that fusermount is not provided anymore by libfuse and that fusermount3 is not entirely compatible.

For now, I did :
$ sudo ln -s /usr/bin/fusermount3 /opt/bin/fusermount
and so far it works.

@mhogomchungu
Copy link
Owner

mhogomchungu commented Dec 4, 2023

I tried with gocryptfs version 2.4.0 and my observations are on unlocking, gocryptfs tries to use mount command and if that fails then it uses fusermount3 if available and falls back to fusermount.

I think the best solution here is for gocryptfs to handle unmounting of its volume because it knows how it mounted them. The best i can do is guess work and that is not nice.

In the mean time, i will try with fusermount3 if present and fall back to fusermount.

@mhogomchungu
Copy link
Owner

I have opened a feature request to ask gocryptfs to also handle unmounting.

rfjakob/gocryptfs#810

@Saroumane
Copy link

Meanwhile, I deleted my symlink and I just installed package fuse2.
I wrongly assumed there was only 1 package, but in fact (at least with Archlinux) : there are 2 separate packages : fuse2 and fuse3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants