Skip to content

Instantly share code, notes, and snippets.

@zoqaeski
Created October 19, 2012 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoqaeski/3916478 to your computer and use it in GitHub Desktop.
Save zoqaeski/3916478 to your computer and use it in GitHub Desktop.
dmesg logs for USB devices
// Plugging in HUAWEI E160E modem results in this:
[ 2182.463046] usb 3-1: new high-speed USB device number 3 using xhci_hcd
[ 2182.490036] usb 3-1: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2182.490047] usb 3-1: ep 0x1 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2182.496871] scsi6 : usb-storage 3-1:1.0
[ 2182.499545] usb 3-1: USB disconnect, device number 3
[ 2189.255155] usb 3-1: new high-speed USB device number 4 using xhci_hcd
[ 2189.282064] usb 3-1: ep 0x87 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2189.282076] usb 3-1: ep 0x5 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2189.282087] usb 3-1: ep 0x6 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2189.282097] usb 3-1: ep 0x88 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2189.291639] scsi11 : usb-storage 3-1:1.4
[ 2189.292562] scsi12 : usb-storage 3-1:1.5
[ 2189.366506] usbcore: registered new interface driver usbserial
[ 2189.366988] usbcore: registered new interface driver usbserial_generic
[ 2189.367109] USB Serial support registered for generic
[ 2189.367125] usbserial: USB Serial Driver core
[ 2189.388482] usbcore: registered new interface driver option
[ 2189.388996] USB Serial support registered for GSM modem (1-port)
[ 2189.389451] option 3-1:1.0: GSM modem (1-port) converter detected
[ 2189.389948] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 2189.390007] option 3-1:1.1: GSM modem (1-port) converter detected
[ 2189.390267] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 2189.390314] option 3-1:1.2: GSM modem (1-port) converter detected
[ 2189.390554] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 2189.390599] option 3-1:1.3: GSM modem (1-port) converter detected
[ 2189.391157] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 2190.296458] scsi 11:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 2190.298284] scsi 12:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
[ 2190.319014] sr1: scsi-1 drive
[ 2190.319136] sd 12:0:0:0: [sdb] Attached SCSI removable disk
[ 2190.319494] sr 11:0:0:0: Attached scsi CD-ROM sr1
[ 2287.039627] usb 1-2: new high-speed USB device number 3 using xhci_hcd
[ 2287.066635] usb 1-2: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2287.066648] usb 1-2: ep 0x1 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2287.072451] scsi13 : usb-storage 1-2:1.0
[ 2287.073332] usb 1-2: USB disconnect, device number 3
[ 2293.875404] usb 1-2: new high-speed USB device number 4 using xhci_hcd
[ 2293.902169] usb 1-2: ep 0x87 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2293.902180] usb 1-2: ep 0x5 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2293.902191] usb 1-2: ep 0x6 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2293.902200] usb 1-2: ep 0x88 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 2293.908198] option 1-2:1.0: GSM modem (1-port) converter detected
[ 2293.908871] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
[ 2293.909259] option 1-2:1.1: GSM modem (1-port) converter detected
[ 2293.909436] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
[ 2293.909770] option 1-2:1.2: GSM modem (1-port) converter detected
[ 2293.909932] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
[ 2293.910227] option 1-2:1.3: GSM modem (1-port) converter detected
[ 2293.910380] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3
[ 2293.918360] scsi18 : usb-storage 1-2:1.4
[ 2293.919368] scsi19 : usb-storage 1-2:1.5
[ 2294.922969] scsi 18:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 2294.924777] scsi 19:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
[ 2294.933888] sr1: scsi-1 drive
[ 2294.934673] sr 18:0:0:0: Attached scsi CD-ROM sr1
[ 2294.934702] sd 19:0:0:0: [sdb] Attached SCSI removable disk
[ 2356.489545] usb 5-1: new high-speed USB device number 5 using ehci_hcd
[ 2356.628894] scsi20 : usb-storage 5-1:1.0
[ 2356.629556] usb 5-1: USB disconnect, device number 5
[ 2363.348556] usb 5-1: new high-speed USB device number 6 using ehci_hcd
[ 2363.487996] option 5-1:1.0: GSM modem (1-port) converter detected
[ 2363.488267] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 2363.488815] option 5-1:1.1: GSM modem (1-port) converter detected
[ 2363.489090] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 2363.489567] option 5-1:1.2: GSM modem (1-port) converter detected
[ 2363.490014] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 2363.490686] option 5-1:1.3: GSM modem (1-port) converter detected
[ 2363.490891] usb 5-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 2363.492484] scsi25 : usb-storage 5-1:1.4
[ 2363.494278] scsi26 : usb-storage 5-1:1.5
[ 2364.497410] scsi 25:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 2364.498396] scsi 26:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
[ 2364.508610] sr1: scsi-1 drive
[ 2364.509319] sr 25:0:0:0: Attached scsi CD-ROM sr1
[ 2364.509723] sd 26:0:0:0: [sdb] Attached SCSI removable disk
// The following is the output from dmesg plugging in my external HDD:
// Left USB Port #1
[ 970.940565] xhci_hcd 0000:00:10.1: Timeout while waiting for address device command
[ 976.130922] xhci_hcd 0000:00:10.1: Timeout while waiting for address device command
[ 976.333749] usb 4-1: device not accepting address 2, error -62
[ 976.334130] xhci_hcd 0000:00:10.1: Bad Slot ID 1
[ 976.334138] xhci_hcd 0000:00:10.1: Could not allocate xHCI USB device data structures
[ 976.334148] hub 4-0:1.0: couldn't allocate port 1 usb_device
// Left USB Port #2
[ 1071.621533] xhci_hcd 0000:00:10.0: Timeout while waiting for address device command
[ 1076.811929] xhci_hcd 0000:00:10.0: Timeout while waiting for address device command
[ 1077.014749] usb 2-2: device not accepting address 2, error -62
[ 1077.015043] xhci_hcd 0000:00:10.0: Bad Slot ID 1
[ 1077.015047] xhci_hcd 0000:00:10.0: Could not allocate xHCI USB device data structures
[ 1077.015054] hub 2-0:1.0: couldn't allocate port 2 usb_device
// Right USB Port
[ 1126.005315] usb 5-1: new high-speed USB device number 3 using ehci_hcd
[ 1126.186086] usbcore: registered new interface driver uas
[ 1126.189890] Initializing USB Mass Storage driver...
[ 1126.190355] scsi2 : usb-storage 5-1:1.0
[ 1126.190727] usbcore: registered new interface driver usb-storage
[ 1126.190731] USB Mass Storage support registered.
[ 1127.189979] scsi 2:0:0:0: Direct-Access Seagate Portable SF06 PQ: 0 ANSI: 4
[ 1127.191699] sd 2:0:0:0: [sdb] 2930277164 512-byte logical blocks: (1.50 TB/1.36 TiB)
[ 1127.193700] sd 2:0:0:0: [sdb] Write Protect is off
[ 1127.193709] sd 2:0:0:0: [sdb] Mode Sense: bf 00 00 00
[ 1127.194560] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1127.241193] sdb: sdb1 sdb2
[ 1127.243792] sd 2:0:0:0: [sdb] Attached SCSI disk
// However, plugging in a flash drive (Verbatim Store'N'Go) into all three ports doesn't output anything unusual:
// Left USB Port #1
[ 1689.742443] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[ 1689.761394] usb 3-1: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 1689.761408] usb 3-1: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 1689.763363] scsi3 : usb-storage 3-1:1.0
[ 1691.690110] scsi 3:0:0:0: Direct-Access Verbatim STORE N GO 5.00 PQ: 0 ANSI: 4
[ 1692.778214] sd 3:0:0:0: [sdc] 15630336 512-byte logical blocks: (8.00 GB/7.45 GiB)
[ 1692.778398] sd 3:0:0:0: [sdc] Write Protect is off
[ 1692.778402] sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
[ 1692.778588] sd 3:0:0:0: [sdc] No Caching mode page present
[ 1692.778591] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 1692.780086] sd 3:0:0:0: [sdc] No Caching mode page present
[ 1692.780089] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 1692.806376] sdc: sdc1
[ 1692.809112] sd 3:0:0:0: [sdc] No Caching mode page present
[ 1692.809116] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[ 1692.809120] sd 3:0:0:0: [sdc] Attached SCSI removable disk
// Left USB Port #2
[ 1829.817397] usb 1-2: new high-speed USB device number 2 using xhci_hcd
[ 1829.836775] usb 1-2: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 1829.836784] usb 1-2: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes
[ 1829.841089] scsi4 : usb-storage 1-2:1.0
[ 1831.768531] scsi 4:0:0:0: Direct-Access Verbatim STORE N GO 5.00 PQ: 0 ANSI: 4
[ 1832.853778] sd 4:0:0:0: [sdc] 15630336 512-byte logical blocks: (8.00 GB/7.45 GiB)
[ 1832.853995] sd 4:0:0:0: [sdc] Write Protect is off
[ 1832.854003] sd 4:0:0:0: [sdc] Mode Sense: 23 00 00 00
[ 1832.854223] sd 4:0:0:0: [sdc] No Caching mode page present
[ 1832.854229] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[ 1832.855891] sd 4:0:0:0: [sdc] No Caching mode page present
[ 1832.855898] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[ 1832.883063] sdc: sdc1
[ 1832.886277] sd 4:0:0:0: [sdc] No Caching mode page present
[ 1832.886281] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[ 1832.886284] sd 4:0:0:0: [sdc] Attached SCSI removable disk
// Right USB Port
[ 2115.686272] usb 5-1: new high-speed USB device number 4 using ehci_hcd
[ 2115.814504] scsi5 : usb-storage 5-1:1.0
[ 2117.820803] scsi 5:0:0:0: Direct-Access Verbatim STORE N GO 5.00 PQ: 0 ANSI: 4
[ 2118.942811] sd 5:0:0:0: [sdb] 15630336 512-byte logical blocks: (8.00 GB/7.45 GiB)
[ 2118.943303] sd 5:0:0:0: [sdb] Write Protect is off
[ 2118.943307] sd 5:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 2118.943802] sd 5:0:0:0: [sdb] No Caching mode page present
[ 2118.943805] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 2118.947563] sd 5:0:0:0: [sdb] No Caching mode page present
[ 2118.947571] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 2118.974323] sdb: sdb1
[ 2118.977108] sd 5:0:0:0: [sdb] No Caching mode page present
[ 2118.977119] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 2118.977126] sd 5:0:0:0: [sdb] Attached SCSI removable disk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment