Tim Visher wrote:
On Thu, Apr 30, 2009 at 8:50 AM, Greg Chicares <gchica...@sbcglobal.net> 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:

<http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx>

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

Reply via email to