LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-08-2005, 01:58 AM   #1
_private
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian unstable
Posts: 2

Rep: Reputation: 0
USB Mass storage devices don't work in linux 2.6.[9,11.x]


Here's a problem I couldn't figure out myself: I've got a couple of USB mass storage devices, such as an iPod and a digital camera. They used to work as SCSI emulated devices back when I was using kernel version 2.6.7, but since I have tried several times upgrading to 2.6.9 and then to 2.6.11.6, they stopped functioning... The configuration I used was copied from the fully working 2.6.7 kernel.

If before I didn't need the newer kernel, now I do, since I upgraded my motherboard to a newest one, based on nVidia nForce3 chipset (and its sensor chips are only 'officially' supported by the latest kernels)

More precisely, they are not anymore detected as USB mass storage devices. Although they are detected as USB devices.

lsmod output:
Code:
Module                  Size  Used by
nls_utf8                1888  - 
sr_mod                 16708  - 
i2c_isa                 1792  - 
i2c_algo_pcf            7012  - 
i2c_algo_pca            5956  - 
i2c_algo_bit            9704  - 
lm90                   12420  - 
i2c_sensor              3456  - 
i2c_nforce2             6400  - 
nvnet                  67268  - 
parport_pc             40612  - 
lp                     10916  - 
parport                35784  - 
binfmt_misc            11208  - 
nvidia               3464188  - 
ipv6                  249504  - 
ip_conntrack_ftp       72656  - 
ip_conntrack           43608  - 
snd_ens1371            22180  - 
snd_rawmidi            23552  - 
snd_ac97_codec         76888  - 
snd_pcm_oss            52032  - 
snd_mixer_oss          19296  - 
snd_pcm                91144  - 
snd_page_alloc          9764  - 
usblp                  12832  - 
usb_storage            39168  -
Besides that, scsi_mod, sg, sd_mod and uhci_hcd are compiled into the kernel.

Here is what dmesg says on topic:

Code:
usb 1-7: new high speed USB device using ehci_hcd and address 4
uba: device 4 capacity nsec 0 bsize 512
usb 1-7: USB disconnect, address 4
usb 1-7: new high speed USB device using ehci_hcd and address 5
ub: cmd #0 cmd status (-104)
ub: cmd #1 cmd status (-104)
uba: device 5 capacity nsec 0 bsize 512
usb 1-7: USB disconnect, address 5
usb 1-7: new high speed USB device using ehci_hcd and address 6
ub: cmd #0 cmd status (-104)
ub: cmd #1 cmd status (-104)
uba: device 6 capacity nsec 0 bsize 512
usb 1-7: USB disconnect, address 6
usb 1-7: new high speed USB device using ehci_hcd and address 7
ub: cmd #0 cmd status (-104)
ub: cmd #1 cmd status (-104)
uba: device 7 capacity nsec 0 bsize 512

# this is with a kernel version with multiple SCSI LUN support:
usb 1-7: new high speed USB device using ehci_hcd and address 3
uba: device 3 capacity nsec 0 bsize 512
usb 1-7: USB disconnect, address 3
kern.log used to be like that with linux v2.6.7:
Code:
Mar 31 00:21:46 tomato kernel: usb 3-1: new full speed USB device using address 2
Mar 31 00:21:46 tomato kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Mar 31 00:21:46 tomato kernel:   Vendor: DSC       Model:                   Rev:     
Mar 31 00:21:46 tomato kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Mar 31 00:21:46 tomato kernel: SCSI device sda: 32768 512-byte hdwr sectors (17 MB)
Mar 31 00:21:46 tomato kernel: sda: assuming Write Enabled
Mar 31 00:21:46 tomato kernel: sda: assuming drive cache: write through
Mar 31 00:21:46 tomato kernel:  sda: sda1
Mar 31 00:21:46 tomato kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Mar 31 00:21:46 tomato kernel: Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0,  type 0
Mar 31 00:21:46 tomato kernel: USB Mass Storage device found at 2
Mar 31 01:00:50 tomato kernel: usb 3-1: USB disconnect, address 2
I googled a lot yesterday, but couldn't find any good solution to a problem, nor even any other similar problem case. In fact, nothing such has ever been seen. Which tends me to believe I'm missing something very obvious... Or maybe not.

I tried installing and setting up udev, hotplug, but, well, obviously, the problem is in the kernel, not in userspace... :P It didn't help, since no SCSI block device means no /dev/sd* device node for you!

I have been recommended looking into [ linux-usb.org FAQ.html #ts10 ] (sorry, couldn't post a URL). If you could confirm that, since I haven't yet managed to try and maybe it will indeed help.

I'd appreciate any other possible solutions and measures to eliminate the problem... =)
 
Old 04-08-2005, 11:57 AM   #2
_private
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian unstable
Posts: 2

Original Poster
Rep: Reputation: 0
The problem was fixed by switching off the CONFIG_BLK_DEV_UB option in kernel config.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling several USB mass storage devices? KlaymenDK Mandriva 3 06-30-2004 11:04 AM
Accessing USB Mass storage device in Linux..?? kvsmani Linux - Hardware 0 02-11-2004 12:03 PM
Cannot Install Bootloader, XP on hda, Linux on sdb (USB MASS STORAGE DRIVE) neo5064 Linux - Newbie 3 12-29-2003 04:57 PM
usb mass storage devices rukinhas Mandriva 1 11-18-2003 07:23 PM
USB Mass Storage Zebee Linux - Hardware 2 08-03-2003 08:17 PM


All times are GMT -5. The time now is 04:04 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
Open Source Consulting | Domain Registration