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

link|improve this question

feedback

2 Answers

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.

link|improve this answer
3  
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
feedback

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

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

Your Answer

 
or
required, but never shown

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