Skip to content

Instantly share code, notes, and snippets.

@facundobianco
Created June 12, 2015 17:53
Show Gist options
  • Save facundobianco/0c5230e73c552e0a175f to your computer and use it in GitHub Desktop.
Save facundobianco/0c5230e73c552e0a175f to your computer and use it in GitHub Desktop.
apt-get install --no-install-recommends -y hdparm lshw
hdparm -I /dev/sda | sed -n '/Number/p;/size.*GB/p'
lshw -class disk -class storage
@facundobianco
Copy link
Author

How I use the information

Vendor:        foo
Model:         bar
Size:          500GB
Serial number: foo-bar1234567890
Physical ID:   1
Bus info:      scsi@1:0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment