Getting disk statistics
The smartctl
command provides many disk statistics and tests the drives. The hdparm
command provides more statistics and examines how the disk performs in your system, which may be influenced by controller chips, cables, and so on.
Getting ready
The hdparm
command is standard on most Linux distributions. You must have root access to use it.
How to do it...
The -I
option will provide basic information about your device:
$ hdparm -I DEVICE $ hdparm -I /dev/sda
The following sample output shows some of the data reported. The model number and firmware are the same as reported by smartctl
. The configuration includes parameters that can be tuned before a drive is partitioned and a filesystem is created:
/dev/sda: ATA device, with non-removable media Model Number: WDC WD10EZEX-00BN5A0 Serial Number: WD-WCC3F1HHJ4T8 Firmware Revision: 01.01A01 Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev...