i2c fun stuff (Previous message: [XCSSA] cases with chassis intrusion sensor)

xcssa@xcssa.org xcssa@xcssa.org
Mon, 31 Jul 2006 22:16:39 -0500


On Monday 31 July 2006 18:26, xcssa-admin@xcssa.org wrote:
> Hummm...... read the 'cases with chassis intrusion sensor' and got to
> thinking if i2c stuff and some other software (open source ?) could be used
> to do a harddrive analysis on the fly.

Not i2c man.  I2C is used to talk to devices that are connected to the i2c 
bus.  Things like lmsensors, switches, thermocouplers, etc.


> Useful for when one is at computer 
> shows to see what you're getting before getting the harddrive.

No.  To test a hard drive, just do this (93% accurate according to the 
author):
	# smartctl -t short /dev/hda&&sleep 300&&smartctl -a /dev/hda |grep -B2 ^#

This will run a 3 minute test and the output of a good drive will something 
like this:
Num  Test_Description    Status                  Remaining  LifeTime(hours)  
LBA_of_first_error
# 1  Short offline       Completed without error       00%      2990         -

00% shows that the test passed and 2990 is the spinning age of the drive in 
hours.  That should come in pretty handy when evaluating the drive health and 
how "used" it is.


> Not shure on the software, but the hardware side would include a
> combination of  usb 2.0 to ide/sata <
> http://www.scythe-usa.com/product/acc/013/scupc1000.html >; some type of
> either wireless connection to a remote home box (pda/phone via unix
> pipe/netcat/ssh && remote xwindows) or non-geeky pda/handheld w/
> appropriate HD analysis software installed.
> Comments?

What the heck are you talking about?  Am I talking to Craig.. or just some 
technobabble script? ;)

Tweeks