Detailed information about the hard disk type, disk vendor etc. of the disk used on a Linux system can be aquired with the linux tool hdparm. If hdparm is not installed on your server, it can be installed with this command (on Debian and Ubuntu systems):

apt-get install hdparm

For other Linux distributions, use the software installer and search for the package name 'hdparm'.

To get the detailed disk info, run this command

hdparm -I /dev/sda

The device /dev/sda is the first SATA disk on the server, the second disk is /dev/sdb. Replace /dev/sda in the command with the name of the device that you want to query.

Tagged on:         

2 thoughts on “How to get detailed information about the harddisk installed on a Linux server

  • December 2, 2012 at 7:19 am

    This is helpful for Sabayon X, a derivative of gentoo.

    I can’t seem to figure out how to get the UUID of my hard drive to create a fstab auto mount command

  • December 2, 2012 at 7:21 am

    This will list my drives by UUID

    ls -l /dev/disk/by-uuid


Leave a Reply

Your email address will not be published. Required fields are marked *