当前位置首页 > CentOS知识

CentOS6.4x84挂载U盘

阅读次数:195 次  来源:admin  发布时间:

root用户登录

1、

查看磁盘情况:

fdisk -l

信息如下:

[root@CentOS6 ~]# fdisk -l

Disk /dev/sda: 128.8 GB, 128849018880 bytes
255 heads, 63 sectors/track, 15665 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d5240

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       15666   125316096   8e  Linux LVM

Disk /dev/mapper/vg_centos6-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_centos6-lv_swap: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 15.9 GB, 15943233536 bytes
82 heads, 55 sectors/track, 6904 cylinders
Units = cylinders of 4510 * 512 = 2309120 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        6905    15569532+   c  W95 FAT32 (LBA)

Disk /dev/mapper/vg_centos6-lv_home: 72.5 GB, 72519516160 bytes
255 heads, 63 sectors/track, 8816 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@CentOS6 ~]# 

如果看不到U盘的话,尝试 加载USB模块 "modprobe usb-storage" 。

2、

创建一个文件夹"/mnt/usb_zz"

3、

挂载U盘:

mount -t vfat /dev/sdb1 /mnt/usb_zz

ZC:(1)、这里,没有"-t vfat"的话,会提示 指定文件系统。(2)、fat32 的文件系统 对应的参数就是 vfat。

4、

卸载U盘

umount /mnt/usb_zz

执行umount命令卸载U盘时,报如下错误“device is busy”,

可以用参数l解决问题:(ZC: 这里是小写的字母L)

umount -f /mnt/usb_zz

umount -l /mnt/usb_zz

也可以用fuser命令解决问题。

5、

参考网址:

http://www.jb51.net/article/35225.htm

http://blog.csdn.net/wonderful19891024/article/details/5724649

C

CentOS6.4x84挂载U盘

上一篇:在Fedora中搭建一个一体化Kubernetes
下一篇:SSD+机械硬盘装CentOS分区的问题