delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/01/13/21:04:46

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
:content-type:content-transfer-encoding; q=dns; s=default; b=nZl
7v2amdUdnCe8CmLj9rjaa7/DbEPJHUGeRYkEox9iaDLFmEesYxgYcg0wrQA142ID
FvuI/Q1f3R1sj17ekhxDaFI2E1ZTizbC2Yk59OuLkASMUyDrJ7DflXWgWsidPORn
n2ozr3sALC8L2ZnPYsa6+5g/7HkkfM4XxMCqODy0=
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
:content-type:content-transfer-encoding; s=default; bh=wQPrl3CY2
0fkv4m5phJOuWbZvaM=; b=rdvcWSkVe7N6Eh5Iv1yAlGr/i+cAkvL1YkKAY5oLR
Jt4y+oX8tTvQpIgthnxsnQBaHW18a0/1hzQcI9fjQm2RQfl8jZuUC6gdN8NiS2ih
acx44JyyyQWau5hqeZojpvz3nSgbv2D/89IFSJSvXBUP2ZZSzCpdkqCwtGdIlFOa
A4=
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=-0.6 required=5.0 tests=AWL,BAYES_05,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: Ishtar.tlinx.org
Message-ID: <52D49B23.6020307@tlinx.org>
Date: Mon, 13 Jan 2014 18:04:19 -0800
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: problem -- cygwin doesn't allow remounting of root; running 32-bit progs from 64-bit cygwin
X-IsSubscribed: yes

I normally run with cygwin in my root dir -- doing otherwise causes problems
when programs are started from windows.

I installed cygwin64 the other day and it overwrote links I had to separate
cyg64 & cyg32..

Setup wants to install things in separate dirs .. ok fine...
but some dirs have shared content.  Most things in /usr/share
are not arch dependent -- things like fonts are not (nor are man pages
or most documentation).

Seems like setup doesn't prevent installing cyg64 over cyg32, but
does the other way around -- even though if it left the root dirs
"alone", they'd each install into root with the libs and binaries ending up
in C:\cygwin or C:\cygwin64.

It *does* work and was able to run 32-bit programs, but mount
is being difficult as is setup.  setup could be allowed to install into
the separate subdirs if I can get the root dir setup properly.

In my C:\ dir:
lrwxrwxrwx   1     28 Jan 12 09:18 bin -> /Windows/System32/cygwin/bin
drwxrwxr-x+  1      0 Jan 13 17:31 cygwin
drwxr-xr-x+  1      0 Jan 12 14:11 cygwin64
lrwxrwxrwx   1     28 Jan 12 08:54 etc -> /Windows/System32/cygwin/etc
lrwxrwxrwx   1     28 Jan 11 20:46 lib -> /Windows/System32/cygwin/lib
lrwxrwxrwx   1     29 Jan 11 20:49 sbin -> /Windows/System32/cygwin/sbin
lrwxrwxrwx   1     28 Jan 12 09:51 usr -> /Windows/System32/cygwin/usr
lrwxrwxrwx   1     28 Jan 11 21:40 var -> /Windows/System32/cygwin/var

In 32bit cygwin, in C:\windows\system32, processes 'see':
01/10/2014  12:09 PM    <SYMLINKD>     cygwin [C:\cygwin]

in 64bit cygwin, in C:\windows\system32, processes 'see':
01/11/2014  08:21 PM    <SYMLINKD>     cygwin [C:\cygwin64]

If nothing in setup overwrote (removed the symlinkd's in C:\)
the key directories, then both would install into the 'right' location.
But that's not likely to be easily doable.

But what can be done is installing into
C:\cygwin or C:\cygwin64

and making the root dir C:\  -- if mount would
cooperate.

Then the paths would still work.

So how can can I get mount to allow me to remount
root -- i.e.:
mount C:\ /

(when I do it, I either get perm problems OR a message about
it being unable to figure out the type:

/usr/bin> mount C:\\ /
mount: warning: couldn't determine mount type.
mount: /: Operation not permitted

-------------
Note -- here is cygwin64 calling cygwin32...
/Users/law.Bliss> uname -a
CYGWIN_NT-6.1 Athenae 1.7.27(0.271/5/3) 2013-12-09 11:54 x86_64 Cygwin
/Users/law.Bliss> cd /c/cygwin/bin
/c/cygwin/bin> bash
User Bliss\law's .bashrc called 2nd time
bash: /dev/fd/62: No such file or directory
bash: /dev/fd/62: No such file or directory
bash: /dev/fd/62: No such file or directory
/c/cygwin/bin> uname -a
CYGWIN_NT-6.1-WOW64 Athenae 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin
/c/cygwin/bin>



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