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

Monday, November 7, 2011 posted by Till

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.

Be Sociable, Share!


2 Responses to “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