Date: Thu, 6 Sep 2012 00:00:51 +0200 From: Polytropon <freebsd@edvax.de> To: andrew clarke <mail@ozzmosis.com> Cc: OriS <site.freebsd@orientalsensation.com>, freebsd-questions@freebsd.org Subject: Re: Auto-mounting sshfs from /etc/fstab Message-ID: <20120906000051.998afd39.freebsd@edvax.de> In-Reply-To: <20120905214338.GA9567@ozzmosis.com> References: <CALazp%2BWGnovF6yX74J2pcEqajeRvaO1K=GMjjyCVkD7t1U-Fvg@mail.gmail.com> <20120905214338.GA9567@ozzmosis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120906000051.998afd39.freebsd>