LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-16-2005, 05:04 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
How do SCSI map to /dev/sd*?


does anybody know how SCSI devices on the channels map to the sda sdb etc devices?

I can cat /proc/scsi/scsi to see the devices on the channels and their id and manufacturer but this doens't tell me which one is which block device under /dev.
 
Old 12-16-2005, 06:55 AM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
I would imagine (but don't quote me on this) that the SCSI LUN will map to the sd*. Example:

SCSI LUN 1 == sda
SCSI LUN 4 == sdb
SCSI LUN 9 == sdc

I'd break out the google-monkey for confirmation, but I believe this is how it's done. The SCSI LUN is the Logical Unique Number assigned to each drive, usually with a jumper. Number 7 tends to be the physical card/controller.
 
Old 12-16-2005, 07:12 AM   #3
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
no because all the drive are LUN 0 in this machine which has nearly 20 SCSI disks
 
Old 12-16-2005, 07:21 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,678

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Typically, the first recognized drive (lowest SCSI id) on the first recognized controller will be sda, next sdb and so on.
 
Old 12-16-2005, 07:33 AM   #5
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
is there any command to see the kernel's table of mappings?

this would be much easier and faster as well as knowing that you haven't made a simple mistake...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I access my scsi hdd from dev/scsi/host1/bus0/target0/lun0 ?? marius7sv Linux - Hardware 0 09-06-2004 10:40 AM
How to find out my scsi dev names? Thaidog Linux - Newbie 3 08-31-2004 04:18 AM
Some info about '/proc/scsi/scsi' and '/dev' C.Loko Slackware 4 11-27-2003 12:30 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM
Read only SCSI - /dev/sda5 MikeSendrove Linux - Hardware 4 11-14-2002 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:01 PM.

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