Source: http://www.linuxidc.com/Linux/2014-11/109226.htm
Under centos6.7, the verification is successful
First, go to the official website to download the NTFS-3G tool
http://www.tuxera.com/community/ntfs-3g-download/
1. Unzip after downloading
wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2014.2.15.tgz
tar -xvf ntfs-3g_ntfsprogs-2014.2.15.tgz
2. Compile and install
Go to the ntfs-3g_ntfsprogs-2014.2.15 folder
./configure && make && make install
ps: If you are prompted that there is no gcc, then yum install gcc* will install the compilation environment and execute the above command once
The above command can also be executed in three times.
./configure
make
make install
3. Mount NTFS
mount -t ntfs-3g /dev/sda2 /mnt/Windows
ps:mount will fail after restarting
ps: If you don't know the number of sda, just use fdisk -l to check the partition table. The mount point in /etc/fstab cannot have spaces. Even escaping spaces with \ seems to be useless (it is estimated that it was unsuccessful). This is personal experience.
4. CentOS 7 automatically mounts NTFS at boot (of course, if you don't want to mount it automatically, you can skip this step.)
Change /etc/fstab, backup cp /etc/fstab /etc/fstab.bak before changing
/dev/sda1 /mnt/windows ntfs-3g defaults 0 0
ps: If you don't know the number of sda, just use fdisk -l to check the partition table. The mount point in /etc/fstab cannot have spaces. Even escaping spaces with \ seems to be useless (it is estimated that it was unsuccessful). This is personal experience.
For example: There is a mount point in fstab: /mnt/Virtual\ Machines After saving and restarting, it will directly enter the read-only file system. At this time, you cannot modify the content in fstab. You can run the following command, and then restart vi is fine.
mount -n -o remount,rw / Note that there are no spaces between commas and spaces before /.
Then vi fstab delete the mount point with spaces is /mnt/Virtual\ Machines.