LINUX.ORG.RU

История изменений

Исправление dva20, (текущая версия) :

Если кому-нибудь будет ещё интересно, то можно посмотреть в каком порядке именуются устройства на шине PCI, у меня это так:

$ lspci 
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 05)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.5 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

А здесь ссылки на дисковые устройства с маркировкой на шине PCI (00:1f.2 и 03:00.0) на котором они находятся:

$ ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:00:1f.2-ata-1 -> ../../sda
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0 -> ../../sda
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part6 -> ../../sda6
lrwxrwxrwx 1 root root  9 2021-11-17 17:04 pci-0000:00:1f.2-ata-2 -> ../../sdc
lrwxrwxrwx 1 root root  9 2021-11-17 17:04 pci-0000:00:1f.2-ata-2.0 -> ../../sdc
lrwxrwxrwx 1 root root 10 2021-11-17 17:14 pci-0000:00:1f.2-ata-2.0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 2021-11-17 17:14 pci-0000:00:1f.2-ata-2-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:03:00.0-ata-1 -> ../../sdb
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0 -> ../../sdb
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1-part2 -> ../../sdb2

Исправление dva20, :

Если кому-нибудь будет ещё интересно, то можно посмотреть в каком порядке именуются устройства на шине PCI, у меня это так:

$ lspci 
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 05)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.5 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

А здесь ссылки на дисковые устройства с маркировкой шины PCI (00:1f.2 и 03:00.0) на котором они находятся:

$ ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:00:1f.2-ata-1 -> ../../sda
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0 -> ../../sda
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part6 -> ../../sda6
lrwxrwxrwx 1 root root  9 2021-11-17 17:04 pci-0000:00:1f.2-ata-2 -> ../../sdc
lrwxrwxrwx 1 root root  9 2021-11-17 17:04 pci-0000:00:1f.2-ata-2.0 -> ../../sdc
lrwxrwxrwx 1 root root 10 2021-11-17 17:14 pci-0000:00:1f.2-ata-2.0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 2021-11-17 17:14 pci-0000:00:1f.2-ata-2-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:03:00.0-ata-1 -> ../../sdb
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0 -> ../../sdb
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1-part2 -> ../../sdb2

Исходная версия dva20, :

Если кому-нибудь будет ещё интересно, то можно посмотреть в каком порядке находятся устройства на шине PCI, у меня это так:

$ lspci 
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 05)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.5 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
03:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

А здесь ссылки на дисковые устройства с маркировкой шины PCI (00:1f.2 и 03:00.0) на котором они находятся:

$ ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:00:1f.2-ata-1 -> ../../sda
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0 -> ../../sda
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1.0-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:00:1f.2-ata-1-part6 -> ../../sda6
lrwxrwxrwx 1 root root  9 2021-11-17 17:04 pci-0000:00:1f.2-ata-2 -> ../../sdc
lrwxrwxrwx 1 root root  9 2021-11-17 17:04 pci-0000:00:1f.2-ata-2.0 -> ../../sdc
lrwxrwxrwx 1 root root 10 2021-11-17 17:14 pci-0000:00:1f.2-ata-2.0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 2021-11-17 17:14 pci-0000:00:1f.2-ata-2-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:03:00.0-ata-1 -> ../../sdb
lrwxrwxrwx 1 root root  9 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0 -> ../../sdb
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1.0-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2021-11-17 16:58 pci-0000:03:00.0-ata-1-part2 -> ../../sdb2