2013/10/25

Mount FTP/NFS in ubuntu

Abstract

Mounting a FTP or NFS into a local directory.

Background

Ubuntu 12.04 LTS

Let's start

NFS
`sudo apt-get install nfs-common`
`showmount -e NFS_IP`
PS. this will show a mountable directory on your NFS
`mount -o soft NFS_IP:<dir in last command> <local_directory>`

FTP

`sudo apt-get install curlftpfs`
`curlftpfs user:pass@ftp.yourdomain.com ~/ftpfolder/`

If you want to un-mount the directory,
`sudo umount  <dir>`

Permanent mounting

add following line into /etc/fstab
curlftpfs#ftpUsername:ftpPassword@ftp://ftpUrl /localDirectory fuserw,uid=1000,umask=0777,user,suid,allow_other,exec,auto,utf8 0 1


Reference


沒有留言:

張貼留言