public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* migrate a cygwin installation
@ 2014-10-31 17:23 Hans Horn
  2014-10-31 21:02 ` cyg Simple
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hans Horn @ 2014-10-31 17:23 UTC (permalink / raw)
  To: cygwin

What is the current recommended way to migrate a cygwin installation?
my c: drive has gotten full to the brim.
Tried to follow some older instructions online (~2009) but they do not 
seem to work anymore.
Thx.
H


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrate a cygwin installation
  2014-10-31 17:23 migrate a cygwin installation Hans Horn
@ 2014-10-31 21:02 ` cyg Simple
  2014-11-01  4:47 ` Doug Henderson
  2014-11-01 10:35 ` Andrey Repin
  2 siblings, 0 replies; 4+ messages in thread
From: cyg Simple @ 2014-10-31 21:02 UTC (permalink / raw)
  To: cygwin

On Fri, Oct 31, 2014 at 1:23 PM, Hans Horn wrote:
> What is the current recommended way to migrate a cygwin installation?
> my c: drive has gotten full to the brim.
> Tried to follow some older instructions online (~2009) but they do not seem
> to work anymore.

Just copy the root directory to a new drive and modify the /etc/fstab
to carefully replace c: with whatever the new drive letter is.  Note
you may have added mounts where c: should not change.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrate a cygwin installation
  2014-10-31 17:23 migrate a cygwin installation Hans Horn
  2014-10-31 21:02 ` cyg Simple
@ 2014-11-01  4:47 ` Doug Henderson
  2014-11-01 10:35 ` Andrey Repin
  2 siblings, 0 replies; 4+ messages in thread
From: Doug Henderson @ 2014-11-01  4:47 UTC (permalink / raw)
  To: cygwin

On 31 October 2014 11:23, Hans Horn wrote:
> What is the current recommended way to migrate a cygwin installation?
> my c: drive has gotten full to the brim.
> Tried to follow some older instructions online (~2009) but they do not seem
> to work anymore.
> Thx.
> H

You can use "cygcheck-dep -c -l -i" to list the minimum set of
packages required to reinstall all your installed packages. When you
run the architecture specific setup command, with the listed set of
packages selected, setup will recursively find all the packages
required by the selected packages. You will be prompted to accept a
list of these required packages after you click next from the package
selection screens.

On my laptop, I have 209 packages installed. The "cygcheck-dep -c -l
-i" command lists 46 packages. Some of these are included in the
initial package list, so they will be automatically installed on all
systems. If I manually select all the unselected members of this 46
package set, I will end up with 208 installed packages. The
cygwin-debuginfo will not automatically reinstall.

The <PKG>-debuginfo packages will not automatically reinstall, as they
are not automatically installed and do not have dependencies on other
packages. I would need to manually reinstall those, if I still needed
them. I do not have any <PKG>-src packages installed, so I am not sure
what will happen with those. Use the "cygcheck -c" command to get a
full list of your installed packages with version and status
information.

If you have test and prev package versions installed, this process
will install the current version. It does not attempt to handle
packages from other distributions like cygwinports and other "extra"
package sources.

I am currently using this process to semi-automatically generate a
batch file to quickly recreate a cygwin installation on new virtual
machines.

As always, YMMV.

Doug

-- 
Doug Henderson, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrate a cygwin installation
  2014-10-31 17:23 migrate a cygwin installation Hans Horn
  2014-10-31 21:02 ` cyg Simple
  2014-11-01  4:47 ` Doug Henderson
@ 2014-11-01 10:35 ` Andrey Repin
  2 siblings, 0 replies; 4+ messages in thread
From: Andrey Repin @ 2014-11-01 10:35 UTC (permalink / raw)
  To: Hans Horn, cygwin

Greetings, Hans Horn!

> What is the current recommended way to migrate a cygwin installation?
> my c: drive has gotten full to the brim.
> Tried to follow some older instructions online (~2009) but they do not 
> seem to work anymore.

Normally, I just replace C: with a bigger drive. Thankfully, diskpart allow
for partition and filesystem growing nowadays.
If that is not an option, then just shutdown everything cygwin related, move
whole directory away and make a junction back from new place.
Or, the long way, edit the mount points. But a directory junction is faster.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 01.11.2014, <13:23>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-01 10:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-31 17:23 migrate a cygwin installation Hans Horn
2014-10-31 21:02 ` cyg Simple
2014-11-01  4:47 ` Doug Henderson
2014-11-01 10:35 ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).