From: Holger F. <hol...@vs...> - 2006-08-07 12:44:19
|
Hi, >> I'm running smartmontools for Windows on a Windows 2003 Server. >> Unfortunally reading smart selftest logs is not possible: >> >> >> >> C:\Program Files\smartmontools\bin>smartctl.exe -a /dev/hda >> smartctl version 5.37 [i686-mingw32-2003-sp1] Copyright (C) 2002-6 >> Bruce Allen >> [...] >> Error SMART Error Log Read failed: Input/output error >> Smartctl: SMART Error Log Read Failed >> Error SMART Error Self-Test Log Read failed: Input/output error >> Smartctl: SMART Self Test Log Read Failed >> Device does not support Selective Self Tests/Logging >> > smartctl tries 2 (5.36) or 3 (5.37-0-20060720) ioctls to read the logs > until success or an error code != "function not implemented" is returned. > With the 20060720 release, it is possible to specifiy the ioctls used, > see "smartctl -h" output for a brief documentation. > On Win2003, using new IOCTL_ATA_PASS_THROUGH first may work: > > smartctl -a /dev/hda:as Thanks for your help. Adding ":a" works fine. > Some ioctl probably returns an unexpected error code. Try > > smartctl -r ioctl,2 -l selftest /dev/hda > > for detailed output. For diagnostics here is the result of the failed IOCTL (without ":a"): === START OF READ SMART DATA SECTION === REPORT-IOCTL: DeviceFD=0 Command=SMART READ LOG InputParameter=6 SMART_RCV_DRIVE_DATA failed, Error=122 Input : CMD=0xb0, FR=0xd5, SC=0x01, NS=0x06, CL=0x4f, CH=0xc2, SEL=0x00 REPORT-IOCTL: DeviceFD=0 Command=SMART READ LOG returned -1 errno=5 [Input/outpu t error] ===== [SMART READ LOG] DATA START (BASE-16) ===== 000-015: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 016-031: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 032-047: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 048-063: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 064-079: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 080-095: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 096-111: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 112-127: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 128-143: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 144-159: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 160-175: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 176-191: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 192-207: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 208-223: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 224-239: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 240-255: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 256-271: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 272-287: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 288-303: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 304-319: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 320-335: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 336-351: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 352-367: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 368-383: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 384-399: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 400-415: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 416-431: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 432-447: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 448-463: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 464-479: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 480-495: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 496-511: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ===== [SMART READ LOG] DATA END (512 Bytes) ===== Error SMART Error Self-Test Log Read failed: Input/output error Smartctl: SMART Self Test Log Read Failed Best wishes, Holger -- -------------------------------------------------------------------- Holger Friedrich tel: (+49) 69 798 23684 Visuelle Sensorik und Informationsverarbeitung (VSI) J.W.Goethe-Universitaet Frankfurt Robert-Mayer-Str. 2-4 60054 Frankfurt am Main http://www.vsi.cs.uni-frankfurt.de -------------------------------------------------------------------- |