rustic icon indicating copy to clipboard operation
rustic copied to clipboard

Mount & fuse3: unknown options

Open jullanggit opened this issue 1 year ago • 5 comments

System

  • arch linux (6.13.3)
  • rustic-rs commit d1b11f9c5f8b83056a96608ea22a227f0d71431e (v0.9.5)
  • fuse3 v3.16.2

Issue

When trying to use mount, I get the following error from fuse:

fuse: unknown option(s): `-o  allow_other,kernel_cache'

With --exclusive, I still get the error:

fuse: unknown option(s): `-o  fsname=rusticfs:178b8851,kernel_cache'

For some reason, fuse doesn't seem to know any options, even stuff like debug doesn't get accepted. I'm not sure if this is an issue with rustic or my system, either way, any help would be very welcome.

jullanggit avatar Feb 19 '25 23:02 jullanggit

Not sure if it solves all issues but allow_other has to be enabled first.

  1. Open the file /etc/fuse.conf in a text editor
  2. Change the line that says user_allow_other . I think by default it is commented out and all you need to enable it is remove the comment at the start of the line.

Try again

kapitainsky avatar Feb 20 '25 06:02 kapitainsky

Thank you for the tip, but that sadly doesn't help. I run rustic as root, could that be the issue?

jullanggit avatar Feb 20 '25 12:02 jullanggit

IIRC this is an issue when using fuse3 in combination with rustic. @jullanggit are you self-compiling? In any case you should try to use libfuse.so instead of libfuse3.so.

#1366 might solve the issue with fuse3.

aawsome avatar Feb 20 '25 20:02 aawsome

@aawsome yes, I'm compiling from source (cargo install -F mimalloc,mount --git https://github.com/rustic-rs/rustic rustic-rs). When linking with fuse (RUSTFLAGS="-L /usr/lib -lfuse"), I no longer get the errors, but the mount-point specified under the [mount] section remains empty. (running the mount command (for listing mounts) also doesn't show it, but I'm not sure if that's normal with fuse)

jullanggit avatar Feb 21 '25 17:02 jullanggit

I would also be open to work on #1366, but I would need some guidance for that

jullanggit avatar Feb 21 '25 17:02 jullanggit