...
Procedures of finding the target "/dev/sg" device
First method
...
Method 1
Open a terminal console and issue:
|
The output will look something like:
[0:0:0:0] disk VMware Virtual disk 1.0 /dev/sda /dev/sg0
[0:0:1:0] disk VMware Virtual disk 1.0 /dev/sdb /dev/sg1
[0:0:2:0] disk VMware Virtual disk 1.0 /dev/sdc /dev/sg2
[0:0:3:0] disk VMware Virtual disk 1.0 /dev/sdd /dev/sg3
[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 |
If the "lsscsi
" command is not installed on you system, use "yum install lsscsi
" to make it available. If you cannot install "lsscsi
", use method 2 or method 3 below.
Method 2
Open a terminal console and issue:
# cat /proc/scsi/sg/device_hdr; cat /proc/scsi/sg/devices |
The output will look something like:
...
Include Page | ||||
---|---|---|---|---|
|
Div | ||
---|---|---|
|
...
Method 3
On a freshly booted system, issue the following command:
# dmesg | grep sg |
The output will look like that:
...