Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

Raspberry Pi usually runs Linux (raspbian oder raspbmc). Linux allows to mount various external data sources. Following protocols are used commonly: SAMBA: smbfs/cifs, NFS: nfs, SSH: sshfs, FTP: cupsftp and Cloudspace: webdav/davfs. Following article explains with sample config files how to get access to these different datasourecs on the Raspberry Pi.

Following services rsp protocols are described:

  1. SAMBA: smb/cifs - Windows protokoll. Should be used locally only
  2. NFS: nfs - Unix Protokoll. Requires Unix and is much faster than smb
  3. SSH: sshfs - Protokoll which reuired an ssh daemon on the server side
  4. FTP: cupsftp - Protokoll which requires an ftp server on the server side
  5. Cloudspace: webdav/davfs - Protokoll whis is used by owncloud, seafile and various other applications

Following configuration line have to be added in /etc/fstab and adapted the local environment.


This sample configuration connects to a samba server serverix and directory Serverix and is mounted on /remote/serverix

//serverix/Serverix   /remote/serverix    cifs    noauto,rw,noserverino,credentials=/etc/samba/auth.    0    0

/etc/samba/auth. defines the access credentials



This sample configuration connects to a nfs drive called home on server obelix and will be mounted on /remote/obelix.

obelix:/home        /remote/obelix    nfs    rsize=8192,wsize=8192,intr,noauto,timeo=14    0    0


This sample configuration connects to a FTP server called and will be mounted on /remote/server.      /remote/server    fuse noauto,uid=1000,gid=1000,umask=0022,allow_other 0 0

.netrc defines the access credentials

login myserverFtpLogonUserid
password myserverFtpLogonUseridPassword


This sample configuration connects to a ssh server called obelix and remote directory /home/pi and will be mounted on /remote/obelix. An id_rsa file generated with ssh-keygen is used for authentication and the public key has to be added to the ssh server in the authorized_keys with ssh-copy-id.

sshfs#remoteUser@obelix:/home /remote/obelix     fuse      user,_netdev,reconnect,uid=1000,gid=1000,idmap=user,identityfile=/home/localUser/.ssh/id_rsa,allow_other  0 


This sample configuration connects to a server called and will be mounted on /remote/1und1.        /remote/1und1  davfs   rw,noauto,user  0       0

.davfs2/secrets defines the access credentials  serverUserid serverPassword

Detailed description for other webdav providers:  How to use webdav on Linux

Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. All comments are reviewed manually and it usually takes one day until a comment will be published.
  2. Comments with string http are rejected with message You have no rights to use this tag.
  3. You have to wait at least one hour until you can post another comment.