Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Given a linux server (in my case Ubuntu) what's the easiest way to find out what make/model of harddisk and memory are being used?

i.e. what is the equivalent of /proc/cpuinfo for disk and memory?

Thanks. J

share|improve this question
up vote 7 down vote accepted

You can get a lot of information about your system like this:

sudo lshw | less

To limit it to particular types of devices:

sudo lshw -class CLASS

Where "CLASS" might be "disk", "storage", "volume", "memory", etc. To see what classes are in use, do sudo lshw -short.

You can use this to show the vendor, model, serial number, size, etc. of your hard drives. I don't know of any way to show vendor and model of memory.

share|improve this answer
Try dmidecode may help for memory. Probably won't display vendor string, but you can lookup the ID. dmidecode -t 17 – jscott Aug 21 '10 at 21:45
wow, that really is useful! – Joel Aug 21 '10 at 22:31

I think a more simple approach is to use the hdparm command, by typing hdparm -i /dev/sda for example.

share|improve this answer
Joel wants disk info and memory info – sebthebert Aug 23 '10 at 15:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.