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:如果提示没有gcc,则yum install gcc* 将编译环境安装好在执行一次上面的命令
The above command can also be completed in three times.
./configure
Make
Make install
3.挂载NTFS
mount -t ntfs-3g /dev/sda2 /mnt/Windows
ps:mount重启之后就会失效
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:如果不知道是sda几,用fdisk -l 查看下分区表就可以了。
If there is any mistake, please point out.
Reference article:
Http://blog.rekfan.com/articles/137.html
http://www.tuxera.com/community/ntfs-3g-download/
This article is from the "Bckong" blog, make sure to keep this source http://bckong.blog.51cto.com/5092126/1570507
Mount the NTFS file system under CentOS 7 and automatically mount the boot