# ls -l /sys/block/sd*`
lrwxrwxrwx 1 root root 0 Oct 8 21:20 /sys/block/sda -> ../devices/pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Oct 8 21:20 /sys/block/sdb -> ../devices/pci0000:00/0000:00:17.0/ata3/host2/target2:0:0/2:0:0:0/block/sdb
lrwxrwxrwx 1 root root 0 Oct 8 21:20 /sys/block/sdc -> ../devices/pci0000:00/0000:00:17.0/ata4/host3/target3:0:0/3:0:0:0/block/sdc
Created
October 16, 2020 18:32
-
-
Save mowings/cd83cec16f0e7b593b83791518e9ae26 to your computer and use it in GitHub Desktop.
Get block device associated with ata channel (slot)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment