LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-19-2007, 02:05 AM   #1
shankara
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse SCSI devices element Debian 4 11-09-2005 07:12 PM
Mounting various SCSI devices KePSuX Linux - Hardware 2 10-08-2004 04:05 PM
allow non root users add devices to /proc/scsi/scsi ? ewto Linux - Newbie 5 10-14-2003 11:36 AM
Can't Mount my SCSI devices! ewto Linux - Newbie 9 09-10-2003 12:44 AM
Mounting SCSI devices MasterC Linux - Hardware 12 09-25-2002 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration