Results 1 to 5 of 5

Thread: SMART disk monitoring How-To

  1. #1
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Post SMART disk monitoring How-To

    A small tutorial for getting S.M.A.R.T. disk monitoring.
    You can monitor the health and temperature of your hard disks
    Note this will only work if your disks support the S.M.A.R.T. feature.
    Code:
    root@dorkbox:~#apt-get install smartmontools
    root@dorkbox:~#apt-get install hddtemp
    When hddtemp runs it will pop up a window about running the deamon at startup it recommends not to do so, you can choose either way.
    If you want to reconfigure this just run dpkg-reconfigure hddtemp to do so.

    Code:
    root@dorkbox:~#apt-get install sensors-applet
    You can add a panel applet with this.

    There is a front end of for smartmontools, to install GSmartControl using the package available here:

    Then use
    Code:
    root@dorkbox:~#dpkg -i gsmartcontrol_0.8.4+nmu1_i386.deb
    to install it.
    There is also an AMD64 package if needed.
    once it finishes running dpkg will complain about needing some missing libraries, just
    Code:
    root@dorkbox:~#run apt-get -f install
    and the gsmartcontrol will install them as well.

    To run the app
    go to: K menu> System> GSMartControl

    There may an easier way to do this, it was just the easiest that I found at the moment. Hit back if you need some help or have problems.
    Thank you
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  2. #2
    Member imported_Deathray's Avatar
    Join Date
    Oct 2007
    Posts
    381

    Default

    Nice tutorial Archangel, never thought about S.M.A.R.T in Linux as I've always been use to Windows taking advantage of S.M.A.R.T automatically .
    - Poul Wittig

  3. #3
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by Deathray View Post
    Nice tutorial Archangel, never thought about S.M.A.R.T in Linux as I've always been use to Windows taking advantage of S.M.A.R.T automatically .
    Thanks Deathray glad you enjoyed it.

    I know that a lot of newer mother boards take advantage of the tech too. But most people will not look at their bios everyday.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

  4. #4
    Senior Member streaker69's Avatar
    Join Date
    Jan 2010
    Location
    Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
    Posts
    3,535

    Default

    Quote Originally Posted by archangel.amael View Post
    Thanks Deathray glad you enjoyed it.

    I know that a lot of newer mother boards take advantage of the tech too. But most people will not look at their bios everyday.
    On a similar note, I just configured Conky to read the LM Sensor information. So now I can display Fan Speeds, CPU and Motherboard temps. I was gonna work on using the SMART to display similar in conky as well.
    A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

  5. #5
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere
    Posts
    8,012

    Default

    Quote Originally Posted by streaker69 View Post
    On a similar note, I just configured Conky to read the LM Sensor information. So now I can display Fan Speeds, CPU and Motherboard temps. I was gonna work on using the SMART to display similar in conky as well.
    After looking at this for a bit, I really found no relevant info on the net.
    But I suppose a cron job could be used to run the smartctl
    the output of course could then be read by conky.
    I did however try running something like this:
    Code:
    root@dorkbox:~# logsave /tmp/smartout.txt watch -n 15 smartctl --all /dev/hda
    Then use conky to read it by inserting the following into the conky config file
    Code:
    ${exec cat /tmp/smartout.txt}
    It should be obvious why that wouldn't be the best.
    To be successful here you should read all of the following.
    ForumRules
    ForumFAQ
    If you are new to Back|Track
    Back|Track Wiki
    Failure to do so will probably get your threads deleted or worse.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •