To see a list of all SCSI and SATA hard disks and CD/DVD drives on a Linux system, you can use the lsscsi
command. This command will show a list of all SCSI devices, including hard disks and CD/DVD drives, and their associated device names.
To run the lsscsi
command, simply open a terminal and type lsscsi
. The output will be a list of devices in the following format:
[TYPE] H:C:T:L DEVICE
Where TYPE
is the device type (e.g. disk
for hard disks or cd/dvd
for CD/DVD drives), H:C:T:L
is the SCSI host, channel, target, and logical unit number, and DEVICE
is the device name.
For example, the output might look something like this:
[3:0:0:0] cd/dvd TSSTcorp DVD-ROM SH-D162D /dev/sr0 [3:0:1:0] disk WDC WD5000BPVT-22HXZT3 /dev/sda
This indicates that there is a CD/DVD drive at SCSI address 3:0:0:0
with device name /dev/sr0
, and a hard disk at SCSI address 3:0:1:0
with device name /dev/sda
.
You can also use the lsscsi
command with the -g
option to show the device model and vendor information. For example:
lsscsi -g
This will show the device model and vendor information in the output, in addition to the other device information.