CentOS uses NTFS-3G to load NTFS hard drive
When mounting NTFS Format hard disk CentOS will report the error unknown filesystem type 'ntfs ', then you need to use a third-party plug-in NTFS-3G to load ntfs Format hard disk. The NTFS-3G is an open source software that supports reading and writing NTFS format partitions in Linux, FreeBSD, Mac OS X, NetBSD, and Haiku operating systems. The main steps are as follows:
1. Install gcc and other compiling Environments
Yum-y install gcc automake autoconf libtool make
2. Download installation NTFS-3G
NTFS-3G official site is
wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2013.1.13.tgztar –xvzf ntfs-3g_ntfsprogs-2013.1.13.tgzcd ntfs-3g_ntfsprogs-2013.1.13./configuremakemake install
3. Check the NTFS hard disk partition information. The red lines shown in the figure show my NTFS hard disk information.
Fdisk-l4. mount the partition
mkdir /mnt/ntfsmount -t ntfs-3g /dev/sdb1 /mnt/ntfs
After the partition is mounted, enter the/mnt/ntfs Directory, which is the partition of the mobile hard disk.
5. Detach a partition
umount /dev/sdb1
6. Mount the mobile hard disk automatically at startup and edit the/etc/fstab file.
Cp/etc/fstab/etc/fstabbak # Back up vi/etc/fstab # edit before changing, and add the following information at the end, mount Disk/dev/sdb1/mnt/ntfs ntfs-3g defaults 0 0: wq! # Save and exit
After the device is restarted, the mobile hard disk is automatically mounted.
7. When unmounting umount, the following message is displayed:
Umount:/mnt/upan: device is busy.
(In some cases useful info about processes that use
The device is found by lsof (8) or fuser (1 ))
Solution:
lsof -w /mnt/upan
Command pid user fd type device size/OFF NODE NAME
Bash 31761 root cwd DIR 8192 2316326 120526/mnt/upan/rekfan.com _
Using lsof-w/mnt/upan, we can see that there is a command window in the/mnt/upan/rekfan.com _ 120526 directory, close this window, or exit this mount directory, use umount to unmount the disk.