- Install the nux repo for CentOS 7
yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
- 安装这两个包
yum install exfat-utils fuse-exfat
- 插硬盘,看看是否挂载成功
可以使用 fdisk -l 或 cat /proc/partitions 命令查看
[~]# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
磁盘 /dev/sda:1000.2 GB, 1000204886016 字节,1953525168 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 4096 字节
I/O 大小(最小/最佳):4096 字节 / 4096 字节
磁盘标签类型:gpt
Disk identifier: ***************************
# Start End Size Type Name
1 2048 411647 200M EFI System EFI System Partition
2 411648 2508799 1G Microsoft basic
3 2508800 1953523711 930.3G Linux LVM
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
磁盘 /dev/sdb:1000.2 GB, 1000204886016 字节,1953525168 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 4096 字节
I/O 大小(最小/最佳):4096 字节 / 4096 字节
磁盘标签类型:gpt
Disk identifier: ***************************
# Start End Size Type Name
1 2048 1953523711 931.5G Microsoft basic primary
[~]# cat /proc/partitions
major minor #blocks name
8 0 976762584 sda
8 1 204800 sda1
8 2 1048576 sda2
8 3 975507456 sda3
253 0 52428800 dm-0
253 1 3932160 dm-1
253 2 838860800 dm-2
253 3 80277504 dm-3
8 16 976762584 sdb
8 17 976760832 sdb1
- 找到需要挂载的设备使用mount挂载
mount -t exfat /dev/sdX(X是你的盘号) /mnt/xxx(xxx你的挂载目录)