Question about usb-storage: Sometimes partitions are not recognized.

Question about usb-storage: Sometimes partitions are not recognized.

Post by Manuel Sch » Fri, 26 Aug 2005 22:30:18


Hello everyone,

using two different USB memory cardreader I have a problem which I am able to
reproduce on serveral machines (x86 and x86_64, Kernel 2.6.x) and with
different memory cards (Compact Flash, SD-Card, Sony Memory-Stick):
When I plug them in, they will be recognized by hotplug (I'm using udev), the
module usb-storage will be loaded and the device nodes are created.

BUT: There is normally just ONE device node for the disc block device.
Partitions are not available.
I can "solve" this by just starting fdisk (and shutting it down again without
changing anything) on the given block device - after that, all the partitions
are available. So it seems to me that on the recognition of the disc block
device either the partition table will not be read or the USB device (maybe
it depends on the cardreader) is to slow to come up with the data.
When fdisk is reading the partition table everything works well, but this is
obviously no option.

Other USB memories (eg. an USB memory stick) work well, I experience these
problem only on these two cardreaders.

Is there a possibility to tweak unusual_devs.h to get rid of these problems? I
could insert the maufacturer and product IDs, but I'm not common with the
available options. Maybe you could give me some pointers about them or other
solutions on this.

Thanks and greets,

Manuel
--
Manuel Schneider
XXXX@XXXXX.COM
http://www.yqcomputer.com/

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM d-- s:- a? C++$ UL++++ P+> L+++>$ E- W+++$ N+ o-- K- w--$ O+ M+ V
PS+ PE- Y+ PGP+ t 5 X R UF++++ !tv b+> DI D+ G+ e> h r y++
------END GEEK CODE BLOCK------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Question about usb-storage: Sometimes partitions are not recognized.

Post by Manuel Sch » Sat, 27 Aug 2005 17:20:09

i,

In this case it's 2.6.11 (x86_64) and 2.6.12 (x86) but I experience that
problem since longer time (with several Kernel versions).

The attached logs are generated on
Linux mirabilis 2.6.11-gentoo-r7 #1 Fri May 27 19:37:20 CEST 2005 x86_64 AMD
Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux

This is the device (from /proc/bus/sub/devices):
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=1019 ProdID=0c55 Rev= 1.00
S: Manufacturer=Generic
S: Product=USB Storage Device
S: SerialNumber=20020509145305401
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms


Here the log when pluging in the cardreader (without memory card):
[...]
Aug 26 09:58:45 mirabilis kernel: usb 2-2: new full speed USB device using
uhci_hcd and address 2
Aug 26 09:58:46 mirabilis kernel: SCSI subsystem initialized
Aug 26 09:58:46 mirabilis kernel: Initializing USB Mass Storage driver...
Aug 26 09:58:46 mirabilis kernel: usb-storage: USB Mass Storage device
detected
Aug 26 09:58:46 mirabilis kernel: usb-storage: -- associate_dev
Aug 26 09:58:46 mirabilis kernel: usb-storage: Vendor: 0x1019, Product:
0x0c55, Revision: 0x0100
Aug 26 09:58:46 mirabilis kernel: usb-storage: Interface Subclass: 0x06,
Protocol: 0x50
Aug 26 09:58:46 mirabilis kernel: usb-storage: Vendor: Generic , Product: USB
Storage Device
Aug 26 09:58:46 mirabilis kernel: usb-storage: Transport: Bulk
Aug 26 09:58:46 mirabilis kernel: usb-storage: Protocol: Transparent SCSI
Aug 26 09:58:46 mirabilis kernel: usb-storage: usb_stor_control_msg: rq=fe
rqtype=a1 value=0000 index=00 len=1
Aug 26 09:58:46 mirabilis kernel: usb-storage: GetMaxLUN command result is 1,
data is 3
Aug 26 09:58:46 mirabilis kernel: usb-storage: Sending UCR-61S2B
initialization packet...
Aug 26 09:58:46 mirabilis kernel: usb-storage: usb_stor_bulk_transfer_buf:
xfer 31 bytes
Aug 26 09:58:46 mirabilis kernel: usb-storage: Status code 0; transferred
31/31
Aug 26 09:58:46 mirabilis kernel: usb-storage: -- transfer complete
Aug 26 09:58:46 mirabilis kernel: usb-storage: Getting status packet...
Aug 26 09:58:46 mirabilis kernel: usb-storage: usb_stor_bulk_transfer_buf:
xfer 13 bytes
Aug 26 09:58:46 mirabilis kernel: usb-storage: Status code 0; transferred
13/13
Aug 26 09:58:46 mirabilis kernel: usb-storage: -- transfer complete
Aug 26 09:58:46 mirabilis kernel: scsi0 : SCSI emulation for USB Mass Storage
devices
Aug 26 09:58:46 mirabilis kernel: usbcore: registered new driver usb-storage
Aug 26 09:58:46 mirabilis kernel: USB Mass Storage support registered.
Aug 26 09:58:46 mirabilis kernel: usb-storage: *** thread sleeping.
Aug 26 09:58:46 mirabilis kernel: usb-storage: device found at 2
Aug 26 09:58:46 mirabilis kernel: usb-storage: waiting for device to settle
before scanning
Aug 26 09:58:51 mirabilis kernel: usb-storage: queuecommand called
Aug 26 09:58:51 mirabilis kernel: usb-storage: *** thread awakened.
Aug 26 09:58:51 mirabilis kernel: usb-storage: Command INQUIRY (6 bytes)
Aug 26 09:58:51 mirabilis kernel: usb-storage: 12 00 00 00 24 00
Aug 26 09:58:51 mirabilis kernel: usb-storage: Bulk Command S 0x43425355 T 0x1
L 36 F 128 Trg 0 LUN 0 CL 6
Aug 26 09:58:51 mirabilis kernel: usb-storage: usb_stor_bu