Because the CentOS default does not recognize the NTFS disk format, so we have to use another software to mount, that is ntfs-3g.
The own Yum source does not have this software, to use the third-party software Park, here I use Ali's Epel.
1. Switch to the system yum directory and download Ali's Epel
[Email protected] ~]# cd/etc/yum.repos.d/
[Email protected] yum.repos.d]# wget Http://mirrors.aliyun.com/repo/epel-7.repo
2. Find the NTFS-3G software available on the current source
[email protected] yum.repos.d]# Yum list ntfs*
loaded plugins: Fastestmirror, LangPacks
Repository Epel is listed more than once in the configuration
Repository Epel-debuginfo is listed more than once in the configuration
Repository Epel-source is listed more than once in the configuration
Loading mirror speeds from cached Hostfile
* elrepo:dfw.mirror.rackspace.com
* epel:mirrors.aliyun.com
Installed Packages
ntfs-3g.x86_64 2:2017.3.23-1.el7 @epel
packages that can be installed
ntfs-3g-devel.x86_64 2:2017.3.23-1.el7 Epel
ntfsprogs.x86_64
3. Installation:
[Email protected] yum.repos.d]# yum-y install ntfs-3g
4. Mount USB Drive
Insert NTFS-formatted USB flash drive, fdisk-l View drive letter, new mount directory and mount
[Email protected] ~]# fdisk-l
disk/dev/sdb:31.1 GB, 31104958464 bytes, 60,751,872 sectors
Units = Sector of 1 * bytes
sector size (logical/Physical): 512 Bytes/512 bytes
I/O size (min/best): 512 Bytes/512 bytes
disk label type: DOS
disk identifier: 0x00000000
device Boot Start End Blocks Id System
/DEV/SDB1 * 2048 60751871 30374912 7 Hpfs/ntfs/exfat
[Email protected] ~]# Mkdir/mnt/ukey
[email protected] ~]# Mount Ntfs-3g/dev/sdb1/mnt/ukey
5. Uninstall the USB flash drive, I heard not to uninstall the words will prompt the format disk-_-"
[Email protected] ~]# UMOUNT/DEV/SDB1
2017-08-18 10:00:35 @sh HP
CENTOS7 mount NTFS disk format USB flash drive