Bug 211867 - sshfs dosn't work in /etc/fstab
Summary: sshfs dosn't work in /etc/fstab
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 10.3-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-15 11:49 UTC by ~OuT~
Modified: 2021-08-24 16:05 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ~OuT~ 2016-08-15 11:49:41 UTC
I can mount /tmp/test manually with it:
--
sshfs root@10.0.6.6:/tmp/test /tmp/test
--

The relevant line I'm using in fstab goes like this:
--
root@10.0.6.6:/tmp/test /tmp/test fusefs.sshfs ro 0 0
--

but I am getting this:
--
mount: root@10.0.6.6:/tmp/test: Operation not supported by device
--

I get the same if I replace fusefs.sshfs with fuse and add sshfs# to the beginning of the line.
Comment 1 Tobias Kortkamp freebsd_committer 2021-08-24 08:15:23 UTC
It should go something like

root@10.0.6.6:/tmp/test /tmp/test fusefs ro,mountprog=/usr/local/bin/sshfs,allow_other,late 0 0
Comment 2 Nick Chevsky 2021-08-24 16:05:14 UTC
Thank you, Tobias; the `mountprog' option did the trick.

While sshfs(1)'s manual page doesn't mention the need for this (and in fact incorrectly claims that mounting from fstab(5) is as simple as specifying `sshfs' as the file system type), that's a sysutils/fusefs-sshfs problem, so this base system bug can be closed.