Allow2010 Posted November 16, 2012 Share Posted November 16, 2012 (edited) Thanks for taking a look...Supporting drivedb.h seems logical to me, as this db is updated by the smartmontools team anyway, and it can be freely downloaded...even a simple autoupdater could be integrated to downloadhttp://sourceforge.net/apps/trac/smartmontools/export/HEAD/trunk/smartmontools/drivedb.h Edited November 16, 2012 by Allow2010 Link to comment Share on other sites More sharing options...
Allow2010 Posted November 18, 2012 Share Posted November 18, 2012 I've put a GUI around it and stripped it back to just a few parameters of interest to me and I find it quite useful.would you mind sharing your version? Link to comment Share on other sites More sharing options...
4Eyes Posted November 19, 2012 Share Posted November 19, 2012 (edited) @ripdad, Ok, I'm in front of the pc in question. It has 2 drives. The stats are as follows: Drive Model R/C POH Raw POH PowerCycles Start/Stop H/W ECC recovered Temp Date code c: ST3500418AS 1134 10172 39 + 188 231 231 41293 37C 09523 e: ST3500630A 0 20052 78 + 84 230 1353 41265 44C 08073 R/C is reallocated sectors count Raw POH is no. of cycles + raw/value I find it quite interesting that the older drive as determined by the date code printed on the drive seems to be in better shape than the newer drive. Just goes to show that you can't predict the performance. BTW, this is my work pc at one site where I am 1-2 days each school week. The pc gets powered off most days. I'll keep an eye on those POH figures today and see if it appears to increment at the expected 1 count per real time hour. @Allow2010, Yes, the drivedb.h file could be downloaded auto and parsed etc. I think ripdad has already said that that is not in his plans. You are free to do that if you like I'm sure. BTW, I'll post my mod'ed script with the GUI a little later today when I get some updated POH data on this pc. Edit: a couple of hours later and the POH counters have incremented by 2 as expected. Edit2: @Allow2010, I've attached the code I mentioned that puts a GUI around ripdad's base SMART code. No biggie.SMARTInfo5a.au3 Edited November 20, 2012 by 4Eyes Link to comment Share on other sites More sharing options...
Allow2010 Posted November 21, 2012 Share Posted November 21, 2012 Thanks! For me it does not work, errors out with access denies in line 334... will take a closer look when i can find the time... Link to comment Share on other sites More sharing options...
4Eyes Posted November 22, 2012 Share Posted November 22, 2012 Allow2010, Line 334 is in ripdad's code. If the original version runs on your machine then SMARTInfo5A should too. Link to comment Share on other sites More sharing options...
ripdad Posted November 23, 2012 Author Share Posted November 23, 2012 4Eyes,Inserting #RequireAdmin at the top of your script will probably make the "access denies" go away.I was looking at your stats for the model ST3500418AS. Looks like trouble with the reallocated sectors.Nice script by the way. Noticed that you had some trouble with fixed and usb drives. Did you have any errors?I will be updating soon to make some minor changes. So, if you noticed something in the script you were havingtrouble with, please let me know. Thanks.---Allow2010,My decision at post #51...This will be about as far as I'm willing to go with this project, without building a database on vendors and models,lest it turn into a full-time job.still stands, even after looking at drivedb.h, which is quite informative.If anyone wants to take the script to that level, you have my blessings! "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
Allow2010 Posted November 23, 2012 Share Posted November 23, 2012 ok, thanks for making that clear... anyway, thank you for the code and for any updates :-) Link to comment Share on other sites More sharing options...
4Eyes Posted November 25, 2012 Share Posted November 25, 2012 (edited) ripdad, In the several different environments where I work I have full admin priv's and UAC turned off. Never struck an issue with client pc's yet either but yes, point taken. "some trouble with fixed and usb drives", um... no. My WD USB drive doesn't want to co-operate and it's the only one I have access to on a regular basis so I just don't test for them. In my work as a computer tech I'm more interested in the internal drives. Although, now that you've made me think about it, I might have another look. [Edit] O I C... left a bunch of comments in. Oops. Really meant to leave your original code alone, now I see that I changed to test for fixed drives. Hmmm... running your original code alone shows what probably led me to that initially, with my external USB hdd and a flash drive plugged in, it sees neither, which is no biggie, but... I assume as I already said, the WD external doesn't support SMART. Yes, on paper that drive with all the reallocated sectors looks in poor shape. It has a bunch of Ghost images on it but I think there a backup copy anyway. Thanks for the nice script comment but it's just a simple GUI wrapper around your original work that does the heavy lifting. SMART has always seemed so useful to me but I could never understand it. Now that I understand about the 'cycle' counters it makes a lot of sense. But the good sense is then undone by manufacturers that have to bastardise the standard but records minutes or seconds instread of hours. Ok, maybe hours is a little coarse but without a 3rd counter it would wrap around really quickly. They should just leave it alone or wait for an update of the standard. Edited November 25, 2012 by 4Eyes Link to comment Share on other sites More sharing options...
ripdad Posted November 26, 2012 Author Share Posted November 26, 2012 Updated 1st Post to v1.01 "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
ripdad Posted November 26, 2012 Author Share Posted November 26, 2012 (edited) 4Eyes,They should just leave it alone or wait for an update of the standard.Agreed, but... not much we little people can do about it.I'm glad people are getting some use of this script.Couldn't do it without feedback from forum members.And.... you can blame or thank ricky03 for getting me into this project in the first place!Please let me know if anyone has problems or questions with this last update.Thanks. Edited November 26, 2012 by ripdad "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
Allow2010 Posted November 26, 2012 Share Posted November 26, 2012 (edited) Thanks for the Update, works fine so far and my ssd is detected. But one thing: i have a test hd with bad sectors (see picture) i would say this is failing...the script does not say so... Edited November 26, 2012 by Allow2010 Link to comment Share on other sites More sharing options...
ripdad Posted November 26, 2012 Author Share Posted November 26, 2012 Allow2010, Attribute 187: Columns 3 and 4 have the error bit set to 1. Thats a critical error. Column 13: Total is 923. Attribute 190: Temperature has never been above 29C. Very good. Attribute 197,198: The count in column 13, (2) is too small to trigger an event. Every drive is different, but I'd say that not enough parameters have hit their thresholds for a "PredictFailure" event. --- By the way, I found something you can do to allow SMART some time to scan the drive properly. Usually, Operating Systems have the hard drive too busy to get a thorough scan. At POST, thats when you see the Logo of the vendor who made your PC upon "power up", press the pause button to make it stay there. SMART will take advantage of this time. Wait about an hour, then hit your space bar to continue booting. "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now