X-Spam-Check-By: sourceware.org Message-ID: <467569B1.5040605@t-online.de> Date: Sun, 17 Jun 2007 19:04:49 +0200 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Smartmontools don't work with /dev/stX, /dev/nstX References: <20070617115624 DOT GA31947 AT calimero DOT vinschen DOT de> <46754C80 DOT 1080803 AT t-online DOT de> <20070617161951 DOT GD4179 AT calimero DOT vinschen DOT de> In-Reply-To: <20070617161951.GD4179@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: TFMu9OZ1geaOeXnDTtGDJYW4LzrPJWSsRp7xfXWiA5Xt-EePXzjZss X-TOI-MSGID: 7b9b2456-08cf-4b05-b09e-14acba058be0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Corinna Vinschen wrote: > >> ATA/SCSI autodetection is also still missing, therefore it is required >> to use /dev/hdX for ATA, and /dev/sdX for SCSI (or ATA behind SATL) disks. >> This is also not consistent with Cygwin's device names, but more >> difficult to fix. >> > > I have another strange behaviour which I'm wondering how to solve. > I'm runing XP on a mainboard with ATI SB600 SATA controller in > "native IDE" mode(*). When I run smartctl onthe only drive in the > machine, I get the following reply: > > $ /usr/sbin/smartctl.exe -i /dev/sda > smartctl version 5.37 [i686-cygwin-xp-sp2] Copyright (C) 2002-6 Bruce Allen > Home page is http://smartmontools.sourceforge.net/ > > Device: ATI 1+0 JBOD Version: 1.10 > Device type: disk > Local Time is: Sun Jun 17 18:07:28 2007 WEST > Device does not support SMART > > Any idea why I don't get actual drive information but the name of > the controller instead? Any way around this? > > This is the SCSI INQUIRY data from SCSI_PASS_THROUGH ioctl. To access ATA devices, try device name "/dev/hda" instead. This should print ATA IDENTIFY data from SMART_RCV_DRIVE_DATA ioctl. (unfortunately not implemented in all drivers). >> BTW: For programs like smartmontools, hdparm or sdparm, which need >> I/O-controls unsupported by Cygwin, it would be useful to rely on >> Cygwin's open(). >> Is there a function to obtain the Windows HANDLE from a Cygwin fd (the >> opposite of cygwin_attach_handle_to_fd())? >> > > Yes: > > #include > > int fd = open(...); > HANDLE h = (HANDLE) get_osfhandle (fd); > > Thanks, Christian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/