X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,LOCALPART_IN_SUBJECT,SPF_HELO_PASS,URIBL_GREY X-Spam-Check-By: sourceware.org Message-ID: <49F9CB0E.3040605@cygwin.com> Date: Thu, 30 Apr 2009 12:00:14 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090101 Remi/2.0.0.19-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Moving Cygwin References: <49F99E8D DOT 5030109 AT sbcglobal DOT net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Tim Visher wrote: > On Thu, Apr 30, 2009 at 8:50 AM, Greg Chicares wrote: >> On 2009-04-30 12:27Z, Tim Visher wrote: >>> I originally installed cygwin in the default `C:\cygwin` directory. >>> I'd like to move it from there to `C:\`. Is there any easy way to do >>> this? >> Please consider advice to the contrary, e.g.: >> >> http://www.cygwin.com/faq/faq-nochunks.html#faq.setup.c >> http://www.cygwin.com/ml/cygwin/2001-01/msg00027.html >> http://cygwin.com/ml/cygwin/2005-02/msg00192.html > > Thanks for the information. > > Maybe the context for my question would help. I'm attempting to > follow advice from [Steve Yegge's My .emacs File > article](http://steve.yegge.googlepages.com/my-dot-emacs-file) in > order to get useful cygwin bash interaction from within NT Emacs. He > seems to be of the opinion that the gentleman who responded in the > comments about having the path interpolation code and installing > cygwin in the default directory was mislead about what you need to get > it to work. > > Are there A) Practical responses to Yegge's way of using Cygwin and NT > Emacs? or B) A proven way to do what I'm trying to do without messing > with cygwin's install directory (I would prefer this as I would like > to keep cygwin safely secluded). Windows is not going to understand Cygwin's POSIX paths. So you either have to translate them using 'cygpath' or set things up so there's enough coincidental correspondence between the two "systems" to make it work. This means either installing Cygwin in the root directory of the drive that you'll commonly be working in with both Windows and Cygwin tools or creating parallel links to Cygwin directories for largely the same effect. To accomplish the former, you either install (or reinstall) Cygwin to the root of the drive you want or you move it (as you asked) and fix up the mount points (and cygwin.bat, startxwin.*) paths to use the new location. To accomplish the latter, use something like 'junction' to create directory symbolic links, windows will understand, and that point to the appropriate directories in your Cygwin installation, no matter where it is. This assumes you're working with NTFS of course. Junction is available here: -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/