一、FAT格式的U盘

插入U盘

[root@localhost ~]# dmesg | grep usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usb usb1: New USB device found, idVendor=1d6b, idProduct=
usb usb1: New USB device strings: Mfr=, Product=, SerialNumber=
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.-.el6.x86_64 ehci_hcd
usb usb1: SerialNumber: ::0b.
usb usb1: configuration # chosen from choice
usb usb2: New USB device found, idVendor=1d6b, idProduct=
usb usb2: New USB device strings: Mfr=, Product=, SerialNumber=
usb usb2: Product: OHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.-.el6.x86_64 ohci_hcd
usb usb2: SerialNumber: ::06.0
usb usb2: configuration # chosen from choice
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.:USB HID core driver
usb -: new high speed USB device number using ehci_hcd
usb -: New USB device found, idVendor=, idProduct=
usb -: New USB device strings: Mfr=, Product=, SerialNumber=
usb -: Product: DataTraveler 3.0
usb 1-1
: Manufacturer: Kingston
usb -: SerialNumber: 60A44C3FACC9F21109990161
usb -: configuration # chosen from choice
usbcore: registered new interface driver usb-storage
usb-storage: device found at
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
usb -: USB disconnect, device number
[root@localhost ~]# fdisk -l
Disk /dev/sdb: 15.5 GB, bytes
heads, sectors/track, cylinders
Units = cylinders of * = bytes
Sector size (logical/physical): bytes / bytes
I/O size (minimum/optimal): bytes / bytes
Disk identifier: 0xcad4ebea Device Boot Start End Blocks Id System
/dev/sdb4 * 1 1882 15109293 c W95 FAT32 (LBA)
[root@localhost ~]# mkdir /mnt/usb
[root@localhost ~]# mount /dev/sdb4 /mnt/usb/
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root 50G 880M 46G % /
tmpfs .9G .9G % /dev/shm
/dev/sda1 485M 33M 427M % /boot
/dev/mapper/VolGroup-lv_home 65G 180M 62G % /home
/dev/sdb4 15G 5.3G 9.2G 37% /mnt/usb

二、NTFS格式挂载

我自己的移动硬盘为NTFS格式,共3个分区

连接上之后dmesg | grep usb可以看到USB设备已经连接了。

然后centos6.5默认是不识别NTFS分区的(微软专利,得谈合作),所以需要安装NTFSde rpm包

然后我就在https://pkgs.org/下载了fuse-ntfs-3g-2013.1.13-2.el6.rf.x86_64.rpm,然后装了glibc也死活不行,

然后又去https://pkgs.org/下载了fuse-ntfs-3g-2013.1.13-2.el6.rf.x86_64.rpm,执行

yum install -y fuse-ntfs-3g-2013.1.-.el6.rf.x86_64.rpm

然后搞定了。哎!不能求新丫!!!

modprobe usb-storage    #fdisk看不到就执行这条命令
fdisk -l
mount  /dev/sdb2 /mnt/usb/
mount -t ntfs-3g /dev/sdb2 /mnt/usb/
mount.ntfs /dev/sdb2 /mnt/usb/

以上3个命令都可以,只不过不指定mount文件系统的时候系统会多花1s的时间去查看到底是啥系统。

最新文章

  1. Linux之tomcat日志管理
  2. 大商创开通用户和店铺 sql追踪
  3. centos 6.5卸载Mysql
  4. 读书笔记-Autonomous Intelligent Vehicles(一)
  5. mac ulimit
  6. How to: Modify a Project System So That Projects Load in Multiple Versions of Visual Studio
  7. ISO15693协议的Inventory
  8. Java基础知识强化51:经典排序之桶排序(BucketSort)
  9. NSIS API 函数常用备份
  10. margin传递,子元素的上下margin会传递给父级
  11. hibernate查询部分字段转换成实体bean
  12. 20160211.CCPP体系详解(0021天)
  13. C++多线程同步技巧(四)--- 信号量
  14. LodopJS文档式模版的加载和赋值
  15. MySQL 复制表到另一个表
  16. [BZOJ4259]残缺的字符串
  17. CloudSim源代码学习——服务代理商(DatacenterBroker)
  18. 从实践出发:微服务布道师告诉你Spring Cloud与Spring Boot他如何选择
  19. .net写本地文件的一个方法
  20. boot.img的修改

热门文章

  1. mybatis generator为实体类生成自定义注释(读取数据库字段的注释添加到实体类,不修改源码)
  2. Nginx 多进程连接请求/事件分发流程分析
  3. callee 与 caller
  4. Linux命令详解-install
  5. III USP Freshmen ContestH. MaratonIME gets candies
  6. Howto: 在ArcGIS10中将地图文档(mxd文档)批量保存到之前版本
  7. ASP.NET(c#) 日期选择控件的另一种实现方法
  8. [批处理]Oracle启动助手
  9. 判断是否是iPhone5
  10. java基础第9天