惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - 学海无涯

在CentOS上安装和部署Shiny Server Hibernate实体生成JSON的问题及解决 在CentOS上安装并运行SparkR CentOS 6主机上的RStudio Server安装步骤 Oracle用户密码过期后重置SYS用户密码 在CentOS中将/var等已有目录挂载到新添加的硬盘 CentOS中的常用命令 Java在Web项目中读取properties文件 Druid连接池初探 安装和配置CentOS时钟同步服务 在CentOS中安装中文支持 CentOS常见问题 CentOS MySQL 配置 显示远程网站上的图片 【转载】我们什么时候结婚 纪念新生命诞生 真爱的四个阶段 【转贴词解】富士山下 与寂寞有染,与爱情无关
在CentOS 6.x中支持exfat格式的U盘(移动硬盘)
学海无涯 · 2014-06-18 · via 博客园 - 学海无涯

参考资料:http://linux.cn/article-1503-1.html

CentOS系列一直没有默认支持使用exfat格式的大容量U盘(移动硬盘),但可以通过添加fuse-exfat模块来支持,步骤如下:

1、下载fuse-exfat支持软件:

exfat支持是通过fuse模块的方式支持的,其项目地址是: https://code.google.com/p/exfat/  ,当前版本是:1.0.1。

目前exfat的支持已经是全功能支持,支持读写。

可以下载源代码包,并自行使用scons和gcc编译,也可以在rpmfusion下载源代码RPM,然后通过构建RPM来安装。这里采用构建RPM的方式(这样安装卸载都很方便)。

下载地址:http://download1.rpmfusion.org/free/el/updates/6/SRPMS/repoview/index.html

分别下载:fuse-exfat-1.0.1-2.el6.src.rpm 和 exfat-utils-1.0.1-2.el6.src.rpm

2、编译安装:

编译前,请先检查系统,如果系统中没有scons和gcc,请通过yum安装:

$ sudo yum install scons gcc

这个软件是fuse模块,编译需要fuse-devel包支持:

$ sudo yum install fuse-devel

下载后,安装源代码RPM:

$ rpm -ivh fuse-exfat-1.0.1-2.el6.src.rpm exfat-utils-1.0.1-2.el6.src.rpm

在主目录下,会出现rpmbuild目录:

$ cd ~/rpmbuild/SPECS

$ rpmbuild -ba fuse-exfat.spec

$ rpmbuild -ba exfat-utils.spec

构建完成后,即可在 ~/rpmbuild/RPMS里面找到生成的RPM(根据系统架构,分别在x86_64或i386目录下,其中名字中带有debuginfo的包不必安装):

$ cd ~/rpmbuild/RPMS/x86_64

$ sudo rpm -ivh fuse-exfat-1.0.1-2.el6.x86_64.rpm exfat-utils-1.0.1-2.el6.x86_64.rpm

这样就安装完成了。

3、挂载:

接好U盘(移动硬盘)后,用fdisk -l 或 more /proc/partitions查看系统的硬盘和硬盘分区情况。

可以通过以下命令来挂载exfat的U盘(移动硬盘)了:

$ sudo mount.exfat /dev/sdXn /mnt

其中sdXn中的X代表你的U盘(移动硬盘)设备名,n代表分区号,比如:/dev/sdb1这样。

此外,为了方便,你可以将以上安装在/usr/sbin下的命令在/sbin下做个符号链接:

$ sudo ln -s /usr/sbin/mount.exfat /sbin/mount.exfat

便于直接使用mount来安装:

$ sudo mount -t exfat /dev/sdXn /mnt

4、自动挂载:

修改 /etc/fstab 实现自动挂载,添加:

/dev/sdXn /mnt exfat defaults 0 0

5、解除挂载:

# umount /mnt