Last active
August 29, 2015 14:14
-
-
Save geudrik/870c8588479bce4d1578 to your computer and use it in GitHub Desktop.
Show Disk Serial Numbers Next to Disk Letters (sde serialnumber)
This file contains hidden or 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
ls -l /dev/disk/by-id |gawk 'match($11, /[a-z]{3}$/) && match($9, /^ata-/) { gsub("../", ""); print $11,"\t",$9 }' |sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment