我有关于usb的内核日志,但是如何访问它。/dev中没有设备注册..?怎么弄到这个..?和配置的anabledin内核。
在“设备驱动程序”下
在"USB支持“下启用"USB海量存储支持”(可选),在"SCSI设备支持->“启用"SCSI磁盘支持”下启用"USB海量存储详细调试“
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 发布于 2013-09-17 03:40:45
@Amar,在内核日志中,将查找ex文件系统中连接到USB大容量存储设备的位置的信息:它可以是sda,也可以是sdb或sdc。检查并使用挂载命令挂载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/sdc4 1或/dev/sdc4 2或/dev/sdc4 3或/dev/sdc4 4分区。
https://stackoverflow.com/questions/18826757
复制相似问题