This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C:\Windows\System32\drivers oddness


On Dec 27 23:46, Buchbinder, Barry (NIH/NIAID) [E] wrote:
> Corinna Vinschen sent the following at Thursday, December 26, 2013 1:32 PM
> >On Dec 26 11:11, Max Polk wrote:
> >> From the bash shell, sitting in the C:\Windows\System32\drivers
> >> directory, when I run "ls" I can see about 6 files/dirs total. The
> >> "etc" directory is mysteriously missing from the output of "ls", but
> >> present in the output of "ld -ld etc".  Strange that I can't list it
> >> with "ls", but I can list it with "ls -ld".
> >
> >You're running 32 bit Cygwin on 64 bit Windows. See
> >http://msdn.microsoft.com/en-us/library/windows/desktop/aa384187%28v=vs.85%29.aspx
> 
> Might it be possible and worth the programming effort for System32 and
> SysWOW64, as appropriate, to automatically mounted via Sysnative by
> cygwin1.dll?  (Not a request - and I cannot contribute a patch.)

It's not required at all.  The Sysnative dir is a virtual directory
name which gets redirected to the real 64 bit System32 dir by the
kernel when running under WOW64.  Just do

  $ cd /cygdrive/c/Windows/Sysnative

and you will end up in the 64 bit System32 dir, even if an `ls' in
the Windows parent dir won't show this directory.


Corinna

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

Attachment: pgpRSqOROZbZr.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]