1,CentOS默認源里沒有ntfs3g,想要添加ntfs支持,需要自己下載編譯安裝或者加源yum安裝。我這里使用的是添加aliyun的epel源來yum安裝的方式。
2,添加epel yum源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
3,安裝ntfs-3g
yum -y install ntfs-3g
4,掛載ntfs類型的文件系統
mount -t ntfs /dev/sdb2 /mnt/winC
5,查看是否掛載成功
df -lhT
6,寫入fstab中,使其開機自動掛載
vi /etc/fstab
/dev/sdb1 /mnt/winC ntfs-3g rw,umask=0000,defaults 0 0
7,重啟再次查看是否自動掛載
df -lhT