USB flash drive (removable hdd) in CentOS 6.x with exFAT format support

Source: Internet
Author: User
Tags rpmbuild

Reference: http://linux.cn/article-1503-1.html

The CentOS series has not been supported by default with the exFAT format, but can be supported by adding FUSE-EXFAT modules, as follows:

1. Download Fuse-exfat support software:

exFAT support is supported by the Fuse module, and its project address is: https://code.google.com/p/exfat/, the current version is: 1.0.1.

Currently, EXFAT support is fully functional and supports reading and writing.

You can download the source code package and compile it yourself using scons and GCC, or you can download the source code rpm in Rpmfusion and install it by building the RPM. Here is the way to build the RPM (this is convenient for loading and unloading).

: http://download1.rpmfusion.org/free/el/updates/6/SRPMS/repoview/index.html

Download separately: fuse-exfat-1.0.1-2.el6.src.rpm and exfat-utils-1.0.1-2.el6.src.rpm

2. Compile and install:

Before compiling, please check the system, if the system does not have scons and GCC, please install through Yum:

$ sudo yum install scons gcc

This software is a fuse module, compiling requires Fuse-devel package support:

$ sudo yum install Fuse-devel

After downloading, install the source code rpm:

$ RPM-IVH fuse-exfat-1.0.1-2.el6.src.rpm exfat-utils-1.0.1-2.el6.src.rpm

In the home directory, the Rpmbuild directory appears:

$ CD ~/rpmbuild/specs

$ rpmbuild-ba Fuse-exfat.spec

$ rpmbuild-ba Exfat-utils.spec

After the build is complete, you can find the generated rpm in the ~/rpmbuild/rpms (depending on the system architecture, in the x86_64 or i386 directory, where the package with the Debuginfo in the name does not have to be installed):

$ 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

So the installation is complete.

3. Mount:

After the USB drive (mobile hard drive) is connected, use Fdisk-l or more/proc/partitions to view the system's hard disk and hard disk partition.

The following command can be used to mount the exFAT USB drive (removable hard disk):

$ sudo mount.exfat/dev/sdXn/mnt

where x in SDXN represents your USB drive (removable hard drive) device name, n represents the partition number, for example:/DEV/SDB1.

In addition, for convenience, you can use the above commands installed under/usr/sbin to make a symbolic link under/sbin:

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

Easy to install directly using mount:

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

4. Automatic Mounting:

Modify the/etc/fstab implementation to automatically mount and add:

/DEV/SDXn/mnt exfat defaults 0 0

5. Lifting the Mount:

# umount/mnt

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.