From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24053 invoked by alias); 28 Mar 2015 16:03:02 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 24031 invoked by uid 89); 28 Mar 2015 16:03:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout12.t-online.de Received: from mailout12.t-online.de (HELO mailout12.t-online.de) (194.25.134.22) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 28 Mar 2015 16:03:00 +0000 Received: from fwd28.aul.t-online.de (fwd28.aul.t-online.de [172.20.26.133]) by mailout12.t-online.de (Postfix) with SMTP id 7E03F603FD6 for ; Sat, 28 Mar 2015 17:02:57 +0100 (CET) Received: from [192.168.2.103] (TzqqXwZaQhE3COa5u9VJzlyVjGshhcV30nylxc3XteFFrCpQ0jWiCqjiB0zy3INwg3@[79.224.104.130]) by fwd28.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YbtCF-13umrQ0; Sat, 28 Mar 2015 17:02:51 +0100 Message-ID: <5516D0AA.70101@t-online.de> Date: Sat, 28 Mar 2015 16:21:00 -0000 From: Christian Franke User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Recent x86_64 update broke administrator use of smartctl.exe References: <5515FB35.9020709@abattoir.com> In-Reply-To: <5515FB35.9020709@abattoir.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00507.txt.bz2 banshee wrote: > I have two windows 7 x64 boxes, one running cygwin x86 and the other > x86_64. I run smartctl on both boxes. One can run smartctl as > administrator or not, but it produces a fuller information set with > admin rights. A recent change to the x86_64 cygwin has broken > administrator use of smartctl as detailed below. It still runs fine > on the x86 cygwin. > > I'm not certain which version of cygwin broke the functionality, but > it was working last week. > Any driver updates performed since then? Do both machines have similar SATA controllers and drivers? > ... > x86_64 running as ADMIN fails to run smartctl > $ /usr/sbin/smartctl.exe -a /dev/sda > smartctl 6.3 2014-07-26 r3976 [x86_64-unknown-cygwin-win7-sp1] > (cygwin-6.3-1) > Copyright (C) 2002-14, Bruce Allen, Christian Franke, > www.smartmontools.org > > Read Device Identity failed: Input/output error > Could not reproduce this. The Windows IO-controls IOCTL_ATA_PASS_THROUGH or SMART_RCV_DRIVE_DATA possibly return some unexpected error code. This is typically a SATA driver issue. The output of "smartctl -r ioctl,2 -i /dev/sda" should provide more details. Could you possibly repeat the above test this with the "native" (non-Cygwin) Windows version of smartctl? This is likely not a Cygwin specific issue. Smartctl does not use any Cygwin functionality to do ATA/SCSI pass-through access. Cygwin and native version of smartctl share the same code. We could continue the discussion by private mail or on smartmontools-support mailing list if desired. Christian -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple