FUSE FS

From shankerbalan.net
Jump to: navigation, search

Overview

Fusefs is a userspace filesystem which was ported over from Linux and made its first appearance on FreeBSD 6.

FUSE makes it possible to implement a filesystem in a userspace program.

Features include: simple yet comprehensive API, secure mounting by non-root users, support for RELENG_6 and HEAD FreeBSD kernels, multi-threaded operation.

I use fusefs over a secure SSH connection to access disks across the network. It is completely transparent to applications and provides a very intuitive way to work with remote files including play music files (which is what I use it for) provided you have decent bandwidth.

Installation & Configuration

  • FreeBSD 6/7
  • Ports fully updated
$ sudo portinstall sysutils/fusefs-sshfs
$ sshfs remote.host.com: # .ssh/config has my local cfg
$ sshfs remote.host.com:/home/mp3 # thats where my music is
$ sudo mount_fusefs /dev/fuse0 /mnt/fuse
$ sudo mount_fusefs /dev/fuse1 /home/mp3
$ cd /mnt/fusefs

Notes

  1. UIDs are same for me on both the systems to prevent permission problems
  2. /dev/fuseN gets incremented with each run of sshfs, be sure to refer to the correct fuse device when mounting them. (ls -l /dev/fuse* helps)
Personal tools