Richard W Stevens author of UNIX Networking Programming and
TCP/IP Illustrated Book series. URL: http://www.kohala.com/
One Day One Command
hdparm — Get/Set Hard Disk Parameters.
hdparm provides a command line interface to various hard disk ioctls
supported by the stock Linux ATA/IDE device driver subsystem.
You *MUST* read the man page completely, if you want to do anything
else, apart from this examples.
$ hdparm -i /dev/hda — Display the identification info that was
obtained from the drive at boot time.
$ hdparm -I /dev/hda — Request identification info directly from the
drive and display in a new expanded format.
Read: man hdparm