首页 > Web开发 > 详细

centos挂载ntfs文件系统

时间:2018-04-20 23:13:42      阅读:254      评论:0      收藏:0      [点我收藏+]

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盘,成功识别。

centos挂载ntfs文件系统

原文:https://www.cnblogs.com/xytotem/p/8893687.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!