Mounting a Windows FTP Server on CentOS 6.5

When using a virtual machine for Linux software development, the shared folder feature often does not work properly, resulting in the following issues:

  1. When files are modified on Windows, the changes do not immediately reflect in Linux, requiring some waiting.
  2. When files are modified on Linux, the changes do not appear on Windows, again requiring some waiting.

The cause of these issues could not be determined. As a result, I installed haneWIN NFS Server on Windows to use it as an NFS server. This software worked well for a month but became non-functional after the trial period expired due to its paid nature. Therefore, I looked for alternative methods.

I believed that any network file protocol should allow mounting. A quick search revealed that mounting an FTP server was possible. However, after testing, I found that the FTP protocol does not support arbitrary file read and write operations. When attempting to compile a file with gcc, an operation not supported error occurred, as shown in the image. Thus, I decided to find a cracked version of haneWIN NFS Server.

Below, I document how to mount an FTP server.

First, install the necesary software.

a) Install FileZilla Server on Windows, create a username and password, specify the FTP root directory for this user, set the root directory permissions (select all permissions), and disable transfer speed limits. Click "OK" to apply the settings immediately.

b) On CentOS 6.5, install curlftpfs, which allows mounting a remote FTP server as a local file system.

wget http://skylineservers.dl.sourceforge.net/project/curlftpfs/curlftpfs/0.9.2/curlftpfs-0.9.2.tar.gz

tar -zxvf curlftpfs-0.9.2.tar.gz
cd curlftpfs-0.9.2
./configure

During the configure process, I noticed missing glib, fuse, and libcurl libraries. Use the following command to install these libraries (this includes their C++ development libraries, dynamic and static libraries, and possibly Python development libraries):

yum install -y glib* fuse* libcurl*

Continue installing curlftpfs:

make -j4
make install

Next, use the curlftpfs command to mount the Windows FTP server.

The format of the curlftpfs command is as follows. The "-o allow_other" option grants access to other users, meaning that the mounted NFS from the FTP server can be accessed by other users, allowing them to view the directory structure, operate on directories, and manage files.

curlftpfs ftp-user:ftp-pass@ftp-server-location /localDirPath/ -o allow_other

Execute the following command:

curlftpfs admin:123456@192.168.100.200 /work/onvif/ -o allow_other

Navigate back to the Linux local onvif directory and check the contents of the directory:

cd; cd /work/onvif; ll

As shown in the image, the /work/onvif/ directory was initially empty. After mounting, the file list displayed matches the contents of the admin user's root directory on the Windows FTP server.

Finally, add to startup.

vim /etc/fstab

Add the following line:

curlftpfs#admin:123456@192.168.100.200 /work/onvif fuse allow_other,uid=0,gid=0 0 0

Restart the Linux system.

Tags: centos FTP Mount Linux filezilla

Posted on Sat, 07 Nov 2026 16:46:17 +0000 by mfindlay