What should I do if I want to mount the NTFS file system under CentOS 7? We need a ntfs-3g tool and compile it after mount on it, it's that simple.
First go to the official website to download ntfs-3g tools
http://www.tuxera.com/community/ntfs-3g-download/
1. Unzip after download
wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2014.2.15.tgz
TAR-XVF ntfs-3g_ntfsprogs-2014.2.15.tgz
2. Compiling and installing
Go to the ntfs-3g_ntfsprogs-2014.2.15 folder
./configure && make && make install
PS: If the hint does not have GCC, then yum install gcc* installs the compilation environment to execute the command above once
The above command can also be completed in three times.
./configure
Make
Make install
3. Mount NTFS
Mount-t ntfs-3g/dev/sda2/mnt/windows
Ps:mount will expire after reboot
4.CentOS 7 boot automatically mounts NTFS (of course, if you do not want to automatically mount the, you can do this step.) )
Change/etc/fstab, change before backup under Cp/etc/fstab/etc/fstab.bak
/dev/sda1/mnt/windows ntfs-3g Defaults 0 0
PS: If you do not know the number of SDA, use fdisk-l to view the partition table on it. /etc/fstab within the mount point can not have spaces, even if it is used to escape the space seems useless (estimated to be unsuccessful), this is a personal experience.
For example: Fstab has a mount point is:/mnt/virtual\ machines after saving the re-entry directly into the read-only file system, at this time you can not modify the contents of the Fstab, the following command may be run, after the re-VI can be.
Mount-n-O REMOUNT,RW/Note that there are no spaces between commas,/there are spaces in front of them.
Then VI fstab Delete a space of the mount point is/mnt/virtual\ machines on it.
If wrong, please indicate.
Http://www.linuxidc.com/Linux/2014-11/109226.htm
Mount the NTFS file system under CentOS 7 and automatically mount the boot