Linux hard drive information

Sometimes it is useful to get some more information about your hard drive than just the size remaining. For this purpose there is a Linux package called smartmontools available, which can be easily installed.

Once available you can inspect different quantities and qualities of your drive by issuing smartctl commands. A good article is available over at TechRepublic.com written by Vincent Danen

The tools will be installed to /usr/sbin/smartctl. In case you are on a machine that does not have sbin in it’s path (I was working on a bananapi, which does not) you will have to precede the commands with the full path.

Some commands and their output are given below.

Get the basic information from your drive

Starting a short test

Viewing the test results

The test results will be at the end of the ouptut provided by smartctl -a. Test information starts with a hash.

Leave a Reply

Your email address will not be published. Required fields are marked *

By submitting this form, you accept the Mollom privacy policy.