This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can I move Cygwin and Cygwin64 to a drive other than C: ?

On Apr  2 00:55, Robert Miles wrote:
> On 4/1/2015 3:47 AM, Corinna Vinschen wrote:
> >On Apr  1 03:26, Robert Miles wrote:
> >>The C: drive on one of my 64-bit Windows 7 computers is approaching
> >>90% full, but there are two other drives that are nearly empty.
> >>
> >>Can I move the entire Cygwin and Cygwin64 directory trees to one
> >>of the nearly empty drives, without losing the extra packages I've
> >>already downloaded and the files I've created?
> >
> >Robocopy allows to copy an entire Cygwin tree while keeping all
> >permissions intact.  I had good luck with something along the
> >lines of
> >
> >   robocopy C:\cygwin64 D:\cygwin64 /e /purge /z /copyall /sl
> >
> >
> >YMMV,
> >Corinna
> I tried that on C:\cygwin; it gave an error message without copying
> anything.

Under an elevated shell?  I *did* move Cygwin installations using
robocopy and the above works for me.  In an elevated shell.

> I suspect that was because this directory tree included
> links to the top-level directories of all of the Windows drives,
> including the one holding the Windows 7 operating system.

That doesn't make sense.

> I found a way to see the robocopy instructions; it looks like I'll
> need to read them thoroughly in order to tell it to copy the links
> but not what they point to.

That doesn't make sense either.  The symlinks created by setup or Cygwin
tools are using POSIX paths, not Windows paths.  Since you're moving the
Cygwin installation as a whole, the reference point for the POSIX root
dir moves as well.  From the Windows (i.e. robocopy) perspective, those
symlinks are simple files with arbitrary content and the DOS system bit


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgp_lbDXEUPEI.pgp
Description: PGP signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]