标签:
插入U盘,调试串口会显示:
[root@FriendlyARM code]# usb 1-1: new full speed USB device using s3c2410-ohci 4
usb 1-1: New USB device found, idVendor=0951, idProduct=1666
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: DataTraveler 3.0
usb 1-1: Manufacturer: Kingston
usb 1-1: SerialNumber: 60A44C3D7ECDBE205974C700
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sdb] 30712320 512-byte logical blocks: (15.7 GB/14.6 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb4
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
不会实现自动挂载,挂载要手动挂载。
创建挂载目录 mkdir /mnt/udisk
[root@FriendlyARM /]# cat /proc/partitions
major minor #blocks name
31 0 256 mtdblock0
31 1 128 mtdblock1
31 2 5120 mtdblock2
31 3 256640 mtdblock3
31 4 262144 mtdblock4
8 0 15356160 sda
8 4 15356032 sda4
可见我的U盘是sda sda4
mount /dev/sda4 /mnt 即可。
标签:
原文地址:http://www.cnblogs.com/ht-beyond/p/4316053.html