Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Having problems with USB storage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1082

PostPosted: Thu Jan 04, 2018 9:43 am    Post subject: Having problems with USB storage Reply with quote

I recently formatted and started using a USB flash storage drive to do all my document copies, rsyncs and rsnapshots. The problem is that I don't know why I started getting this huuuuuge dump of kernel messages that I don't really understand what the source that triggers it other than it appears to me to happen only when the usb device is attached. The effect of this is to of course blow up the size of the log files, which I can include a portion of only, to display the issues. Does this type of issue appear to be kernel related, as I assume?

The general format of the messages which repeat thousands of times one after the next, is the following:

Code:
Dec 20 00:32:49 Machine_West kernel: [ 5765.695990] Bulk Status S 0x53425355 T 0x5aee8 R 0 Stat 0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.696007] *** thread sleeping
Dec 20 00:32:49 Machine_West kernel: [ 5765.696097] Status code 0; transferred 31/31
Dec 20 00:32:49 Machine_West kernel: [ 5765.696098] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.696100] Bulk command transfer result=0
Dec 20 00:32:49 Machine_West kernel: [ 5765.696102] xfer 8192 bytes, 1 entries
Dec 20 00:32:49 Machine_West kernel: [ 5765.696709] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.696711] Attempting to get CSW...
Dec 20 00:32:49 Machine_West kernel: [ 5765.696731] Status code 0; transferred 13/13
Dec 20 00:32:49 Machine_West kernel: [ 5765.696733] Bulk status result = 0
Dec 20 00:32:49 Machine_West kernel: [ 5765.696736] scsi cmd done, result=0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.696756] *** thread awakened
Dec 20 00:32:49 Machine_West kernel: [ 5765.696761] bytes: 28 00 02 19 3f c0 00 00 f0 00
Dec 20 00:32:49 Machine_West kernel: [ 5765.696766] xfer 31 bytes
Dec 20 00:32:49 Machine_West kernel: [ 5765.696809] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.696811] xfer 122880 bytes, 5 entries
Dec 20 00:32:49 Machine_West kernel: [ 5765.703591] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.703597] Attempting to get CSW...
Dec 20 00:32:49 Machine_West kernel: [ 5765.703622] Status code 0; transferred 13/13
Dec 20 00:32:49 Machine_West kernel: [ 5765.703628] Bulk status result = 0
Dec 20 00:32:49 Machine_West kernel: [ 5765.703638] scsi cmd done, result=0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.703702] *** thread awakened
Dec 20 00:32:49 Machine_West kernel: [ 5765.703720] Command READ_10 (10 bytes)
Dec 20 00:32:49 Machine_West kernel: [ 5765.704134] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.704141] xfer 8192 bytes, 1 entries
Dec 20 00:32:49 Machine_West kernel: [ 5765.704375] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.704380] Attempting to get CSW...
Dec 20 00:32:49 Machine_West kernel: [ 5765.704405] Status code 0; transferred 13/13
Dec 20 00:32:49 Machine_West kernel: [ 5765.704410] Bulk status result = 0
Dec 20 00:32:49 Machine_West kernel: [ 5765.704418] scsi cmd done, result=0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.724231] Bulk Command S 0x43425355 T 0x5aeec L 122880 F 128 Trg 0 LUN 0 CL 10
Dec 20 00:32:49 Machine_West kernel: [ 5765.724305] Status code 0; transferred 31/31
Dec 20 00:32:49 Machine_West kernel: [ 5765.724321] Bulk command transfer result=0
Dec 20 00:32:49 Machine_West kernel: [ 5765.731100] Status code 0; transferred 122880/122880
Dec 20 00:32:49 Machine_West kernel: [ 5765.731105] Bulk data transfer result 0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.731108] xfer 13 bytes
Dec 20 00:32:49 Machine_West kernel: [ 5765.731140] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.731144] Bulk Status S 0x53425355 T 0x5aeec R 0 Stat 0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.731158] *** thread sleeping
Dec 20 00:32:49 Machine_West kernel: [ 5765.731866] Status code 0; transferred 8192/8192
Dec 20 00:32:49 Machine_West kernel: [ 5765.731868] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.731869] Bulk data transfer result 0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.731871] Attempting to get CSW...
Dec 20 00:32:49 Machine_West kernel: [ 5765.731872] xfer 13 bytes
Dec 20 00:32:49 Machine_West kernel: [ 5765.731896] Status code 0; transferred 13/13
Dec 20 00:32:49 Machine_West kernel: [ 5765.731897] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.731899] Bulk status result = 0
Dec 20 00:32:49 Machine_West kernel: [ 5765.731901] Bulk Status S 0x53425355 T 0x5aeed R 0 Stat 0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.731903] scsi cmd done, result=0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.731913] *** thread sleeping
Dec 20 00:32:49 Machine_West kernel: [ 5765.732011] Status code 0; transferred 31/31
Dec 20 00:32:49 Machine_West kernel: [ 5765.732013] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.732014] Bulk command transfer result=0
Dec 20 00:32:49 Machine_West kernel: [ 5765.732016] xfer 122880 bytes, 4 entries
Dec 20 00:32:49 Machine_West kernel: [ 5765.738820] Status code 0; transferred 122880/122880
Dec 20 00:32:49 Machine_West kernel: [ 5765.738825] Bulk data transfer result 0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.738828] xfer 13 bytes
Dec 20 00:32:49 Machine_West kernel: [ 5765.738849] -- transfer complete
Dec 20 00:32:49 Machine_West kernel: [ 5765.738853] Bulk Status S 0x53425355 T 0x5aeee R 0 Stat 0x0
Dec 20 00:32:49 Machine_West kernel: [ 5765.738869] *** thread sleeping


please help!
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Jan 04, 2018 10:19 am    Post subject: Reply with quote

LIsLinuxIsSogood ...

you probably have CONFIG_USB_DEBUG and CONFIG_USB_STORAGE_DEBUG enabled. Having any *_DEBUG will increase the output of klog => syslog.

HTH & best ... khay
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1082

PostPosted: Thu Jan 04, 2018 10:24 am    Post subject: Reply with quote

alright, I just checked and the setting that was turned on as you mentioned was the USB Storage debug.

I guess that explains why the loads of those messages. The odd thing about that is I'm not sure if something is not working at this point with it, how would you suggest I proceed by removing the large log files, and then see if the next time it turns up error messages? At this point searching those immense logs seems unfathomable.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Jan 04, 2018 10:32 am    Post subject: Reply with quote

LIsLinuxIsSogood wrote:
I guess that explains why the loads of those messages. The odd thing about that is I'm not sure if something is not working at this point with it, how would you suggest I proceed by removing the large log files, and then see if the next time it turns up error messages? At this point searching those immense logs seems unfathomable.

LIsLinuxIsSogood ... I'm not sure I understand, by setting CONFIG_USB_STORAGE_DEBUG=y you get verbose logging of the driver, the fact that you get stuff logged doesn't mean you have some issue with the driver/device. If you disable CONFIG_USB_STORAGE_DEBUG then you will still get an error logged, the DEBUG feature isn't so much for end users, but for driver developers.

best ... khay
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1082

PostPosted: Thu Jan 04, 2018 10:53 am    Post subject: Reply with quote

Ok. thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum