Apr 20, '10 07:30:00AM • Contributed by: Anonymous
This week, I tried to mount a volume from my Linux server. I had ssh access, so I decided to use sshfs to mount it. THe Out-of-box solution was not working, so here is a complete guide.
First of all, you need to configure remote Linux server to support sftp and sshfs:
- Install Fuse; there is a good installation manual.
- Make sure you have the fuse kernel module compiled as a module; it is important: zcat /proc/config.gz|grep FUSE. If you see #CONFIG_FUSE_FS is not set, then you'll need to do this:
$ cd /usr/src/linux $ make menuconfig File systems ---> Filesystem in Userspace support --> <M> $ make && make modules_install $ update-modules $ /etc/init.d/fuse start
Installation of MacFUSE on 10.6 in 64-bit mode is a bit curious. MacFUSE-2.0.3.2.dmg from the home site is not working -- the kext module is failing dependencies, so we have to build on our own. Make sure you have XCode installed. If not, get it from Apple's developer site for free. (Alternatively, if you don't want to build it yourself, you can try either my build (2.8MB), or this one (2.6MB) by Tomas Carnecky.)
To build your own, download the MacFUSE source, then do this in Terminal: $ cd core $ ./macfuse_buildtool.sh -c Release -p 10.5 -t smalldist After building, go to /tmp and install MacFUSE .pkg.
Open the MacFUSE System Preferences panel and start MacFUSE, or load it by hand in Terminal: kextload fusefs.kext. Next install a GUI for disk mounting - MacFusion. This too needs to be fixed:
$ cd /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/ $ mv sshnodelay.so sshnodelay.so.oldThat's all, folks! Start Macfusion and mount remote sshfs volumes.
[robg adds: I haven't tested this one.]
