Re: Question about usb-storage: Sometimes partitions are notrecognized.

From: Pete Zaitcev
Date: Thu Aug 25 2005 - 14:22:03 EST


On Thu, 25 Aug 2005 15:26:27 +0200, Manuel Schneider <root@xxxxxxxxxxxx> wrote:

> 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. [...]

We need more data. First, "Kernel 2.6.x" is not good enough.
Give us a precise version on which you observe this.
Second, running with CONFIG_USB_STORAGE_DEBUG may yield a useful trace.
I am not quite sure about that though, as this seems to be some
misunderstanding between the block level and SCSI.

Problems with block device open() not working right fall squarely
into purview of Al Viro, but he's quite busy right now. Someone
has to identify the exact scenario. I suppose adding a few printks
around fs/block_dev.c may be more beneficial than any USB debugging.

-- Pete

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/