LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (http://www.linuxquestions.org/questions/gentoo-87/)
-   -   /var/log/messages has endless usb-storage entries (http://www.linuxquestions.org/questions/gentoo-87/var-log-messages-has-endless-usb-storage-entries-788995/)

SkyviewGuru 02-14-2010 04:10 AM

/var/log/messages has endless usb-storage entries
 
I'm not sure why, but my /var/log/messages has nothing but messages about usb-storage and hundreds of these messages post each second, endlessly. Here's a snippet:

Code:

root@localhost:/var/log>dmesg | tail -n 25
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x1fc849 R 0 Stat 0x1
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk Command S 0x43425355 T 0x1fc84a L 18 F 128 Trg 0 LUN 3 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 18 bytes, 1 entries
usb-storage: Status code 0; transferred 18/18
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x1fc84a R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0xf0, key: 0x2, ASC: 0x3a, ASCQ: 0x0
usb-storage: Not Ready: Medium not present
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.

Having done various "tail" commands, I've been able to determine that about 250-300 usb-storage lines post every second to /var/log/messages. This has resulted in log files several gigabytes long in only a few days, and makes it virtually impossible to see the other issues that get logged. I don't know what's causing it or even where to start to narrow it down.

I've searched Google and LQ but apparently not with the right keywords because I get articles that are completely irrelevant.

I run Gentoo Linux on a 64-bit Gateway GM5424 PC with the 2.6.31-gentoo-r6 kernel built by genkernel from the instructions provided in the Gentoo 10.1 handbook for amd64. The system has 6GB of RAM, and on the USB bus I have a Samsung color laser printer, an APC UPS, a card reader, my mouse, and occasionally (but not as I wrote this post) my HTC Snap cell phone. I have not had any problems with the USB devices working in Linux.

Please let me know if there's any commands or troubleshooting ideas you have to resolve this problem. Thanks!

GrapefruiTgirl 02-14-2010 04:14 AM

You may want to check if your kernel compile includes the option for "Verbose debugging of the USB mass storage subsystem" -- I had a similar issue about a year ago, and discovered that I had enabled mass-storage debugging and forgotten all about it until I decided to investigate why my logs were getting spammed like yours are.

I'll attach a link in a moment here... Here: http://www.linuxquestions.org/questi...klogd+spamming

SkyviewGuru 02-14-2010 04:32 AM

That's probably it!
 
I did a quick "zcat /proc/config.gz | grep USB_STORAGE_DEBUG" and found:

Code:

root@localhost:/boot>zcat /proc/config.gz | grep USB_STORAGE_DEBUG
CONFIG_USB_STORAGE_DEBUG=y

and "zcat /proc/config.gz | grep USB_DEBUG" and found:

Code:

root@localhost:/boot>zcat /proc/config.gz | grep USB_DEBUG
# CONFIG_USB_DEBUG is not set

I'm recompiling the kernel now with the aforementioned parameter as "n". I'll let you know if that corrects it, but I'll bet it does. :D

Thanks so much for your prompt response!

SkyviewGuru 02-14-2010 12:23 PM

Resolved!
 
That was it! Thanks again for your help!

GrapefruiTgirl 02-14-2010 12:32 PM

:cool: Great! You're welcome; if you haven't yet, you can mark your thread [solved] using the Thread Tools menu near the top.

Sasha :)


All times are GMT -5. The time now is 03:52 PM.