On Wed, Apr 09, 2025 at 01:41:21PM +0200, Petric Frank wrote:
Am Mittwoch, 9. April 2025, 11:35:27 CEST schrieb tomas@tuxteam.de:
Does /dev/disk/by-path fulfil your needs?
Not exactly. The names are like pci-0000-0b:00:0-ata-4 and
pci-0000-0d:00:0-ata-1.
Yes, that's necessary to account for multiple sata controllers.
Can i simply match *ata-<number> and take the "<number>" as connector id on the
mainboard ?
No. The number is the sata device number on a particular controller.
They can overlap between controllers. E.g.:
pci-0000:2b:00.0-ata-1
pci-0000:2b:00.0-ata-2
pci-0000:2b:00.0-ata-3
pci-0000:2b:00.0-ata-4
pci-0000:2c:00.0-ata-1
pci-0000:2c:00.0-ata-6
That's from a server with 6 sata connectors and 2 m.2 sata slots. The