This is the mail archive of the
cygwin
mailing list for the Cygwin project.
problem -- cygwin doesn't allow remounting of root; running 32-bit progs from 64-bit cygwin
- From: Linda Walsh <cygwin at tlinx dot org>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 13 Jan 2014 18:04:19 -0800
- Subject: problem -- cygwin doesn't allow remounting of root; running 32-bit progs from 64-bit cygwin
- Authentication-results: sourceware.org; auth=none
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