0

我得到了关于 USB 的内核日志,但是如何访问它。/dev 中没有设备注册..?如何访问这个..?并配置和启用内核

在“设备驱动程序”下

在“USB Support”下启用“USB Mass Storage Support”(可选)启用“USB Mass Storage verbose debug”在“SCSI device support -->”下启用“SCSI disk support”

usb 1-2: new full speed USB device using lpc178x-ohci and address 2         
usb 1-2: New USB device found, idVendor=8564, idProduct=1000                    
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3               
usb 1-2: Product: Mass Storage Device                                           
usb 1-2: Manufacturer: JetFlash                                                 
usb 1-2: SerialNumber: 74O2LC2HD514SCME 
4

1 回答 1

-1

@Amar,在内核日志中,将找到有关插入的 USB 大容量存储设备在文件系统中的附加位置的信息,例如:它可以是sda 或 sdb 或 sdc。检查并使用 mount 命令挂载 USB 大容量存储sudo mount /dev/sd* <Path where you want to mount USB device>,然后您可以访问 USB 大容量存储。以下是有关 USB 大容量存储连接到何处的内核日志信息

[85508.500115] usb 1-1: new high speed USB device using ehci_hcd and address 3
[85509.110370] usb 1-1: configuration #1 chosen from 1 choice
[85509.112895] scsi4 : SCSI emulation for USB Mass Storage devices
[85509.113486] usb-storage: device found at 3
[85509.113487] usb-storage: waiting for device to settle before scanning
[85514.128615] usb-storage: device scan complete
[85514.137855] scsi 4:0:0:0: Direct-Access Generic- Compact Flash 1.01 PQ: 0 ANSI: 0
[85514.146766] scsi 4:0:0:1: Direct-Access Multiple Flash Reader  1.05 PQ: 0 ANSI: 0
[85514.148945] sd 4:0:0:0: Attached scsi generic sg2 type 0
[85514.149018] sd 4:0:0:1: Attached scsi generic sg3 type 0
[85514.549761] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[85514.558770] sd 4:0:0:1: [sdc] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[85514.586964] sd 4:0:0:1: [sdc] Write Protect is off
[85514.586966] sd 4:0:0:1: [sdc] Mode Sense: 03 00 00 00
[85514.586968] sd 4:0:0:1: [sdc] Assuming drive cache: write through
[85514.711875] sd 4:0:0:1: [sdc] Assuming drive cache: write through
[85514.711880]  sdc: sdc1 sdc2 sdc3 sdc4
[85514.808220] sd 4:0:0:1: [sdc] Assuming drive cache: write through
[85514.808224] sd 4:0:0:1: [sdc] Attached SCSI removable disk

在这种情况下,根据您感兴趣的分区挂载 /dev/sdc1 或 /dev/sdc2 或 /dev/sdc3 或 /dev/sdc4 分区。

于 2013-09-17T03:40:45.287 回答