View Full Version : Read SMART data from internal HDD
mochi
02-19-2011, 10:53 AM
Hello,
I've bought a PBO a couple of weeks ago, and I'm still tweaking it and trying to get the most of it.
Currently I'm using aasoror's megapack, so I would like to thank him for such a nice job.
So my question is if there's some kind of SMART tool that can be used with the PBO, a port of smartmon tools or something like that. I've searched the net without success.
I'm using the PBO both as a media player and as a storage device, so it would be nice if the internal HDD health could be monitored without taking it out from the case.
Thank you.
aasoror
02-19-2011, 11:23 AM
So my question is if there's some kind of SMART tool that can be used with the PBO, a port of smartmon tools or something like that. I've searched the net without success.
sure yes.
First install optware as detailed here (http://www.patriotmemory.com/forums/showpost.php?p=14244&postcount=1)(adapt where appropriate).
Then get the smartmon (http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/smartmontools_5.40-3_mipsel.ipk)from the same repository.
Best of luck,
mochi
02-19-2011, 03:21 PM
I've managed to install the smartmon package following your instructions and adding some additional required packages :
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ncurses_5.7-1_mipsel.ipk
ipkg-cl install ncurses_5.7-1_mipsel.ipk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/psmisc_22.13-1_mipsel.ipk
ipkg-cl install psmisc_22.13-1_mipsel.ipk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/libuclibc++_0.2.2-9_mipsel.ipk
ipkg-cl install libuclibc++_0.2.2-9_mipsel.ipk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/smartmontools_5.40-3_mipsel.ipk
ipkg-cl install smartmontools_5.40-3_mipsel.ipk
After that, I've added /opt/bin and /opt/sbin to the path variable.
Then I've typed the following (I have a new 500GB Western Digital drive that supports SMART) :
~ # smartctl -a -d sat -T permissive /dev/sda
smartctl 5.40 2010-10-16 r3189 [mipsel-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)
=== START OF INFORMATION SECTION ===
Device Model: [No Information Found]
Serial Number: [No Information Found]
Firmware Version: [No Information Found]
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: [No Information Found]
ATA Standard is: [No Information Found]
Local Time is: Sat Feb 19 12:36:51 2011 CST
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMAR
T supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMAR
T is enabled.
A mandatory SMART command failed: exiting. To continue, add one or more '-T perm
issive' options.
terminate called after throwing an instance of 'int'
Aborted (core dumped)
After that I've tried other options (using ata, scsi, ...), without success, so it seems that this mipsel version of smartmon doesn't support the RT1073 integrated SATA controller.
Thanks for your help.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.