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 livedrive). 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.

CurlFTPfs features:

-SSL support
-HTTP proxies
-Auto-reconnect if connection is lost / server times out.

So first, you need the right tools:

1. Installing FUSE userspace tools

tar xvzf fuse-2.7.3.tar.gz
cd fuse-2.7.3
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:
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:

cd home/username/
mkdir ftpmount
sudo curlftpfs -v -o allow_other -o user="username@username:password" 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

thats all,

cd ftpmount/

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.

You may also like...

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *