lsscsi lists your scsi devices. It is safer to use than looking at /proc/scsi, because /proc/scsi may be moved without further notice.
- Gives you a dependency between scsi devices like /dev/sda and scsi generic devices like /dev/sg0
duffman:~ # lsscsi --generic [0:0:0:0] disk ATA TOSHIBA MK6026GA PA20 /dev/sda /dev/sg0 [1:0:0:0] cd/dvd TSSTcorp CDRW/DVD TSL462C DE01 /dev/sr0 /dev/sg1 [2:0:0:0] disk SAMSUNG HM120JC YL10 /dev/sdb /dev/sg2 duffman:~ #
You may also want to try