Red Hat Bugzilla – Bug 124139
usb-storage does not scan for partitions
Last modified: 2015-01-04 17:06:18 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
Default kernel shipped with Fedora Core 2 cannot read USB-based flash
card readers that the same machine could read under Fedora Core 1.
Plugging in a card reader causes the correct modules to be loaded and
the scsi system to be initialised, but no scan takes place for
partitions. Therefore, it is not possible to mount the device.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Plug in card reader
Actual Results: Reader gets detected, but no partition scan takes place.
Expected Results: Partition scan should take place, enabling us to
mount /dev/sda1 or similar device.
Here is what /var/log/messages says:
May 24 18:57:21 wookie kernel: usb 2-2: new full speed USB device
using address 22
May 24 18:57:21 wookie kernel: scsi1 : SCSI emulation for USB Mass
May 24 18:57:21 wookie kernel: Vendor: SanDisk Model: Cruzer
May 24 18:57:21 wookie kernel: Type: Direct-Access
ANSI SCSI revision: 02
May 24 18:57:21 wookie kernel: Attached scsi removable disk sda at
scsi1, channel 0, id 0, lun 0
May 24 18:57:22 wookie scsi.agent: disk at
Here is what dmesg says
SCSI subsystem initialized
usb 2-2: new full speed USB device using address 21
Initializing USB Mass Storage driver...
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: SanDisk Model: Cruzer Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
USB Mass Storage device found at 22
Same here. The card reader is recognised and modules loaded, but then
cant mount any cards through it.
May 24 09:00:27 poo kernel: usb 1-4: new high speed USB device using
May 24 09:00:28 poo kernel: Initializing USB Mass Storage driver...
May 24 09:00:28 poo kernel: scsi0 : SCSI emulation for USB Mass
May 24 09:00:28 poo kernel: Vendor: SanDisk Model: ImageMate 6 in
1 Rev: 0.0>
May 24 09:00:28 poo kernel: Type: Direct-Access
ANSI SCSI revision: 02
May 24 09:00:28 poo kernel: usbcore: registered new driver usb-storage
May 24 09:00:28 poo kernel: USB Mass Storage support registered.
May 24 09:00:28 poo scsi.agent: disk at
May 24 09:00:28 poo kernel: Attached scsi removable disk sda at scsi0,
channel 0, id 0, lun 0
May 24 09:00:28 poo kernel: Device not ready. Make sure there is a
disc in the drive.
May 24 09:00:29 poo kernel: Device not ready. Make sure there is a
disc in the drive.
[root@poo mnt]# mount /dev/sda1 temp
mount: No medium found
does it work if you put
options scsi_mod max_luns=5
(assuming its 1 5-in-1 reader, adjust accordingly)
in your /etc/modprobe.conf ?
hmm, actually this probably won't do anything (I've got multi-lun
devices on the brain at the moment).
I have scsi_mod max_luns=7 in my modprobe.conf, and also tried it the
old (traditional) way via the kernel boot line in grub.conf.
This is *not* the multi-lun issue, since I have this happening for
single-lun and multi-lun units. It correctly recognises the device,
loads the correct modules, just doesn't scan for partitions.
There is some code here:
that apparently fixes it, but I don't see any bugzilla report, and IAC
my poor notebook is stressed for space, so can't patch and compile to
see if it does the job. The author of the patch says he has informed
the code maintainer, but I suspect that doesn't mean you guys.
that patch is already included in the (work in progress) update kernel
that you can get from http://people.redhat.com/arjanv/2.6/RPMS.kernel
I tried with the kernel-2.6.6-1.427 kernel from Fedora downloads site,
and the problem persists
Try installing the latest Fedora Core 2 update kernel
(2.6.6-1.435.2.3) and see if you still have the problem. If
so, you may want to try a test kernel from one of these sources:
+ rawhide (a.k.a. FC-devel)
+ FC 3 test 1
!! It's right!!
With the kernel from http://people.redhat.com/arjanv/2.6, my usb flash
stick works fine, and too more: This kernel is built in another fashion.
With the FC2 kernels, my CMD/Sil 3112/3112A (SiI3112 Serial ATA: IDE
controller at PCI slot 0000:01:0b.0) serial ata controler with only 1
disk, was taking a lot of time to initialize on boot, because trying
several times for the second (unexistent) sata disk, each time with a
timeout. Then, the first sata disk was /dev/hde, and the second /dev/hdg.
Now, with this kernel, the module initializes immediate, without any
delay. Then, the first sata disk is /dev/sda, and the usb flash stick
The problem stills persist using kernel 2.6.8-1.521.
The usbmassstorage I am trying to use is SanDisk ImageMate 6-in-1
Yes, this is EXACTLY (#9) the case on my system... I cannot use my SanDisk
ImageMate 6 in 1.
I have a update testing kernel: 2.6.9-1.715_FC3smp
The patch metnioned in this bug is in the source tree.
So, what IS the deal?
Upgraded to 2.6.10-1.760.
Still same problem.
Nope, not here...
I was pleasantly surprise that as of 760 I no longer have to compile
my own kernel. My ImageMage now works.
Fedora Core 2 has now reached end of life, and no further updates will be
provided by Red Hat. The Fedora legacy project will be producing further kernel
updates for security problems only.
If this bug has not been fixed in the latest Fedora Core 2 update kernel, please
try to reproduce it under Fedora Core 3, and reopen if necessary, changing the
product version accordingly.