Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

vando commented Jul 31, 2015

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
You can’t perform that action at this time.