You are not logged in.
I have this thing where sometimes USB sticks, SD cards etc are detected and mounted properly, and sometimes not at all. Seemingly after boot things work, and then stop once the computer has sat around for a bit. Its a laptop so its suspended and resumed a fair amount. Though there is no pattern I can discern to this, cold bootings, power cord, anything like that doesn't seem to regularly restore the functioning of USB devices. When not working nothing shows up in dmesg, and the lights on the USB key don't come on.
Interesting, and possibly related or not, when I was looking in log files to see if anything was logged, most of them are blank.
USB modules are loaded and not complaining.
When things are working, everything works fine...
djollk
Offline
And when it works, dmesg has meaningful messages describing the goodness?
I assume lsusb is silent as to the new device when it fails ?
Can you post the output of lspci when things are working?
Is the lspci output the same when it is in the failed state?
Is your SD card being read through the USB system, or is it a separate PCI device?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
So this is when things work. I will have to post later when things stop working.
lspci:
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
0c:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)
dmesg (just the tail):
[ 7409.065512] sd 12:0:0:0: [sdb] Write Protect is off
[ 7409.065518] sd 12:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 7409.065522] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[ 7409.069376] sr1: scsi3-mmc drive: 8x/40x writer xa/form2 cdda tray
[ 7409.069580] sr 12:0:0:1: Attached scsi CD-ROM sr1
[ 7409.069740] sr 12:0:0:1: Attached scsi generic sg3 type 5
[ 7409.070871] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[ 7409.072990] sdb: sdb1
[ 7409.076610] sd 12:0:0:0: [sdb] Assuming drive cache: write through
[ 7409.076617] sd 12:0:0:0: [sdb] Attached SCSI removable disk
It calls it a cdrom - but it seems to work.
lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 008: ID 0781:5406 SanDisk Corp. Cruzer Micro U3
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Offline
Okay, dmesg works as expected when things are working -- Good. Unfortunately, I need a few more lines to determine which USB bus it is on; but it is not a big deal. I can see it is on the USB 2.0 bus as opposed to a USB 1.1 bus.
It is normal for Sandisk devices to mount as a CDROM. They usually report and mount as multiple drives, A CD ROM with Window Drivers and Software that circumvent the no USB autorun on Windows, and also a USB disk drive.
I don't see any built in way to read a SD. Do you use an adapter?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
It is normal for Sandisk devices to mount as a CDROM.
Really? I haven't seen this. I have a sandisk 8gb micro cruzer and it mounts as a usb drive.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
ewaller wrote:It is normal for Sandisk devices to mount as a CDROM.
Really? I haven't seen this. I have a sandisk 8gb micro cruzer and it mounts as a usb drive.
Is yours a U3 device ?
djolk's is:
Bus 002 Device 008: ID 0781:5406 SanDisk Corp. Cruzer Micro U3
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Doesn't seem to be.
Bus 001 Device 003: ID 0781:5151 SanDisk Corp. Cruzer Micro Flash Drive
So I will shutup now
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Here's more dmesg
[11379.885597] usb 2-3: new high speed USB device number 9 using ehci_hcd
[11380.011299] scsi13 : usb-storage 2-3:1.0
[11381.010090] scsi 13:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 4.05 P
Q: 0 ANSI: 2
[11381.010456] sd 13:0:0:0: Attached scsi generic sg2 type 0
[11381.011349] scsi 13:0:0:1: CD-ROM SanDisk U3 Cruzer Micro 4.05 PQ: 0 ANSI: 2
[11381.011836] sd 13:0:0:0: [sdb] 16041613 512-byte logical blocks: (8.21 GB/7.64 GiB)
[11381.013189] sd 13:0:0:0: [sdb] Write Protect is off
[11381.013195] sd 13:0:0:0: [sdb] Mode Sense: 03 00 00 00
[11381.013199] sd 13:0:0:0: [sdb] Assuming drive cache: write through
[11381.015867] sr1: scsi3-mmc drive: 8x/40x writer xa/form2 cdda tray
[11381.016175] sr 13:0:0:1: Attached scsi CD-ROM sr1
[11381.016542] sr 13:0:0:1: Attached scsi generic sg3 type 5
[11381.017571] sd 13:0:0:0: [sdb] Assuming drive cache: write through
[11381.017660] scsi: killing requests for dead queue
[11381.019583] sdb: sdb1
[11381.025081] sd 13:0:0:0: [sdb] Assuming drive cache: write through
[11381.025088] sd 13:0:0:0: [sdb] Attached SCSI removable disk
There is a built in SD card reader. Here is what dmesg says when I insert one:
[11904.418971] usb 1-5: new high speed USB device number 2 using ehci_hcd
[11904.872270] scsi14 : usb-storage 1-5:1.0
[11904.872474] usbcore: registered new interface driver ums-realtek
[11905.874971] scsi 14:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANSI: 0 CCS
[11905.875360] sd 14:0:0:0: Attached scsi generic sg4 type 0
[11906.516570] sd 14:0:0:0: [sdc] 3970048 512-byte logical blocks: (2.03 GB/1.89 GiB)
[11906.517688] sd 14:0:0:0: [sdc] Write Protect is off
[11906.517695] sd 14:0:0:0: [sdc] Mode Sense: 03 00 00 00
[11906.517699] sd 14:0:0:0: [sdc] Assuming drive cache: write through
[11906.520453] sd 14:0:0:0: [sdc] Assuming drive cache: write through
[11906.521456] sdc: sdc1
[11906.524067] sd 14:0:0:0: [sdc] Assuming drive cache: write through
[11906.524075] sd 14:0:0:0: [sdc] Attached SCSI removable disk
A new line appears with lsusb!
Bus 001 Device 002: ID 0bda:0159 Realtek Semiconductor Corp. Digital Media Card Reader
Offline
Okay, that makes sense. I was trying to establish whether the SD card reader is a USB device (which it is, but it appears to stay quiescent until a SD is inserted) or whether the SD card reader is a separate PCI device, is at is on my machine. It changes the fish-bone diagram a bit.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I dont know if it is related, but one time after HAL was removed from my archlinux-box, I had resorted to using udev-rules. Now with udev and udisks being a perfect replacement for HAL (at least on my machine), those udev-rules were causing problems, f.e. sometimes having to insert, remove and re-insert the USB-device before it was mounted etc.
Now I don't have anything related to USB or CD-rom in my /etc/fstab, I don't use HAL or udev-rules to automount and rely solely on udisks.
Worth a look?
Offline
I'm assuming you created these udev-rules?
I'll look into it but this system is pretty bare as for as config files go.
Offline
Zenlord,
But I would expect dmesg entries when the unit is attached, regardless of udev; In fact, i'd expect to see more messages.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
I agree - it almost seems to be like the usb system is sleeping.
Offline
So, I think that this might be something to do with laptop mode tools auto-suspending the USB system. I've disabled it for now and everything is detected immediately and works. But, it seems, to my mind, that there should a way to wake the USB system up when I plug a usb device in.
Offline