delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/24/12:17:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BAF5CA0.2090101@likai.net>
Date: Mon, 24 Sep 2001 12:17:36 -0400
From: Li-Kai Liu <news AT likai DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20010913
X-Accept-Language: en-us
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Moving Cygwin Install dir
References: <200109241443 DOT f8OEhqX49212 AT pilot23 DOT cl DOT msu DOT edu>

Brian Michael Genisio wrote:

>Greetings Cygwin peeps,
>
>I have an install of Cygwin, and I need to move it to another machine.  I have
>zipped up the entire directory, and moved it to the new machine.  The problem
>is that when I try to start cygwin.bat, I get the following error :
>
>bash.exe: warning: could not find /tmp, please create!
>
>So, in cygwin.bat, I tried the following :
>
>mount %temp% /tmp
>
>This fixed the /tmp error message, but it seems bash was unable to find the
>correct home directory to start from, thus no path envirnonment, and nothing
>works too well...  And it starts me in /bin
>
>
>Any ideas to get it back to normal?
>
>Thanks,
>Brian
>
make sure the mounts are also setup the same way in another machine.
mount points in cygwin are stored in Registry. there are system mounts 
and user mounts ...
system mounts apply to all users of a system, and user mounts only apply 
to a particular user ...
a typical cygwin installation already sets up three mounts, such as ...

C:\cygnus\bin on /usr/bin type system (binmode)
C:\cygnus\lib on /usr/lib type system (binmode)
C:\cygnus on / type system (binmode)

of course, this depends on the path where cygwin is installed.

use `mount -h` for usage information.

regards,

liulk

----

to rest of the cygwin group ...

about the patching ls things .... cygdrive is a virtual directory, but 
it would be good to implement that using the same mechanism of mount. 
eg. create a folder in / that reads cygdrive, but this mounted directory 
goes to a virtual path driver (or handler) that enumerates all drives in 
the system ... I think someone who mentioned about "doing cygdrive 
similar to the way /proc works" has the same idea.

but at any rate, i'm opposed to patching a particular application for 
cygdrive operatibility. you can patch one, but that does not solve the 
root of the problem.

liulk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019