I have a SanDisk CompactFlash reader (the SDDR-31 which is supported
by Linux USB) on my Cooker box and it does not seem to be quite
working with devfs.

The device is seen and devfs entries (/dev/scsi/host1/...) up to but
not including the partitions on the device are being created and
removed when the device is added and removed from the system.

Here is what my kernel has to say when plugging the device in:

kernel: hub.c: Cannot enable port 1 of hub 1, disabling port.
kernel: hub.c: Maybe the USB cable is bad?
kernel: hub.c: USB new device connect on bus1/1, assigned device number 2
/sbin/hotplug: arguments (usb) env (PWD=/etc/hotplug HOSTNAME=pc 
DEVICE=/proc/bus/usb/001/002 INTERFACE=8/6/80 ACTION=add DEBUG=yes 
MACHTYPE=i586-mandrake-linux-gnu OLDPWD=/ DEVFS=/proc/bus/usb TYPE=0/0/0 SHLVL=1 
SHELL=/bin/bash HOSTTYPE=i586 OSTYPE=linux-gnu HOME=/ TERM=dumb 
PATH=/bin:/sbin:/usr/sbin:/usr/bin PRODUCT=781/2/9 _=/usr/bin/env)
/sbin/hotplug: invoke /etc/hotplug/usb.agent ()
/etc/hotplug/usb.agent: Modprobe and setup
usb-storage for USB product 781/2/9

That "Cannot enable port 1 of hub 1, disabling port." is disturbing
but the device certainly has worked before and 

[brian@pc brian]$ lspcidrake 
unknown         : VIA Technologies|VT8363/8365 [KT133/KM133] [BRIDGE_HOST]
unknown         : VIA Technologies|VT8363/8365 [KT133/KM133 AGP] [BRIDGE_PCI]
unknown         : VIA Technologies|VT82C686 [Apollo Super] [BRIDGE_ISA]
unknown         : VIA Technologies|VT82C586 IDE [Apollo] [STORAGE_IDE]
usb-uhci        : VIA Technologies|VT82C586B USB [SERIAL_USB]
usb-uhci        : VIA Technologies|VT82C586B USB [SERIAL_USB]
unknown         : VIA Technologies|VT82C686 [Apollo Super ACPI] [BRIDGE_HOST]
snd-card-ymfpci : Yamaha Corporation|YMF-754 [DS-1E Audio Controller] 
[MULTIMEDIA_AUDIO]
3c59x           : 3Com Corporation|3c590 10BaseT [Vortex] [NETWORK_ETHERNET]
eepro100        : Intel Corporation|82559 [Ethernet Pro 100] [NETWORK_ETHERNET]
aic7xxx         : Adaptec|AIC-7881U [STORAGE_SCSI]
Card:S3 Trio64 (generic): S3 Inc.|86c764/765 [Trio32/64/64V+] [DISPLAY_VGA]
unknown         : Promise Technology, Inc.|20265 [STORAGE_OTHER]
Card:Matrox Millennium G400: Matrox|MGA G400 AGP [DISPLAY_VGA]
unknown         : Virtual|Hub []
unknown         : Alcor Micro, Inc.|Hub []
unknown         : SanDisk Corp.|SDDR-31 ImageMate CompactFlash Reader [Mass 
Storage|SCSI|Bulk (Zip)]
unknown         : Virtual|Hub []

It is seen (second last line) by lspcidrake.

Strange, I tried to:

[root@pc brian]# mknod /dev/sdb b 8 16

(an error, I was actually intending to make /tmp/sda) and guess what
happened?  The /dev/scsi/host1/bus0/target0/lun0/disc and
scsi/host1/bus0/target0/lun0/part1 nodes magically appeared!  The
kernel log had the following more to say:

kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
kernel: SCSI device sda: 62977 512-byte hdwr sectors (32 MB)
kernel: sda: Write Protect is off
kernel:  /dev/scsi/host1/bus0/target0/lun0: p1

Any ideas why the partitions are not being recognized on usb-storage
devices when they are plugged in?

b.


-- 
Brian J. Murrell

Reply via email to