I. preparations:
Run the following three commands as root or another user:
1. Enter CAT/etc/RedHat-release on the terminal to view the release version. My version is:
Centos release 4.4 (final)
2. Enter uname-R on the terminal to view the kernel version. My version:
2.6.9-42.0.10.el
3. terminal input rpm-Q -- queryformat "% {arch}/N" kernel to view the processor type, which is i686. If the query kernel is followed by a suffix such as SMP, bigmem, and hugemem, replace the kernel. For example, if the suffix is SMP, use kernel-SMP instead of the kernel in the query processor-type command.
2. enable the system to support NTFS
The following command must be run as root:
1. In http://sourceforge.net/project/showfiles.php? Group_id = 13956 download the RPM package based on the released version, kernel version, and processor type you just found. The corresponding file I downloaded is a kernel-module-ntfs-2.6.9-42.0.10.EL-2.1.20-0.rr.10.0.i686.rpm
2. Run the rpm-ihv kernel-module-ntfs-2.6.9-42.0.10.EL-2.1.20-0.rr.10.0.i686.rpm to install this RPM package.
3. Run/sbin/modprobe NTFS to load the kernel module.
4. Run dmesg | grep NTFS to view the NTFS Driver version.
5. Now you can run CAT/proc/filesystems To See That NTFS file systems are supported.
Note:
1. When an NTFS partition is mounted, the-R parameter is used to mount the NTFS partition in read-only mode. to read and write the partition, remove this parameter.
2. Uninstall the NTFS Driver:
A) rpm-Qa | grep-I NTFS view installed RPM packages, such as kernel-module-ntfs-2.6.9-1.667smp-2.1.20-0.fc.1.2
B) rpm-e kernel-module-ntfs-2.6.9-1.667smp-2.1.20-0.fc.1.2 Uninstall this RPM package.
Iii. Mount partitions
1. Check that the partitions on your disk are in the NTFS format:
# Fdisk-l
2. Create a directory:
# Mkdir/mnt/C
# Mkdir/mnt/d
# Mkdir/mnt/E
# Mkdir/mnt/F
# Mkdir/mnt/usbdisk
3. File System Table
# Vi/etc/fstab
Add the following lines:
/Dev/hda1/mnt/C ntfs-3g defaults 0 0
/Dev/hda5/mnt/d ntfs-3g defaults 0 0
/Dev/hda6/mnt/e ntfs-3g defaults 0 0
/Dev/hda6/mnt/F ntfs-3g defaults 0 0
Modify the setting of USB disk to change NTFS to ntfs-3g:
/Dev/sda1/mnt/USB disk ntfs-3g pamconsole, fscontext = system_u: object_r: removable_t, exec, noauto, managed 0 0
Save and exit.
4. Mount the last partition
# Mount/mnt/C
# Mount/mnt/d
# Mount/mnt/E
# Mount/mnt/F
# Mount/mnt/USB disk
Now you can use CD, MNT, and C to perfectly support read/write of nfts.