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

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.

facebooktwittergoogle_plusredditlinkedinmail

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

  1. ElectricPrism says:

    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

  2. ElectricPrism says:

    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 *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>