SCSI devices
Hi guys,
I want to detect a raw SCSI DISK during installation. To detect scsi I have set the flags
in kernel configuration file to "Y/y" to embbed the scsi modules into the kernel.
Example : for IDE disk in proc we ll have /proc/ide/ide0/hda or /proc/ide/ide1/hdc. In these
directory there is a file called "media" which tells the type of the device either disk
or cdrom.
I am trying to figure out samething in case of SCSI devices .... didnt get any help
How to map scsi devices to device files like /dev/sda.
in /proc/scsi/scsi file the entries are like below
///***** OTUPUT******///
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: VMware, Model: Virtual CD-ROM Rev: 1.0
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
///****END***///
I am trying to figure how these entries are mapped to device files (for example /dev/sda or /dev/sdb etc.).
help me if any one knows abt this.
Thanks in advance
Last edited by shankara; 04-19-2007 at 06:53 AM.
|