Sample Header Ad - 728x90

Naming of SAS block devices under /dev/disk/by-id?

2 votes
1 answer
335 views
When one uses SATA SSDs or HDDs under Linux, they can be addressed in numerous ways, like for example: /dev/sda /dev/disk/by-id/ata-TOSHIBA_MG05ACA800E_78LBK8P7FUUD /dev/disk/by-id/wwn-0x50000398abc0251c which, on my system, all refer to the same disk. I recently started to use a couple SAS disks of different make and model, and I noticed that these SAS disks seem to behave a bit different. For example /dev/sdb /dev/disk/by-id/scsi-35000cca01337732c /dev/disk/by-id/wwn-0x5000cca01337732c are also all the same disk. But I would have expected that there would also be a device file like, for example /dev/disk/by-id/scsi-HGST_HUSSL4040BSS600_XWVZGT1A so the format would be similar to the SATA disk, -__. I would find this much more convenient. So I wonder, why are the SAS disks treated differently in this regard from other disks? even NVME disks have a similar device file with the manufacturer, model and serial number in its name, but not the SAS disks. Bonus question: is it possible (with the aid of some udev rule?) to have these more informative device files also for the SAS disks?
Asked by T. Pluess (626 rep)
Jun 19, 2024, 05:56 PM
Last activity: Jun 25, 2024, 08:47 AM