ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

centos服务器上挂载exFat U盘

2021-12-06 14:34:49  阅读:228  来源: 互联网

标签:tmpfs U盘 centos exFat bytes dev 512 root 4096


有些场景,我们需要在服务器上插入U盘,但是现在的U盘或者移动硬盘,大多都是exFat格式的,有时候linux系统识别不了,可以按照以下方式挂载。

1、安装nux repo(可以不装)

yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

2、安装fuse包

yum install exfat-utils fuse-exfa -y

3、插u盘,fdisk -l 看看u盘是否读取成功

[root@localhost data]# fdisk -l
 
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x00053782
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048  1953523711   976248832   8e  Linux LVM
 
Disk /dev/mapper/centos-root: 995.4 GB, 995379642368 bytes, 1944100864 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
 
 
Disk /dev/mapper/centos-swap: 4294 MB, 4294967296 bytes, 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
 
 
Disk /dev/sdb: 512.1 GB, 512076283904 bytes, 1000148992 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disk label type: dos
Disk identifier: 0x16f2a91f
 
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.
[root@localhost data]#
# 发现已经有了sdb1,读取成功

4、挂载

[root@localhost data]# mount -t exfat /dev/sdb1 /mnt
FUSE exfat 1.2.7
[root@localhost data]# df -Th
Filesystem              Type      Size  Used Avail Use% Mounted on
devtmpfs                devtmpfs  3.8G     0  3.8G   0% /dev
tmpfs                   tmpfs     3.8G     0  3.8G   0% /dev/shm
tmpfs                   tmpfs     3.8G  298M  3.5G   8% /run
tmpfs                   tmpfs     3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/mapper/centos-root xfs       927G  243G  685G  27% /
/dev/sda1               xfs       494M  144M  350M  30% /boot
tmpfs                   tmpfs     771M     0  771M   0% /run/user/0
/dev/sdb1               fuseblk   477G  9.0M  477G   1% /mnt
[root@localhost data]# cd /mnt/
[root@localhost mnt]# ls
System Volume Information
[root@localhost mnt]# ll
total 1024
drwxrwxrwx. 1 root root 1048576 Dec 21 11:18 System Volume Information
[root@localhost mnt]#

挂载成功,可以开始使用了。

标签:tmpfs,U盘,centos,exFat,bytes,dev,512,root,4096
来源: https://www.cnblogs.com/doublexi/p/15649729.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有