I have not tried it myself, but according to

http://vic.dyndns.org/linux-UsbMassStorage/

using the sg3-utils package and sg_map, you get for instance:

/dev/sg0 /dev/scd0
/dev/sg1 /dev/sda
/dev/sg2 /dev/sdb

and the scsi devices list is obtained with "sg_scan -i":

/dev/sg0: scsi0 channel=0 id=0 lun=0 [em] type=5
MATSHITA CD-RW CW-7585 1.01 [wide=0 sync=1 cmdq=0 sftre=0 pq=0x0A]
/dev/sg1: scsi1 channel=0 id=0 lun=0 [em] type=0
SanDisk ImageMate CF-SM 0100 [wide=0 sync=0 cmdq=0 sftre=0 pq=0x0]
/dev/sg2: scsi1 channel=0 id=0 lun=1 [em] type=0
SanDisk ImageMate CF-SM 0100 [wide=0 sync=0 cmdq=0 sftre=0 pq=0x0]

Neil Bird wrote:
> 
> Around about 16/01/2003 22:27, Greg KH typed ...
> > In 2.5 look at the sysfs entry, it will show what SCSI device it is
> > bound to.
> 
>    Don't think I'm quite ready for that :-)
> 
> > For 2.4, I don't know how, sorry.  Poke around in /proc somewhere?  Look
> > at the kernel log?
> 
>   I've had a rummage, and I can find scsi device refs., but there seems
> to be nothing that correlates the USB attachment to the SCSI devices.
> Ah well.
> 
> --
> [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: Thawte.com
> Understand how to protect your customers personal information by implementing
> SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
> Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-users

-- 
----------------------------------------------------------------------
Loris Renggli,          IMA,          EPFL,           CH-1015 Lausanne
tel: +41-21-693 2790                              fax: +41-21-693 4303


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to