mounting FTP Filesystem (Host as a Drive) on a local folder on Centos 5.5 with CurlFTPfs
Sometimes it would be useful to mount an external FTP Server as a local drive (a big web space or a service like FileSync.ch). Once u’ve done this, you will be able to treat every file on the external server like a locally saved one. No matter if you want to watch a video or “vim” a text file – you can just do it like if it was on your machine.
-Auto-reconnect if connection is lost / server times out.
So first, you need the right tools:
1. Installing FUSE userspace tools
wget http://downloads.sourceforge.net/fuse/fuse-2.7.3.tar.gz?modtime=1203456610&big_mirror=0 tar xvzf fuse-2.7.3.tar.gz
su -c "make install"
FUSE is now installed.
2. Install CurlFTPfs
get your CurlFTPfs RPM here
rpm -ivh fuse-curlftpfs-0.9.1-1.el5.rf.i386.rpm
Now CurlFTPfs is installed.
Get Started – Mount your FTP Host
From now on you are ready to mount any FTP Host in your local filesystem.
Lets have a look at some examples:
my FTP host: ftp.example.com
my Username: username@username
my Password: password
my folder i want to mount the FTP Host on: /home/username/ftpmount/
I “cd” in my home dir and enter the following command:
sudo curlftpfs -v -o allow_other -o user="username@username:password" ftp.example.com ftpmount/
This is the Syntax that also works if you have an @-char in your Username (You sometimes have, per example if you want to mount the 5TB Briefcase of livedrive.com).
and you will see the mounted directory. Some operations like listings of big FTP Dir’s can take some seconds because CurlFTPfs has to start the connection and make the index of the requested folder.
2TB Cloudspeicher kostenlos testen: