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.

Is there a Linux command that would allow me to get model information for hard drives? I'm running CentOS.

I want to compare the hard drives on two VPS providers that I use.

share|improve this question
    
"Compare" how? Speed? Reliability? –  Andrew Sep 29 '11 at 1:43
add comment

1 Answer

up vote 13 down vote accepted

One of these should work:

smartctl --all /dev/sda
hdparm -I /dev/sda

However, if this is a VPS you may not get back reliable data. If that's the case (you get back what's obviously a virtual HDD), there's nothing you can do.

share|improve this answer
    
Yes, it tells me that is a VMware disk: "Device: VMware Virtual disk Version: 1.0" Thanks. –  adrianTNT Sep 29 '11 at 0:27
2  
Yep, no way to tell what's underneath that virtual disk... –  Sean Reifschneider Sep 29 '11 at 0:51
1  
Also lshw is good –  Zoredache Sep 29 '11 at 4:08
add comment

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.