Product Documentation and Knowledge Base - HomeDocumentation


Charon-VAXCharon-AXPCharon-PDPCharon-SSPCharon-PAR
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Table of Contents

General description

This section describes how to find proper "/dev/sg" device for CHARON mapping

Back to Table of Contents

Procedures of finding the target "/dev/sg" device

First method

In xterm console issue:

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

The output will look something like:

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 ("type") is the device type.

ValueDevice
0Disk
1Tape
5CD-ROM

The "N" in the "/dev/sgN" is the line number in this table (starting from 0) corresponded to the devices CHARON-AXP will use.

Thus "/dev/sg0" will be CD-ROM mapping in this example.

Back to Table of Contents

Second method

On a freshly booted system please issue the following command:

# dmesg | grep sg

The output will look like that:

[ 1.503622] sr 4:0:0:0: Attached scsi generic sg0 type 5
[ 1.780897] sd 5:0:0:0: Attached scsi generic sg1 type 0

(warning) This table lists all the devices, not only the real SCSI ones (SATA/IDE for example). CHARON supports only real SCSI devices.

  • No labels