As you mentioned in the comments on the user3588161 answer , you have a SATA and SAS drive attached to the same SAS controller, so I suggest using the smartctl command!
The smartctl team acts as a management and monitoring utility for SMART disks under Linux and Unix as operating systems. Type the following command to get information about / dev / sda (SATA drive):
For a SAS disk, use one of the following syntaxes:
# smartctl -d scsi --all /dev/sgX
I assume that all information is somehow related to this location: -
/sys/class/scsi_device/?:?:?:?/device/model
I suggest you try doing this to check what result it displays.
cat /sys/class/scsi_device/0\:0\:0\:0/device/{model,vendor}
(Backslashes next to zeros are designed to speed up special char : .)
In addition, I would like to invite you to visit these two links to get additional information or details, such as sample output, etc .: -
Find out the characteristics of your hard drive
Check drive behind Adaptec RAID controllers
source share