delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/28/12:03:21

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=Kc3vHRdjVj9yc06dLORVU3+N9NraLDNuKiWaSjWhaqw
UXqnnmQaFXtPeCFT7Ifi7uOdgi1pEwk0Zk4sXe7n9HatauVlWGaSLypRJsYT+uc6
gAR/HKXrPpe32JAxGDORzMsg38Pj7VDdDMvl5YD4/2GmqqCPXy1jTOk5Fo/0h0qo
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=ozLA7xvqR5I4cen5TlTtff/+/Vo=; b=CKuyOQsHdUCWplzru
FKqF6ky66ZJuaPnuga60lcSBaSVuuutO39HpArANnZUQT8o0eSY/UmxrBFeNKO7/
1ucl+s47ItEMsRbYTEU3dgZbeWPBxDL16z2kwQxc8Vv+3ub7fGbZILQQO1Afm/d+
l93OcjhqDuWD9RcCwTvlg/QLyk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Message-ID: <5516D0AA.70101@t-online.de>
Date: Sat, 28 Mar 2015 17:02:50 +0100
From: Christian Franke <Christian DOT Franke AT t-online DOT de>
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 AT cygwin DOT com
Subject: Re: Recent x86_64 update broke administrator use of smartctl.exe
References: <5515FB35 DOT 9020709 AT abattoir DOT com>
In-Reply-To: <5515FB35.9020709@abattoir.com>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019