On Thu, 19 Jun 2003, Vedran Rodic wrote:

> On Thu, Jun 19, 2003 at 11:47:02AM -0400, Alan Stern wrote:
> > > 3.
> > > I've noticed that usb-storage doesn't remove the disk from /proc/scsi/scsi
> > > (the representation of kernel scsi device list)
> > > when the device is disconnected. Because of that, I cannot connect a
> > > different hard disk to usb, without rmmod/insmod usb-storage first, and that can
> > > be impossible when I have another device on usb-storage that I don't want to
> > > stop using. Can this be fixed for 2.4?
> > 
> > That was by design.  The behavior has been changed for 2.5, but it's not 
> > going to be changed for 2.4 since the SCSI layer for 2.4 can't handle 
> > hot-unplugging.  However, depending on what sort of disk you're using 
> > this shouldn't affect you.  Go ahead and leave the old device entry in 
> > /proc/scsi/scsi; when you plug in a different disk it should get its own 
> > new entry.
> 
> Hmm. The problem is that it doesn't get a new entry. What I do is:
> I disconnect the USB IDE case, and replace the disk inside it with a
> different disk. When I connect it again it detects it's been conected, but
> doesn't add a new scsi entry, I still see an old QUANTUM drive there, and it
> should be IBM.

That's a definite weakness of the old scheme and part of the reason it was 
changed for 2.5.  In the meantime, you can try doing this.  After you've 
switched the drives, do "echo scsi remove-single-device 0 1 2 3 
>/proc/scsi/scsi" with "0 1 2 3" replaced by your "Host Channel Id Lun".  
Then do "echo scsi add-single-device 0 1 2 3 >/proc/scsi/scsi" again with 
"0 1 2 3" replaced by your "Host Channel Id Lun".

Thsse commands are a beta feature, so they might not work perfectly.  But
it's certainly worth a try.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to