centos挂载ntfs文件系统

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 users
You can install EPEL by running yum install epel-release. The package is included in the CentOS Extras repository, enabled by default.
 
接下来正式安装ntfs-3g:  yum install ntfs-3g fuse
[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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值