Long story short, I have Fuji digicam which works a treat when plugging in/unplugging through USB: it gets recognised, is given scsi1, and hence appears on /dev/sda1. Unplug, re-plug, same thing.

I now have a smart-media reader that is OK once, but then every time you unplug it, the scsi device gets 'kept', so that plugging it in a second time gives scsi2 & /dev/hdb1. Etc. Etc.

Here's a messages snippet of two plug-in/unplugs; the USB is noticing that it's being unpluygged - why's the associated scsi device not beeing relequished? This even happens if I don't mount the thing in the meantime (which I always do read-only as well) :


Dec 9 18:49:19 fnx kernel: hub.c: USB new device connect on bus1/1, assigned device number 2
Dec 9 18:49:19 fnx kernel: usb.c: USB device 2 (vend/prod 0xaec/0x5010) is not claimed by any active driver.
Dec 9 18:49:22 fnx /etc/hotplug/usb.agent: Setup usb-storage for USB product aec/5010/100
Dec 9 18:49:23 fnx kernel: Initializing USB Mass Storage driver...
Dec 9 18:49:23 fnx kernel: usb.c: registered new driver usb-storage
Dec 9 18:49:23 fnx kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Dec 9 18:49:23 fnx kernel: Vendor: Generic Model: USB Storage-SMC Rev: 0216
Dec 9 18:49:23 fnx kernel: Type: Direct-Access ANSI SCSI revision: 02
Dec 9 18:49:23 fnx kernel: USB Mass Storage support registered.
Dec 9 18:49:23 fnx /etc/hotplug/usb.agent: Setup fujicam for USB product aec/5010/100
Dec 9 18:49:23 fnx /etc/hotplug/usb.agent: Module setup fujicam for USB product aec/5010/100
Dec 9 18:49:23 fnx kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Dec 9 18:49:23 fnx kernel: SCSI device sda: 128001 512-byte hdwr sectors (66 MB)
Dec 9 18:49:23 fnx kernel: sda: Write Protect is off
Dec 9 18:49:23 fnx kernel: sda: sda1
Dec 9 18:51:01 fnx kernel: usb.c: USB disconnect on device 2
Dec 9 18:51:13 fnx kernel: hub.c: USB new device connect on bus1/1, assigned device number 3
Dec 9 18:51:13 fnx kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Dec 9 18:51:13 fnx kernel: Vendor: Generic Model: USB Storage-SMC Rev: 0216
Dec 9 18:51:13 fnx kernel: Type: Direct-Access ANSI SCSI revision: 02
Dec 9 18:51:13 fnx kernel: Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
Dec 9 18:51:14 fnx kernel: SCSI device sdb: 128001 512-byte hdwr sectors (66 MB)
Dec 9 18:51:14 fnx kernel: sdb: Write Protect is off
Dec 9 18:51:14 fnx kernel: sdb: sdb1
Dec 9 18:51:17 fnx /etc/hotplug/usb.agent: Setup usb-storage for USB product aec/5010/100
Dec 9 18:51:17 fnx /etc/hotplug/usb.agent: Setup fujicam for USB product aec/5010/100
Dec 9 18:51:17 fnx /etc/hotplug/usb.agent: Module setup fujicam for USB product aec/5010/100
Dec 9 18:51:17 fnx kernel: Device not ready. Make sure there is a disc in the drive.
Dec 9 18:51:17 fnx kernel: sda : READ CAPACITY failed.
Dec 9 18:51:17 fnx kernel: sda : status = 1, message = 00, host = 0, driver = 08
Dec 9 18:51:17 fnx kernel: Info fld=0xa00 (nonstd), Current sd00:00: sense key Not Ready
Dec 9 18:51:17 fnx kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Dec 9 18:51:17 fnx kernel: sda: I/O error: dev 08:00, sector 0
Dec 9 18:51:17 fnx kernel: I/O error: dev 08:00, sector 0
Dec 9 18:51:17 fnx kernel: unable to read partition table
Dec 9 18:51:30 fnx kernel: usb.c: USB disconnect on device 3


--
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit




-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to