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

Allow x-gvfs-hide mount option #103

Closed
silenc3r opened this issue Apr 21, 2017 · 6 comments
Closed

Allow x-gvfs-hide mount option #103

silenc3r opened this issue Apr 21, 2017 · 6 comments

Comments

@silenc3r
Copy link

When tried to mount volume with x-gvfs-hide option gocryptfs throws an error:

$ gocryptfs /my/encrypted/volume ~/my/mountpoint -o x-gvfs-hide
[...]
flag provided but not defined: -x-gvfs-hide

Or maybe there's another way to hide gocryptfs volume in Nautilus sidebar I don't know of?

@rfjakob
Copy link
Owner

rfjakob commented Apr 22, 2017

I have tested this with ext4 and it accepts this mount option, even though I'm not sure how. The option does not show up in the mount output afterwards.

It does not work with EncFS:

$ encfs -o x-gvfs-hide $PWD/e1 $PWD/e2
EncFS Password: 
fuse: unknown option `x-gvfs-hide'
fuse failed.  Common problems:
 - fuse kernel module not installed (modprobe fuse)
 - invalid options -- see usage message

Anyway, reading https://github.com/GNOME/gvfs/blob/master/monitor/udisks2/what-is-shown.txt I found this:

if any of component directories
in its directory starts with a dot ("."), the device is not shown

Maybe good enough?

@silenc3r
Copy link
Author

Anyway, reading https://github.com/GNOME/gvfs/blob/master/monitor/udisks2/what-is-shown.txt I found this:

if any of component directories
in its directory starts with a dot ("."), the device is not shown

Maybe good enough?

It would be good enough for me, but it doesn't seem to work. I have tried it before opening this issue.

@silenc3r
Copy link
Author

I also tried writing udev rule but it doesn't work either.
https://ask.fedoraproject.org/en/question/104585/how-do-i-hide-fuse-partition-from-nautilus-sidebar/

@rfjakob
Copy link
Owner

rfjakob commented May 6, 2017

It looks like the mountpoint (or maybe any parent directory of it) must start with a dot. This works, it is not shown in the sidebar, gocryptfs mounted on /home/jakob/tmp/.b

$ df -Th | grep fuse.gocryptfs
/home/jakob/tmp/a              fuse.gocryptfs  200G  120G   71G  63% /home/jakob/tmp/.b

@rfjakob
Copy link
Owner

rfjakob commented Jun 18, 2017

I guess this is ok to close?

@rfjakob rfjakob closed this as completed Jun 18, 2017
@silenc3r
Copy link
Author

OK, I get it now. The mountpoint directory and not encrypted volume has to start with a dot. I guess I have to use symlinks to get what I want, i.e.:

gocryptfs /mnt/encrypted_volume ~/.vol1
ln -s ~/.vol1 ~/vol1

Not ideal but still better than nothing. Thanks.

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

No branches or pull requests

2 participants