Mount exFat in Linux

Source: Internet
Author: User


In Linux, mounting exFat first refers to mounting a mobile hard disk in the exFAT format. Recently, a dual system, one disk is Windows 7, and the hard disk format is exFAT, if you want to access the files under Windows 7 in Linux, the following error occurs: mount failure. # Mount-t exfat/dev/sda2/mnt/d mount: unknown filesystem type 'exfat' this is because partitions in exfat format cannot be recognized on RedHat 6.0. For mobile hard disks or USB flash drives, the files supported by FAT32 cannot exceed 4 GB, so they can only be formatted as exFAT. The following is a record of how to mount various hard disks in exFat format in Linux. 1. install sudo apt-get install subversion scons libfuse-dev gccsvn co http://exfat.googlecode. com/svn/trunk/exfat-read-onlycd exfat-read-onlysconssudo scons installrm-rf exfat-read-only2. mount sudo mount-t exfat-o iocharset = cp936/dev/sda2/mnt/d3. detach sudo umount/mnt/d and mount it in NTFS format, use an open-source software NTFS-3g, which supports reading and writing NTFS-format Partition. It is fast and secure. It supports Windows 2000, XP, 2003, and Vista, and supports all POSIX-compliant disk operations. Ntfs-3g is designed for continuous development, users of various hardware platforms and operating systems need reliable intercommunication and support ntfs Driver, ntfs-3g provides a trusted, functional, high-performance solution. After more than 12 years of development, ntfs-3g has gradually stabilized. # Wget http: // t uxera.com/opensource/ntfs-rj_ntfsprogs-2011.4.12.tgzcompilation installation ntfs-3g # tar zxvf ntfs-3g_ntfsprogs-2011.4.12.tgz # cd ntfs-3g_ntfsprogs-2011.4.12 #. /configure # make installmount file # fdisk-ll ....... device Boot Start End Blocks Id System/dev/sda1 * 1 2600 204800 83 HPFS/NTFS/dev/sda2 5223 1459*75272557 + f extFAT/dev/sda3 ****** ** 37544960 83 Linux/dev/sda4 700*522*4194304 8 2 Linux SWAP ....... from the above view, we know that/dev/sda1 is in NTFS format 1. create a directory for the mount point. For example, create a c directory under the/mnt/directory: # mkdir/mnt/c2. Mount/dev/sda1 to/mnt/c. If we view the/dev/sda1 disk content, the # mount-t ntfs-3g-o nls = utf8 will be found in/mnt/c, umask = 000/dev/sda1/mnt/c boot partition automatic mount should put the command in/etc/fstab/dev/sda1/mnt/c ntfs-3g umask = 000, iocharset = utf8 0 0/dev/sda2/mnt/d exfat umask = 000, iocharset = cp936 0 0 # cp-r-f srcDir dstDir // copy the directory file. # Rm-rf dstDir // Delete the directory file.
Unmount a disk: umount command # umount/mnt/c # umount/mnt/d Note: mount-t file format-o option parameter disk partition mount point directory name for example: mount-t vfat-o iocharset = utf8, umask = 000/dev/sda2/mnt/d, for example, mount-t ntfs-o nls = utf8, umask = 000/dev/sda1/mnt/c-t ntfs indicates that the file system format is ntfs;-o is an option, nls = utf8, native Language Support (Local Language Support) is utf8, which is also commonly used Language encoding. It can also be changed to iocharset = utf8; RedHat Enterprise 6.0 the default Language encoding is utf8, in this way, Chinese characters are displayed. umask = 000 indicates that all user groups can read and write data. However, because NTFS is not secure in Linux, it can only be read and cannot be written.

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.