Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: lsscsi added as first method

...

Open a terminal console and issue:

# lsscsi -g

The output will look something likeOutput example:

[0:0:0:0]    disk    VMware   Virtual disk     1.0   /dev/sda   /dev/sg0
[0:0:10:0]   tape    COMPAQ   SDLT320          5F5F  /dev/st0   /dev/sg9
[0:0:11:0]   tape    COMPAQ   SDLT320          5F5F  /dev/st1   /dev/sg10
[0:0:12:0]   mediumx COMPAQ   MSL5000 Series   0520  /dev/sch0  /dev/sg11
[4:0:0:0] cd/dvd NECVMWar VMware SATA CD01 1.00 /dev/sr0 /dev/sg

...

# cat /proc/scsi/sg/device_hdr; cat /proc/scsi/sg/devices

The output will look something likeOutput example:

host    chan    id      lun     type    opens   qdepth  bus    online
4       0       0       0       5       1       1       0      1
5       0       0       0       0       1       1       0      1

The fifth field column ("type") is the device type.value has the following correspondence:

ValueDevice
0Disk
1Tape
5CD-ROM
8Tape changer

The "N" in the "/dev/sgN" device is the line number in this table (starting from 0) corresponded to the devices CHARON-AXP will use.Thus corresponding to the output provided by the commands above without taking the header into account so here "/dev/sg0" will be corresponds to the the CD-ROM mapping in this example.

Include Page
KBCOMMON:DOC-GoToToc
KBCOMMON:DOC-GoToToc

...