On Sat, 19 Jun 2004, Daniel Drake wrote:

> Hi,
> 
> I've seen a few reports floating around lately that the sda1 node isn't 
> getting created on plugin of some usb-storage devices.
> 
> In these situations, the sda node appears on plugin, but no partitons (e.g. 
> sda1) turn up until you do *something* with the sda node.
> 
> Even if its as simple as:
>       fdisk -l /dev/sda
> 
> Or even
>       touch /dev/sda
> 
> I have gathered some logs of a situation like this, for the following device:
> Vendor: M-Sys
> Product: DiskOnKey
> Serial Number: 0501631530002F06
> Protocol: Transparent SCSI
> Transport: Bulk
> Quirks:

Your logs are missing a lot of data.  Try using "dmesg" instead of relying 
on syslog.

> One workaround is to use hotplug. Some versions (not all) presumably do the 
> equivalent of "touch /dev/sda" when a device is detected - some see installing 
> hotplug as a solution to this, but it seems just to be masking the problem.
> 
> Any ideas?
> 
> Thanks.
> Daniel

>From things I've seen in the past, I'll guess that the device reports "No 
medium present" until it finishes initializing, which might require a few 
seconds.  Since the usb-storage and other drivers try probing the device 
right away, they are forced to assume that there are no partitions and no 
data -- until something tells them to take a second look.

It's not clear what the best solution to this is.  But here's something 
you can try that might confirm my guess.  Make sure all hotplug support is 
turned off so that drivers aren't loaded automatically.  Make sure 
usb-storage isn't loaded and plug in the device.  Then maybe 30 seconds 
later modprobe usb-storage and see if it detects the disk partitions.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to