TiVoCommunity.com
(c)opyright 1995-2005 All rights reserved
indexcheckTC
This area is a static history of posts in the TiVo Community Forum Archive.
This archive history was made for the simple indexing of search sites like
Google.
Pages:1
smartctl -- S.M.A.R.T. Hard Drive Monitoring App (Series 2)
(Click here to view the original thread with full colors/images)
Posted by: davistw
I compiled the latest version (5.26) of smartctl for the Mips (Series 2).. (See http://smartmontools.sourceforge.net )
I tested it on my unit and it seems to work as advertised but.....
Since this is the first time I compiled anything on a Linux platform let alone cross compile, I would appreciate it if one of the experts take a look at it and see if I missed anything?
Note: If this looks good I will give it a whirl to compile the smartd (daemon) tool that periodically polls and monitors the smart status of the drive/s.
NOTE: I couldn't post the binary on here because it was a few bytes too big. You can get it from.
http://www.deal_database.com/forum/...ead.php?t=31223
Note: you will have to edit the above url to get it to work (remove the _)
Posted by: Milhouse
Did you have to make any mods to 5.26 to get it to compile? Naturally the Series 2 is very different from the Series 1 (from an architecture point of view) but getting a working 5.26 on S1 is proving to be a bit of a PITA :)
Aside from a missing header (scsi/scsi_ioctl.h) and missing definitions (ENOTSUP/ENOTSUPP) once it does compile the data returned by ioctl seems to be all jumbled up - possibly an endian issue but having tried a new cross-compiler (built based on the mbm script) I'm getting the same byte-swapped issues I did with dtype's x-compiler, so clearly it's not a compiler issue (at least I don't think it is).
Did you have any byte-swap issues with your MIPS build?
Posted by: davistw
quote:
Originally posted by Milhouse
Did you have to make any mods to 5.26 to get it to compile? Naturally the Series 2 is very different from the Series 1 (from an architecture point of view) but getting a working 5.26 on S1 is proving to be a bit of a PITA :)
Aside from a missing header (scsi/scsi_ioctl.h) and missing definitions (ENOTSUP/ENOTSUPP) once it does compile the data returned by ioctl seems to be all jumbled up - possibly an endian issue but having tried a new cross-compiler (built based on the mbm script) I'm getting the same byte-swapped issues I did with dtype's x-compiler, so clearly it's not a compiler issue (at least I don't think it is).
Did you have any byte-swap issues with your MIPS build?
No I didn't have to change anything to get it to compile. I just did a ./configure and a make...
I changed the sysconfdir to point to /var/hack/ but that is it...
Posted by: Milhouse
Thanks davistw - I guess I'll have to continue with my investigations when I get time :)
Posted by: davistw
quote:
Originally posted by davistw
Note: If this looks good I will give it a whirl to compile the smartd (daemon) tool that periodically polls and monitors the smart status of the drive/s.
I got smartd to compile and work. I am attaching it ... I am also including a script to post errors in a log in /var/log when errors occur. The next thing I am going to make it do is post an email to TiVo message....
Posted by: davistw
quote:
Originally posted by davistw
I compiled the latest version (5.26) of smartctl for the Mips (Series 2).. (See http://smartmontools.sourceforge.net )
NOTE: I got the binary down to where I can post it now...
Posted by: SR712
This is great. I have one question. These tivo-mail messages are piling up so that every time I reboot and go to Now Showing, I have 11 messages I have to scroll through. How do I get rid of them, and in addition, how do I stop it from posting a new message every time I reboot? I'd like only reporting on errors. Thanks for a unique app. Very nice.
Posted by: Snoopy
I understand I can enable smart drive by option -e. I have a series 1 tivo but am posting here because it looks like the discussion is active. I was told today that this may not be a module to turn on smartdrive but rather simply to monitor the status of the drive. Is there any way to enable smartdrive on my t60 series 1?
Posted by: SR712
Hey Snoops! :)
smartctl --smart=on /dev/hda
will do it.
smartctl -i /dev/hda will tell you the stats.
smarctl -h gives you all the options.
Smartd is for Series2 only, so you can't use that with your unit.
Posted by: Snoopy
quote:
Originally posted by SR712
Hey Snoops! :)
smartctl --smart=on /dev/hda
will do it.
smartctl -i /dev/hda will tell you the stats.
smarctl -h gives you all the options.
Smartd is for Series2 only, so you can't use that with your unit.
Outstanding! Thanks for those instructions. It looks like there are several locations, source files, etc floating around. Can you point me to the most correct one for series 1?
Posted by: SR712
Hey Snoops!:D There is one that comes on a Series 1 unit. The commands are different for that version, but can be obtained by smartctl -h . This is the one I am using successfully... It was provided by someone here, I just forget who (sorry).
For PowerPC/Series 1 only....
Posted by: Snoopy
Outstanding! Thanks for that. It appears to make the system a litte more stable.
Posted by: davistw
Here is a MIPS compile of the latest release (5.30) of smartctl and smartd. I have tested these on my HDVR2 and it did not erase any of my I love Lucy episodes but your milage may vary....
Note: the zip file was too big for this site so if you want it you will have to go over to the darkside (D ealdatabase) to get it....
Posted by: SR712
Ummm... is there any way to get rid of these "test" messages? I reboot my tivo quite often, and now have to scroll through 22 "test messages" in Pre-Tivo Central. Quite annoying, eh? Any info would be appreciated. I disabled smartd, as I couldn't stand any more messages to go through.
Posted by: davistw
quote:
Originally posted by SR712
Ummm... is there any way to get rid of these "test" messages? I reboot my tivo quite often, and now have to scroll through 22 "test messages" in Pre-Tivo Central. Quite annoying, eh? Any info would be appreciated. I disabled smartd, as I couldn't stand any more messages to go through.
Sure, just change the smartdalert script to make it do what you want....
Posted by: SR712
And that deletes the existing messages in Pre-TiVo Central? Thats funny, disabling smartd doesn't do that, I fail to see how changing the script will.
Posted by: davistw
quote:
Originally posted by SR712
And that deletes the existing messages in Pre-TiVo Central? Thats funny, disabling smartd doesn't do that, I fail to see how changing the script will.
Sorry, I thought you were asking how to make it stop sending them. On my Tivo they delete themselves after I read them. If they don't on yours you could always go into the mail portion of tivoweb and manually delete them.
Posted by: SR712
Thanks. :D TiVo web works. But, if you don't delete them manually, they come back after you reboot. All of them.
Posted by: Snoopy
That should work. Be carefull, it's a dangerous file if you don't know what you are doing.
vBulletin Copyright ©2000 - 2009,
Jelsoft Enterprises Limited.
vB Easy Archive Final ©2000 - 2009
- Created by Stefan "Xenon" Kaeser
Modified by Adam J. de Jaray