PDA

View Full Version : [ubuntu] Hard Drive Parameters



twjolson
March 1st, 2011, 09:10 PM
I am working on a shell script, and I was wondering if there was a command that will give me all the same info about a hard drive (model, manufacturer, location, size, etc) as it gives in the Disk Utility program? That is a GUI only application.

I know about hdparm, but that isn't working on my local machine, so I can't tell if that is a good fit.

dabl
March 1st, 2011, 09:35 PM
I know about hdparm, but that isn't working on my local machine,


sudo apt-get update && apt-get install smartmontools


sudo smartctl -ia /dev/sda

for /dev/sda.

twjolson
March 2nd, 2011, 02:37 AM
Yes, that is exactly what I needed. Thank you very much.