xml地图|网站地图|网站标签 [设为首页] [加入收藏]

软件专题

当前位置:美高梅游戏网站 > 软件专题 > CentOS系统挂载FAT32的U盘

CentOS系统挂载FAT32的U盘

来源:http://www.gd-chuangmei.com 作者:美高梅游戏网站 时间:2019-09-03 22:04

Linux挂载U盘步骤如下

Linux挂载U盘步骤如下

1:将U盘插入USB接口,检查是否插好

1:将U盘插入USB接口,检查是否插好

2:用fdisk命令检查分区和USB设备信息

2:用fdisk命令检查分区和USB设备信息

[[email protected] ~]# fdisk -l

[root@wgods ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 121601 976655610 8e Linux LVM

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 121601 976655610 8e Linux LVM

Disk /dev/sdb: 4012 MB, 4012900352 bytes
223 heads, 55 sectors/track, 639 cylinders
Units = cylinders of 12265 * 512 = 6279680 bytes

Disk /dev/sdb: 4012 MB, 4012900352 bytes
223 heads, 55 sectors/track, 639 cylinders
Units = cylinders of 12265 * 512 = 6279680 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 56 640 3580928 c W95 FAT32 (LBA)
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(42, 17, 40) logical=(55, 23, 1)
Partition 1 has different physical/logical endings:
phys=(487, 222, 55) logical=(639, 6, 31)

Device Boot Start End Blocks Id System
/dev/sdb1 * 56 640 3580928 c W95 FAT32 (LBA)
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(42, 17, 40) logical=(55, 23, 1)
Partition 1 has different physical/logical endings:
phys=(487, 222, 55) logical=(639, 6, 31)

通过上面信息我们可以看出USB设备是FAT32格式的,标识为/dev/sdb1

通过上面信息我们可以看出USB设备是FAT32格式的,标识为/dev/sdb1

[[email protected] ~]# fdisk -l | grep FAT32
/dev/sdb1 * 56 640 3580928 c W95 FAT32 (LBA)

[root@wgods ~]# fdisk -l | grep FAT32
/dev/sdb1 * 56 640 3580928 c W95 FAT32 (LBA)

3:在mnt目录下先建立一个usb的目录

3:在mnt目录下先建立一个usb的目录

[[email protected] ~]# cd /mnt/
[[email protected] mnt]# mkdir usb

[root@wgods ~]# cd /mnt/
[root@wgods mnt]# mkdir usb

4:挂载U盘
[[email protected] mnt]# mount -t vfat /dev/sdb1 /mnt/usb

4:挂载U盘 [root@wgods mnt]# mount -t vfat /dev/sdb1 /mnt/usb

挂载成功后,我们可以在/mount/usb下看到相关的内容。

挂载成功后,我们可以在/mount/usb下看到相关的内容。

5:卸载U盘

5:卸载U盘

执行umount命令卸载U盘时,报如下错误“device is busy”,可以用参数l解决问题。当然你也可以用fuser命令解决问题。如下所示

执行umount命令卸载U盘时,报如下错误“device is busy”,可以用参数l解决问题。当然你也可以用fuser命令解决问题。如下所示

[[email protected] ~]# umount /mnt/usb
umount: /mnt/usb: device is busy
umount: /mnt/usb: device is busy

[root@wgods ~]# umount /mnt/usb
umount: /mnt/usb: device is busy
umount: /mnt/usb: device is busy

本文由美高梅游戏网站发布于软件专题,转载请注明出处:CentOS系统挂载FAT32的U盘

关键词:

上一篇:Centos 调优 I/O 优化

下一篇:没有了