[PLUG] Identifying SCSI Device Assignment

sofar sofar at foo-projects.org
Fri Mar 24 17:39:19 UTC 2006



On Fri, 24 Mar 2006 06:15:26 -0800 (PST), Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Fri, 24 Mar 2006, sofar wrote:
> 
>>>    I've two SCSI devices on my system: the tape drive and the cd-rw
> drive.
>                                                                  
> ^^^^^^^^^^^
> 
>>> I'd like to assign the latter to /dev/cdrw to distinguish is from
>                        ^^^^^^^^^^
> 
>>> /dev/cdrom, but I don't know how to identify on which /dev/sd? it is
>>> associated. Looking through /proc/scsi/ I see only numbers and I've no
>>> idea what they represent.
>>
>> tape drives are named /dev/st* and thus you cannot confuse them with
> drives
>> that way. you can also check /proc/partitions - it will only list valid
>> block devices that are either a partition or a disc - but never tapes.
> 
> Auke,
> 
>    Thank you. This I know. However, I'm looking for the device to which
> the
> CD-RW drive is assigned.

whoops!

depending on how your devices are setup they should be named sr* and sg* - again /proc/partitions might prove useful too here.

Auke





More information about the PLUG mailing list