Find Out Hard Disk Details on Linux

The hdparm command provides a command line interface this command read / request identification information such as disk size, description and much more directly from the drive, which is displayed in a new expanded format.

To show this information use the following command:

hdparm -I /dev/sda

hdparm -I /dev/sdb

lshw Command

You need to install lshw command using your package manager. To display all disks and storage controllers in the system using the following the command:

lshw -class disk -class storage

Find out disks name only 

Use the following command:

lshw -short -C disk

smartctl Command

smartctl -d ata -a -i /dev/sda


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s