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?
|
feedback
|
|
Look in | |||||
feedback
|
|
| |||
|
feedback
|
|
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. | |||
|
feedback
|
|
My standard quick way of checking which physical drives are mapped to which device entries is to run "sudo fdisk -l". This will show the size and partition table of each disk, which is usually enough information to know what's what. "sudo blkid" can also be useful, especially when looking for the types and UUIDs of partitions. | |||
|
feedback
|
