CentOS7 挂载NTFS分区

CentOS上默认是不支持挂载NTFS格式的分区的,需要安装ntfs-3g这个程序就可以对ntfs分区进行读写了。

安装ntfs-3g

0、判断ntfs-3g是否已安装

    1、rpm包安装的,可以用rpm -qa看到,如果要查找某软件包是否安装,用 rpm -qa | grep “软件或者包的名字”:

       [ABAO007@localhost ~]$ rpm -qa | grep ntfs-3g

       [ABAO007@localhost ~]$ 


    2、yum方法安装的,可以用yum list installed查找,如果是查找指定包,命令后加 | grep “软件名或者包名”: 

       [ABAO007@localhost ~]$ yum list installed | grep ntfs-3g

       [ABAO007@localhost ~]$ 


    3、如果是以源码包自己编译安装的,例如.tar.gz或者tar.bz2形式的,这个只能看可执行文件是否存在了,上面两种方法都看不到这种源码形式安装的包。如果是以root用户安装的,可执行程序通常都在/sbin:/usr/bin目录下。

1、添加aliyun的epel源

    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

2、yum 安装ntfs-3g

     yum install ntfs-3g

3、判断 yum 安装ntfs-3g是否成功

    [root@localhost ABAO007]# yum list installed | grep ntfs-3g

    ntfs-3g.x86_64                         2:2016.2.22-3.el7               @epel 

本文 暂无 评论

回复给

Top