Mount an NTFS file system to CentOS
Install required components
Although the old ntfs read/write mode can easily eat your data, the ntfs-3g seems safe to read and write. For more information, see the ntfs-3g web page.
From centos 5.4 (2.6.18-164 or an updated kernel), the fuse module is included in the kernel. Therefore, you no longer needDkmsAndDkms-fuse. If you have installed dkms-fuse before, use the yum remove dkms-fuse command to uninstall it. Please note that CentOS-4 users need these two components.
Make sure that you have installed the rpmforge software library. Otherwise, refer to the "software library" page.
Install the following components.
yum install fuse fuse-ntfs-3g
If the rpmforge software library is disabled by default,
yum --enablerepo=rpmforge install fuse fuse-ntfs-3g
Note to CentOS-5 users: if you are still using CentOS5.3 or an older version, you need to install kmod-fuse from ELRepo.
The EPEL software library provides newer NTFS components for CentOS-7 and CentOS-6. EPEL also applies to CentOS-5. To install the software, enable the software library according to the software library page, and then:
yum install ntfs-3g
If you choose to enable the EPEL to be disabled by default
yum --enablerepo epel install ntfs-3g
You may want to execute
yum install ntfsprogs ntfsprogs-gnomevfs
To add additional features. (For example, you can use ntfsclone to copy ntfs partitions to increase space .)
Mount an NTFS file system
Assume that your ntfs file system is/Dev/sda1And you will mount it in/Mymnt/win, Perform the following steps.
First, create a mount point.
mkdir /mymnt/win
Edit/Etc/fstabAs follows. Read-Only mounting:
/dev/sda1 /mymnt/win ntfs-3g ro,umask=0222,defaults 0 0
Read-write mounting:
/dev/sda1 /mymnt/win ntfs-3g rw,umask=0000,defaults 0 0
Now you can mount it. Run:
mount /mymnt/win
Centosplus kernel users
Starting from the CentOS-5.3, The centoplus (zh/Repositories/CentOSPlus) kernel does not enable the NTFS module. This is because NTFS within 5.3 cannot operate. See https://bugzilla.redhat.com/show_bug.cgi for details? Id = 481495. If you want to use the NTFS module from the CentOS kernel, you can install kmod-ntfs from the ELRepo program. However, unlike ntfs-3g, the ntfs module of the affiliated kernel only provides extremely limited write functionality. The following text comes from the Kconfig file of the kernel (thanks to AlanBartlett for providing this data ):
「 The only supported operation is to rewrite the existing file without changing the length. It is impossible to create files and directories, or delete or change names. Note that only files with special notes can be written. Therefore, you may find that data cannot be written into a file that is very small (less than 500 characters .」
The following description applies to CentOS 5.2 or an earlier version.
In the CentOSPlus kernel, ntfs and fuse kernel modules are enabled at the same time. The main difference between ntfs and ntfs-3g is that the former is read-only, and the latter can read and write. Therefore, if you do not need permissions to write data to the ntfs file system, you do not need to install additional components. You only need/Etc/fstabAdd this line in:
/dev/sda1 /mymnt/win ntfs ro,umask=0222,defaults 0 0
If you want read and write permissions, you need fuse-ntfs-3g components, but since the fuse module is provided through the kernel, you do not need dkms components:
yum install fuse fuse-ntfs-3g
However, the fuse module included in CentOS 5 (as of April August 2007) generates a message: WARNING: Deficient FUSE kernel module detected. It can still be operated, but we recommend the RPMforge internal (newer) modules. In addition, you should upgrade to the latest kernel that does not include this problem.
Therefore, execute:
yum install fuse fuse-ntfs-3g dkms dkms-fuse
Replace the existing version with the fuse kernel module in RPMforge.
For more information, see:
Http://wiki.linux-ntfs.org/doku.php? Id = ntfs-en # can_ I _mount_an_ntfs_volume (read-only mounting)