How to check the health of one’s Hard Disk On Ubuntu

So if your hard disk health is of concern, here’s a quick way to figure out if there’s an issue.  I will assume (in this case) that the computer has no operating system, but the utility can be used even if it does.  Below is a step-by-step tutorial on how to test the health of your hard disk using an ubuntu live cd.

Here are the steps:

  1. Boot from your live cd.
  2. Now when you’re at your desktop you’ll want to bring up the terminal (see figure below).  Disk help
  3. Now with your terminal open you’ll need to install the disk utility we’ll be using.  So in the terminal, type:

    sudo apt-get install smartmontools


  4. It’ll throw up a whole bunch of crazy computer stuff.  It’ll likely ask you if you want to install it (and a whole bunch of other packages) type y and hit enter.  See below:install smartmontools
  5. Very good, now let’s check to make sure your hard drive is coherent and uses S.M.A.R.T..  SMART stands for Self-Monitoring, Analysis and Reporting Technology and basically stores info about your hard drive’s performance.  To make sure your hard drive is using it (it almost certainly is) go ahead and type:

    sudo smartctl -i /dev/sda

    Smart/dev/sda is the path to what is likely your primary hard disk.  This isn’t always the case, especially if you have multiple drives which could be sdb sdc or something else.  For those in that situation, I feel safe assuming that you know which one you’re after.

    1. If it’s available and enabled, you’re good to go.
    2. If it’s available but not enabled type

      sudo smartctl -s on /dev/sda

      and carry on.

    3. If it’s not available and therefore not enabled, this tutorial won’t be of much help to you.
  6. Now, time to test do a long test.  Place the computer somewhere where it won’t be disturbed and type:

    sudo smartctl -t long /dev/sda 

    The result will look something like below, wherein it will give you the amount of time it will take to make it happen.long test

  7. After waiting for the recommended amount of time, come back and type:

    sudo smartctl -l selftest /dev/sda

    and it wil give you the stats on its latest tests.  If those stats are blank, it just needs some more time.

That should give you all the info you need to determine if your drive is toast.

Good luck!

How to check the health of one’s Hard Disk On Ubuntu

2 thoughts on “How to check the health of one’s Hard Disk On Ubuntu

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s