centos系统默认不能识别ntfs文件系统,比如插入u盘,或者windows/linux双系统,都读不出来。经过搜索阅读centos wiki得知,可以安装ntfs-3g来使centos支持挂载ntfs文件系统。
<!> While older ntfs drivers were prone to eat your data in r/w-mode, ntfs-3g seems to be r/w safe. See the ntfs-3g page for more information. The EPEL repository carries ntfs-3g packages for CentOS-7 and CentOS-6. To install, after enabling the EPEL repo per the Repositories page:
1, 官网下载:ntfs-3g
英文网站,粗略一观本人没有找到下载链接,遂放弃,改为yum安装。
2,yum安装ntfs-3g
要使用yum安装ntfs-3g需要先添加第三方存储库: EPEL,根据文档介绍运行如下命令:
[root@localhost Downloads]# yum --enablerepo = extras install epel-release Loaded plugins: fastestmirror, langpacks Error getting repository data for =, repository not found [root@localhost Downloads]# yum --enablerepo = extras install epel-release.noarch Loaded plugins: fastestmirror, langpacks Error getting repository data for =, repository not found
但是无论是执行文档所说的命令还是我电脑系统自动补全的命令,都不成功,于是继续阅读EPEL官方文档
You may retrieve signed binary configuration files from one the above two links (varying by the major release number of the installation target machine). They may be automatically installed by root thus:
- RHEL/CentOS 6:
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
- RHEL/CentOS 7:
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
按照以上快速开始部分的说明执行命令,成功安装。或者你也可以直接运行: yum install epel-release
NOTE for CentOS usersYou can install EPEL by running yum install epel-release. The package is included in the CentOS Extras repository, enabled by default.
[root@localhost Downloads]# yum install ntfs-3g fuse Loaded plugins: fastestmirror, langpacks epel/x86_64/metalink | 7.5 kB 00:00 ...... Installed: ntfs-3g.x86_64 2:2017.3.23-1.el7 Updated: fuse.x86_64 0:2.9.2-8.el7 Complete!
安装完成之后,再插入u盘,成功识别。
原文:https://www.cnblogs.com/xytotem/p/8893687.html