I'm getting kernel messages about 'ata3'. How do I figure out what device (/dev/sd_) that corresponds to?
Can't comment on previous answer, but for that one liner, you want to change the grep to be a little more restrictive as 1 and 10 are both valid ata#'s:
For my needs, I wanted to map a drive letter to an ata, so I wrote this, and on my system the ata string wasn't always the 5th component of the path:
Use it like this:
Just so we are clear the ATA number maps to the UNIQUE_ID, directly (they are the same number). So ATA #3 is UNIQUE_ID #3. Then you look up what HOST # is associated to the UNIQUE_ID
So here ATA #3 is UNIQUE_ID #3 is HOST #4
Then to get the drive letter just run “ls -lisah /sys/block” and find the HOST #4.
Here is a good stackexchange/superuser talking about this: Mapping ata device number to logical device name