[nSLUG] USB storage hot-swap question
Rich
budman85 at eastlink.ca
Sat May 17 18:12:58 ADT 2008
I've tried stick reader and hub reader - I get some issues with kernel
freezing, but I think its a bug in the udev rules. (need some time to
troubleshoot).
The problem may be that the CONFIG_SCSI_MULTI_LUN may not be compiled
into the kernel.
Not sure if its available in 2.4 kernel.
I had some issues with CONFIG_BLK_DEV_UB being enabled, so I disabled
that and no more issues with device assignment.
Also, this CONFIG_USB_LIBUSUAL should be enabled as well.
See if you have a /proc/config.gz - this may only be for 2.6 kernels
(there is an option now to save a copy of the config in the kernel)
I find udev/hal works much better than hotplug ever did. :)
BTW, Slackware 12.1 is out.
I've been using the beta for a while, its worth the update, lots of
fixes and cleanup.
Rich
Luke Gavel wrote:
> Has anyone tried this with any USB stick other than the Kingston 2GB Data Traveler USB Flash Drive (DTI-2GBCR)? This problem might not be only on Linux OSes, and could be the reason that FutureShop is advertising a huge discount sale for these Kingston drives...
>
> --- On Sat, 5/17/08, Mike Spencer <mspencer at tallships.ca> wrote:
>
>
>> From: Mike Spencer <mspencer at tallships.ca>
>> Subject: [nSLUG] Re: USB storage hot-swap question
>> To: nslug at nslug.ns.ca
>> Received: Saturday, May 17, 2008, 2:51 PM
>> I wrote:
>>
>> me> But if I umount the [USB memory] device, unplug it
>> and plug in
>> me> another device, mount refuses to mount it, reporting
>> that it is
>> me> "is not a valid block device".
>>
>>
>> And "George N. White III"
>> <gnwiii at gmail.com> quoth:
>>
>>
>>> I haven't seen this (on 2.6.24.7-92.fc8). The
>>>
>> entry in
>>
>>> /proc/scsi/scsi disappears when the device is
>>>
>> unplugged from the USB
>>
>>> connector.
>>>
>> Oh. Well, I'm using a 2.4 kernel. USB webcam works as
>> advertized and USB
>> memory works but doesn't hot-swap properly.
>>
>>
>>> A certain well-known direct vendor is notorious for
>>>
>> USB ports that
>>
>>> don't behave.
>>>
>> This is an IBM P3. "Type 6579 GJU" if the xternal
>> sticker is to be
>> believed.
>>
>>
>>> Do you see lines in /var/log/messages like:
>>>
>>> May 17 14:41:50 cerberus kernel: usb 1-5: USB
>>>
>> disconnect, address 4
>>
>> After unmounting and removing one device, then plugging in
>> and
>> attempting to mount another, /var/log/messages has:
>>
>> May 17 15:23:09 bogus kernel: usb.c: USB disconnect on
>> device
>> 00:1f.2-2 address 5
>> May 17 15:23:28 bogus kernel: hub.c: new USB device
>> 00:1f.2-2,
>> assigned address 6
>> May 17 15:24:02 bogus kernel: sda: Unit Not Ready,
>> sense:
>> May 17 15:24:02 bogus kernel: sda: I/O error: dev
>> 08:00, sector 0
>>
>> Does that tell you anything useful?
>>
>>
>>> You might be interested in
>>>
>> <http://www.linux-usb.org/usbtest/>....
>>
>> Yow! That makes it look like the whole USB matter is a can
>> or worms
>> under the hood. Browsing over it, I gather I should
>> upgrade to a 2.6
>> kernel RSN. Well, I just bought a used Dell P4 on which
>> I'm going to
>> install Slack 12/2.6 kernel. (Or was it Dell that you
>> called "A
>> certain well-known direct vendor...notorious for USB ports
>> that don't
>> behave."?)
>>
>> So maybe I'll just live with this hot-plug annoyance
>> until I have that
>> up and running.
>>
>>
>> Thanks,
>> - Mike
>>
>> --
>> Michael Spencer Nova Scotia, Canada
>> .~.
>>
>> /V\
>> mspencer at tallships.ca
>> /( )\
>> http://home.tallships.ca/mspencer/
>> ^^-^^
>> _______________________________________________
>> nSLUG mailing list
>> nSLUG at nslug.ns.ca
>> http://nslug.ns.ca/cgi-bin/mailman/listinfo/nslug
>>
>
>
> __________________________________________________________________
> Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/cgi-bin/mailman/listinfo/nslug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nslug.ns.ca/mailman/private/nslug/attachments/20080517/042a04ea/attachment.html>
More information about the nSLUG
mailing list