CentOS6.4x84挂载U盘

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

 

转载于:https://www.cnblogs.com/vmskill/p/5250339.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值