delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/16/04:50:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 16 Oct 2012 10:49:52 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin for Windows 8
Message-ID: <20121016084952.GE25877@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CALtVTxS-g26AMU7s0o6zr2K4oK4ok=WxSCPUub62gpMVM6qNrA AT mail DOT gmail DOT com> <1350329081 DOT 35214 DOT YahooMailNeo AT web171406 DOT mail DOT ir2 DOT yahoo DOT com> <20121015193636 DOT GC25877 AT calimero DOT vinschen DOT de> <1350331470 DOT 1670 DOT YahooMailNeo AT web171403 DOT mail DOT ir2 DOT yahoo DOT com>
MIME-Version: 1.0
In-Reply-To: <1350331470.1670.YahooMailNeo@web171403.mail.ir2.yahoo.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Oct 15 21:04, GrahamC wrote:
> On 10/15/2012 Corinna Vinschen wrote:
> > On Oct 15 20:24, GrahamC wrote:
> > > 
> > > On 10/15/2012 Steve John wrote:
> > > > I am looking for cygwin tool in Windows 8 platform.  When i execute
> > > > the setup.exe (for installing cygwin in Windows 8 OS), i couldn't see
> > > > any mirror sites for downloading cygwin tool in Windows 8 OS. Just
> > > > wondering if the tool is supported for Windows 8, if yes, then could
> > > > you please provide me the link to download cygwin tools for Windows 8?
> > > 
> > > 
> > > I am running OK on Windows 8 release preview,
> > > although 'cygcheck -c -v -s' does say:
> > > 
> > > Windows 8 (not yet supported!) Professional N Ver 6.2 Build 8400
> >
> > That will be changed with Cygwin 1.7.17.
> >
> > > Setup.exe (version 2.774) allowed me to choose a mirror site without problem.
> > >
> > > The only problem I have encountered is the device files for
> > > partitions (/dev/sda1, /dev/sda2, /dev/sdb1, /dev/sdb2 etc.) are
> > > sometimes the wrong size or not even present.
> >
> > I can't reproduce that.  Apart from that, the size of a /dev/sdXY
> > file is supposed to be always zero.  Do you mean the content of
> > /proc/partitions?
> 
> Yes, I mean the content of the files rather than the files themselves. I have
> seven disk drives attached, most of them with 4 partitions each. Two of them (sdf and sdg)
> have identical partition layouts with every partition being type 0xFD.
> One of these disk drives appears with partition devices and the other without,
> only the whole disk device /dev/sdg is present:
> 
> $ ls /dev/sdf* /dev/sdg*
> /dev/sdf  /dev/sdf1  /dev/sdf2  /dev/sdf3  /dev/sdf4  /dev/sdg
> 
> On flash disk devices which are partitioned reading from the /dev/sdXn etc. device
> frequently truncates the data, the last 70 or so sectors are not readable.
> 
> On flash disk devices which are unpartitioned it still creates the /dev/sdX1 device,
> this reads the same as /dev/sdX except for also truncating before the end of the device.

Device creation is based on what Windows creates. Cygwin only looks
which devices exist in the internal native namespace and maps those to
the equivalent POSIX device names.  If a \Device\HarddiskX\PartitionY
exists, then /dev/sd<X>Y exists in Cygwin, with <X> being 'a' + X.

As for the missing ~70 sectors, I'm not sure.  How do you know?  Does
the number of KBs you can read differ by this amount from the KBs given
in /proc/partitions?  

Maybe that's the missing call to FSCTL_ALLOW_EXTENDED_DASD_IO.  Cygwin's
block device code only calls this Windows ioctl code for full disks, not
for partitions on the disk.  I fixed that in CVS, though.  Can you give
the today's snapshot from http://cygwin.com/snapshots/ a try, please?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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