Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th July 2008
elon elon is offline
New User
Join Date: Jul 2008
Posts: 3
Default mount fusefs (sshfs) from fstab

i'm looking for a way to mount sshfs out of fstab.
Mounting with mount_fusefs works like a charm.
The syntax in the docs does not work here on FreeBSD-STABLE.

Reply With Quote
  #2   (View Single Post)  
Old 28th July 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
Join Date: May 2008
Location: East Coast, US
Posts: 177

Showing us the syntax you actually tried would be a start to correcting it!
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #3   (View Single Post)  
Old 29th July 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
Join Date: May 2008
Location: USofA
Posts: 1,547

Originally Posted by fstab manual
Note that, for network file systems
of third party types (i.e., types supported by additional software not
included in the base system) to be automatically mounted at system
startup, the extra_netfs_types rc.conf(5) variable must be used to extend
the rc(8) startup script's list of network file system types.

The easiest way is usually to go through /etc/rc.local unless one wants to get jiggy with fuse/sshfs and do it properly.
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #4   (View Single Post)  
Old 29th July 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
Join Date: May 2008
Location: Antarctica
Posts: 293

This is what I use to automount a directory on my desktop via sshfs on my Mac. It's a pretty dirty script that I wrote before I knew a bit more about scripting, so I have to clean it up. I have dual outcomes when they're not necessary. Why not just use a shell script? It works great in my situation.

# startup_actions (Automator action-"Run Shell Script")

# Wait 5 seconds for WiFi to come up
sleep 5

if /sbin/ifconfig | grep 192.168 > /dev/null # Test for network connection anyway
	# Mount /home/ninjasb@starbox via sshfs
	mkdir /Volumes/starbox_ninjasb
	if /sbin/ifconfig | /usr/bin/grep 192.168.2 > /dev/null
		/usr/local/bin/sshfs ninjasb@ /Volumes/starbox_ninjasb -oreconnect,volname=starbox_ninjasb
		/usr/local/bin/sshfs ninjasb@XX.XX.XX.XX:/home/ninjasb /Volumes/starbox_ninjasb -oreconnect,volname=starbox_ninjasb
	sleep 1; /opt/local/bin/mpd # Wait 1 second for sshfs mount to settle, then start mpd
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)

Last edited by ninjatux; 30th July 2008 at 03:46 AM.
Reply With Quote
  #5   (View Single Post)  
Old 29th July 2008
richardpl richardpl is offline
Spam Deminer
Join Date: May 2008
Location: Croatia
Posts: 284

Also try to use late flag in fstab entry.
Reply With Quote

freebsd, fstab, fuse, fusefs, sshfs

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with some more sensible fstab defaults maxrussell FreeBSD General 4 18th July 2009 02:44 PM
C F Card and fstab terryd FreeBSD General 1 3rd December 2008 05:26 PM
Mounting ext2 in fstab latorion FreeBSD General 3 6th August 2008 04:56 PM
Speed of and speeding up sshfs ninjatux FreeBSD General 2 30th July 2008 08:44 PM
fstab and CD/DVD device corneliu FreeBSD General 7 24th May 2008 02:11 AM

All times are GMT. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick