Auto-mounting sshfs from /etc/fstab
Polytropon
freebsd at edvax.de
Wed Sep 5 22:01:01 UTC 2012
On Thu, 6 Sep 2012 07:43:38 +1000, andrew clarke wrote:
> On Wed 2012-09-05 19:38:54 UTC+0200, OriS (site.freebsd at orientalsensation.com) wrote:
>
> > I've been trying to find a page on the Internet where an example is posted
> > explaining how to mount sshfs from /etc/fstab, but I can't find any!
>
> Have you tried running sshfs from cron? eg. run "crontab -e" as a
> regular user and add:
>
> @reboot /usr/local/bin/sshfs remotehost: $HOME/mnt/remote
>
> Note: Untested.
Also untested, but possible, if you want it to happen
"system-wide": Add a section to /etc/rc.local:
echo -n " sshfs"
/usr/local/bin/sshfs <your parameters>
And to /etc/rc.shutdown.local:
echo -n " sshfs"
umount <where it was mounted to>
Note that you can add additional configuration tweaks by
using the rc.conf mechanism, and you can also add tests
to increase reliability.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list