From owner-freebsd-questions@FreeBSD.ORG Wed Sep 5 22:01:01 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0FC4106568B for ; Wed, 5 Sep 2012 22:01:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6E69F8FC1A for ; Wed, 5 Sep 2012 22:01:01 +0000 (UTC) Received: from r56.edvax.de (port-92-195-49-179.dynamic.qsc.de [92.195.49.179]) by mx02.qsc.de (Postfix) with ESMTP id 66AE3276C6; Thu, 6 Sep 2012 00:00:52 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q85M0pxa002495; Thu, 6 Sep 2012 00:00:51 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 6 Sep 2012 00:00:51 +0200 From: Polytropon To: andrew clarke Message-Id: <20120906000051.998afd39.freebsd@edvax.de> In-Reply-To: <20120905214338.GA9567@ozzmosis.com> References: <20120905214338.GA9567@ozzmosis.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: OriS , freebsd-questions@freebsd.org Subject: Re: Auto-mounting sshfs from /etc/fstab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 22:01:01 -0000 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 And to /etc/rc.shutdown.local: echo -n " sshfs" umount 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, ...