码迷,mamicode.com
首页 > Web开发 > 详细

centos7中yum安装ntfs-3g

时间:2018-08-09 11:02:50      阅读:2907      评论:0      收藏:0      [点我收藏+]

标签:tfs   开机   epel   .repo   mnt   写入   需要   添加   ntfs   

1,CentOS默认源里没有ntfs3g,想要添加ntfs支持,需要自己下载编译安装或者加源yum安装。我这里使用的是添加aliyun的epel源来yum安装的方式。

2,添加epel yum源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

3,安装ntfs-3g
yum -y install ntfs-3g

4,挂载ntfs类型的文件系统
mount -t /dev/sdb2 /mnt/winC

5,查看是否挂载成功
df -lhT

6,写入fstab中,使其开机自动挂载
vi /etc/fstab
/dev/sdb1 /mnt/winC ntfs-3g rw,umask=0000,defaults 0 0

7,重启再次查看是否自动挂载
df -lhT

centos7中yum安装ntfs-3g

标签:tfs   开机   epel   .repo   mnt   写入   需要   添加   ntfs   

原文地址:http://blog.51cto.com/13718210/2156585

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!