Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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
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

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

 
discard

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.