LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
Search this Thread
Old 02-14-2010, 03:10 AM   #1
SkyviewGuru
LQ Newbie
 
Registered: Feb 2010
Location: Idaho, USA
Distribution: Gentoo
Posts: 3

Rep: Reputation: 0
/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!

Last edited by SkyviewGuru; 02-14-2010 at 11:24 AM. Reason: Solved - See below
 
Old 02-14-2010, 03:14 AM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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
 
1 members found this post helpful.
Old 02-14-2010, 03:32 AM   #3
SkyviewGuru
LQ Newbie
 
Registered: Feb 2010
Location: Idaho, USA
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
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.

Thanks so much for your prompt response!
 
Old 02-14-2010, 11:23 AM   #4
SkyviewGuru
LQ Newbie
 
Registered: Feb 2010
Location: Idaho, USA
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
Resolved!

That was it! Thanks again for your help!
 
Old 02-14-2010, 11:32 AM   #5
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

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

Sasha
 
  


Reply

Tags
dmesg, usbstorage


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND causing many entries in /var/log/messages when using IPv6 niels.horn Slackware 4 10-31-2009 06:31 PM
Duplicate entries in /var/log/messages stan da ork Red Hat 2 10-29-2008 09:20 AM
Are these entries a problem in my /var/log/messages jim.thornton Linux - Server 4 02-08-2008 08:16 AM
New Entries in /var/log/messages sathyguy Linux - Security 3 04-26-2006 05:36 AM
/var/log/messages weird entries blizunt7 Linux - Security 5 11-01-2005 05:56 PM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration