Created
December 31, 2012 21:04
-
-
Save leepa/4422736 to your computer and use it in GitHub Desktop.
How to determine which ata device is which sata device on linux - really handy!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dmesg | grep 'ata[0-9]\+.[0-9][0-9]: ATA-' | \ | |
sed 's/^.*\] ata//' | \ | |
sort -n | sed 's/:.*//' | \ | |
awk ' { a="ata" $1; printf("%10s is /dev/sd%c\n", a, 96+NR); }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment