Home » Questions » Computers [ Ask a new question ]

which SATA port maps to which /dev entry?

which SATA port maps to which /dev entry?

I have an ubuntu box with 8 SATA drives, 6 on the mobo and 2 on an add-in card. How do i determine which physical drive maps to which of the /dev/sd% entries? it doesnt appear to be port 0 is sda, 1 is sdb, etc. is there a file somewhere that shows this mapping?

Asked by: Guest | Views: 274
Total answers/comments: 2
Guest [Entry]

Look in /sys/block, or run sudo lshw and look under your SATA controller.
Guest [Entry]

hdparm doesn't always work for me. I use "smartctl -i /dev/sda" (or a-z). I had to use smartcl on my USB based drives. It may depend on your drivers/adapter being used.