From: Bruce A. <ba...@gr...> - 2002-10-27 15:08:24
|
Brian, I apologize for not replying sooner. There has been some problem with the mailing list and I have not been getting the mail sent to it. Hopefully I willn now have access. Let me reply to all three postings at once: > hi can you tell me why send 1 for enable smart? use smartctl -e /dev/hda (or give appropriate device name). The man page has this as an example. If you have installed smartmontools on your system, do man 8 smartctl else in the directory where you have installed smartmontools, do man ./smartctl.8 > hi I am great to find your team.I read the ATA-4 , 5, 6 I want to know > about SMART difinium.If you are free can you tell me more. Please see the "REFERENCES" section on the web page http://smartmontools.sourceforge.net and read the man pages above. > I am use 2.4.14 for redhat linux. I stardy ATA-5 and I want use ioctl > send a value to Sector Number but I find I can not send to there can > you help me? I am not much of an expert -- the best I can do is suggest that you read the code in atacmds.c. There are twoo different IOCTLs used. The HDIO_DRIVE_CMD and HDIO_DRIVE_TASK. The latter ioctl may be what you need. Here is the argument order, I think unsigned char parms[HDIO_DRIVE_TASK_HDR_SIZE]= {WIN_SMART, // CMD SMART_STATUS, // FR 0, // NS 0, // SC normal_cyl_lo,// CL normal_cyl_hi,// CH 0 // SEL }; > can you tell me feature call d7h and dbh for? Look in the references above, or in atacmds.h, and you'll find: #define SMART_WRITE_THRESHOLDS 0xd7 #define SMART_AUTO_OFFLINE 0xdb Cheers, Bruce |