Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 17 Aug 2004 12:50:47 -0400 (EDT) From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> Reply-To: cygwin AT cygwin DOT com To: Peter Rehley <peter AT rehley DOT net>, Nicolas Roche <roche AT act-europe DOT fr> cc: Yihu Li <yihuli AT ee DOT queensu DOT ca>, cygwin AT cygwin DOT com Subject: Re: Question about moving cygwin to another dirve In-Reply-To: <4121B1D2.1070003@act-europe.fr> Message-ID: <Pine.GSO.4.61.0408171239130.17565@slinky.cs.nyu.edu> References: <200408170340 DOT i7H3euRq013672 AT qlink DOT queensu DOT ca> <58386FAC-F000-11D8-8373-000D932D0448 AT rehley DOT net> <4121B1D2 DOT 1070003 AT act-europe DOT fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Mon, 16 Aug 2004, Peter Rehley wrote: > On Aug 16, 2004, at 9:43 PM, Yihu Li wrote: > > > Dear all, > > > > My c drive does not have enough space, so I just copyed the whole > > folder of cygwin to another drive and expect to run it there. It > > worked but the problem is that the default folder is still under > > c:/cygwin, not the new one g:/cygwin. Anyone knows how to map it to > > the new drive? > > Change the mount information in the registry NO!!! Please do NOT go into the registry for any Cygwin-related thing unless you know EXACTLY what you're doing. The only conceivable settings that should be changed in the registry are the per-program options and the memory management controls, neither of which has anything to do with mounts. Use "mount" to change the mounts, as the next poster suggested. On Tue, 17 Aug 2004, Nicolas Roche wrote: > Another solution is to use the cygwin mount command in order to change > the location of / This should be the ONLY solution. One thing to add is that there is more than one mount that needs to be changed. Probably the easiest way would be to do a blanket search-and-replace of "c:\cygwin" to "g:\cygwin" in your mounts, using something like eval "`mount -m | sed 's,c:/cygwin,g:/cygwin,gi'`" (please test this first with "echo" instead of "eval", to make sure you are getting the right values). HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/