public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* moving Cygwin64 to another drive
@ 2016-09-23 23:28 Ernie Rael
  2016-09-24  1:26 ` Brian Inglis
  0 siblings, 1 reply; 9+ messages in thread
From: Ernie Rael @ 2016-09-23 23:28 UTC (permalink / raw)
  To: cygwin

Greetings,

I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html, 
from last year where Corinna suggests the following (which works for 
her; she notes YMMV)

         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl

On Win7, I'm on a old cygwin installation (thought I'd copy to more 
spacious disk before updating) I tried this command after ssh to an 
admin account, but the command terminates with

     100%        New File                 210        shells
     100%        New File                1595        ssh_config
                 New File                 668 ssh_host_dsa_key
     2016/09/23 14:54:53 ERROR 5 (0x00000005) Copying File 
C:\cygwin64\etc\ssh_host_dsa_key
     Access is denied.

where

     $ ls -l ssh_host_dsa_key
     -rw------- 1 cyg_server Administrators 668 Apr 20  2014 
ssh_host_dsa_key


I don't know much about windows. Any ideas on how to get this to work?

-ernie


--
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] 9+ messages in thread

* Re: moving Cygwin64 to another drive
  2016-09-23 23:28 moving Cygwin64 to another drive Ernie Rael
@ 2016-09-24  1:26 ` Brian Inglis
  2016-09-24  2:06   ` Ernie Rael
  0 siblings, 1 reply; 9+ messages in thread
From: Brian Inglis @ 2016-09-24  1:26 UTC (permalink / raw)
  To: cygwin

On 2016-09-23 17:11, Ernie Rael wrote:
> I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html,
> from last year where Corinna suggests the following (which works for her; she notes YMMV)
>         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
> On Win7, I'm on a old cygwin installation (thought I'd copy to more spacious disk before updating) I tried this command after ssh to an admin account, but the command terminates with
>     100%        New File                 210        shells
>     100%        New File                1595        ssh_config
>                 New File                 668 ssh_host_dsa_key
>     2016/09/23 14:54:53 ERROR 5 (0x00000005) Copying File C:\cygwin64\etc\ssh_host_dsa_key
>     Access is denied.
> where
>     $ ls -l ssh_host_dsa_key
>     -rw------- 1 cyg_server Administrators 668 Apr 20  2014 ssh_host_dsa_key
> I don't know much about windows. Any ideas on how to get this to work?

Run robocopy as admin from an elevated command shell (bash or cmd) with Administrator privileges.

-- 
Take care. Thanks, Brian Inglis, 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] 9+ messages in thread

* Re: moving Cygwin64 to another drive
  2016-09-24  1:26 ` Brian Inglis
@ 2016-09-24  2:06   ` Ernie Rael
  2016-09-24  3:05     ` Brian Inglis
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ernie Rael @ 2016-09-24  2:06 UTC (permalink / raw)
  To: cygwin

On 9/23/2016 4:28 PM, Brian Inglis wrote:
> On 2016-09-23 17:11, Ernie Rael wrote:
>> I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html,
>> from last year where Corinna suggests the following (which works for 
>> her; she notes YMMV)
>>         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
>> On Win7, I'm on a old cygwin installation (thought I'd copy to more 
>> spacious disk before updating) I tried this command after ssh to an 
>> admin account, but the command terminates with
>>     100%        New File                 210        shells
>>     100%        New File                1595        ssh_config
>>                 New File                 668 ssh_host_dsa_key
>>     2016/09/23 14:54:53 ERROR 5 (0x00000005) Copying File 
>> C:\cygwin64\etc\ssh_host_dsa_key
>>     Access is denied.
>> where
>>     $ ls -l ssh_host_dsa_key
>>     -rw------- 1 cyg_server Administrators 668 Apr 20  2014 
>> ssh_host_dsa_key
>> I don't know much about windows. Any ideas on how to get this to work?
>
> Run robocopy as admin from an elevated command shell (bash or cmd) 
> with Administrator privileges.
>
Simply running as admin doesn't solve the problem.

     $ robocopy C:/cygwin64 F:/cygwin64 -e -purge -z -copyall -sl

     ....
     100%        New File                 210        shells
     100%        New File                1595        ssh_config
                 New File                 668 ssh_host_dsa_key
     2016/09/23 18:06:38 ERROR 5 (0x00000005) Copying File 
C:\cygwin64\etc\ssh_host_dsa_key
     Access is denied.
     Waiting 30 seconds...

     ADMIN erra@spirit ~
     $ id
     uid=1000(erra) gid=513(None) 
groups=513(None),544(Administrators),545(Users),1007(HomeOffice)


--
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] 9+ messages in thread

* Re: moving Cygwin64 to another drive
  2016-09-24  2:06   ` Ernie Rael
@ 2016-09-24  3:05     ` Brian Inglis
  2016-09-24  3:07       ` Ernie Rael
  2016-09-24  3:09       ` Ernie Rael
  2016-09-24  5:01     ` Linda Walsh
  2016-09-24  7:28     ` Marco Atzeri
  2 siblings, 2 replies; 9+ messages in thread
From: Brian Inglis @ 2016-09-24  3:05 UTC (permalink / raw)
  To: cygwin

On 2016-09-23 19:26, Ernie Rael wrote:
> On 9/23/2016 4:28 PM, Brian Inglis wrote:
>> On 2016-09-23 17:11, Ernie Rael wrote:
>>> I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html,
>>> from last year where Corinna suggests the following (which works for her; she notes YMMV)
>>>         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
>>> On Win7, I'm on a old cygwin installation (thought I'd copy to more spacious disk before updating) I tried this command after ssh to an admin account, but the command terminates with
>>>     100%        New File                 210        shells
>>>     100%        New File                1595        ssh_config
>>>                 New File                 668 ssh_host_dsa_key
>>>     2016/09/23 14:54:53 ERROR 5 (0x00000005) Copying File C:\cygwin64\etc\ssh_host_dsa_key
>>>     Access is denied.
>>> where
>>>     $ ls -l ssh_host_dsa_key
>>>     -rw------- 1 cyg_server Administrators 668 Apr 20  2014 ssh_host_dsa_key
>>> I don't know much about windows. Any ideas on how to get this to work?
>>
>> Run robocopy as admin from an elevated command shell (bash or cmd) with Administrator privileges.
>>
> Simply running as admin doesn't solve the problem.
>
>     $ robocopy C:/cygwin64 F:/cygwin64 -e -purge -z -copyall -sl
>
>     ....
>     100%        New File                 210        shells
>     100%        New File                1595        ssh_config
>                 New File                 668 ssh_host_dsa_key
>     2016/09/23 18:06:38 ERROR 5 (0x00000005) Copying File C:\cygwin64\etc\ssh_host_dsa_key
>     Access is denied.
>     Waiting 30 seconds...
>
>     ADMIN erra@spirit ~
>     $ id
>     uid=1000(erra) gid=513(None) groups=513(None),544(Administrators),545(Users),1007(HomeOffice)

Try from elevated Command Prompt (Admin) with expected path delimiters and switch chars:
	> robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
I've had success with:
	... /s /copyall /xj /sl /mt:8 /r:0 /w:0 /ndl /nfl /np
but YMMV
-- 
Take care. Thanks, Brian Inglis, 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] 9+ messages in thread

* Re: moving Cygwin64 to another drive
  2016-09-24  3:05     ` Brian Inglis
@ 2016-09-24  3:07       ` Ernie Rael
  2016-09-24  3:09       ` Ernie Rael
  1 sibling, 0 replies; 9+ messages in thread
From: Ernie Rael @ 2016-09-24  3:07 UTC (permalink / raw)
  To: cygwin

On 9/23/2016 7:06 PM, Brian Inglis wrote:
> On 2016-09-23 19:26, Ernie Rael wrote:
>> On 9/23/2016 4:28 PM, Brian Inglis wrote:
>>> On 2016-09-23 17:11, Ernie Rael wrote:
>>>> I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html,
>>>> from last year where Corinna suggests the following (which works 
>>>> for her; she notes YMMV)
>>>>         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
>>>> On Win7, I'm on a old cygwin installation (thought I'd copy to more 
>>>> spacious disk before updating) I tried this command after ssh to an 
>>>> admin account, but the command terminates with
>>>>     100%        New File                 210        shells
>>>>     100%        New File                1595 ssh_config
>>>>                 New File                 668 ssh_host_dsa_key
>>>>     2016/09/23 14:54:53 ERROR 5 (0x00000005) Copying File 
>>>> C:\cygwin64\etc\ssh_host_dsa_key
>>>>     Access is denied.
>>>> where
>>>>     $ ls -l ssh_host_dsa_key
>>>>     -rw------- 1 cyg_server Administrators 668 Apr 20  2014 
>>>> ssh_host_dsa_key
>>>> I don't know much about windows. Any ideas on how to get this to work?
>>>
>>> Run robocopy as admin from an elevated command shell (bash or cmd) 
>>> with Administrator privileges.
>>>
>> Simply running as admin doesn't solve the problem.
>>
>>     $ robocopy C:/cygwin64 F:/cygwin64 -e -purge -z -copyall -sl
>>
>>     ....
>>     100%        New File                 210        shells
>>     100%        New File                1595        ssh_config
>>                 New File                 668 ssh_host_dsa_key
>>     2016/09/23 18:06:38 ERROR 5 (0x00000005) Copying File 
>> C:\cygwin64\etc\ssh_host_dsa_key
>>     Access is denied.
>>     Waiting 30 seconds...
>>
>>     ADMIN erra@spirit ~
>>     $ id
>>     uid=1000(erra) gid=513(None) 
>> groups=513(None),544(Administrators),545(Users),1007(HomeOffice)
>
> Try from elevated Command Prompt (Admin) with expected path delimiters 
> and switch chars:
>     > robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
> I've had success with:
>     ... /s /copyall /xj /sl /mt:8 /r:0 /w:0 /ndl /nfl /np
> but YMMV

It is elevated, AFAICT. That's the "....,544(Administrators),..." in the 
id command output. BTW, Robocopy seems to accept shellish syntax (saw a 
note in some docs) and have tried both ways.

-ernie


--
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] 9+ messages in thread

* Re: moving Cygwin64 to another drive
  2016-09-24  3:05     ` Brian Inglis
  2016-09-24  3:07       ` Ernie Rael
@ 2016-09-24  3:09       ` Ernie Rael
  1 sibling, 0 replies; 9+ messages in thread
From: Ernie Rael @ 2016-09-24  3:09 UTC (permalink / raw)
  To: cygwin

On 9/23/2016 7:06 PM, Brian Inglis wrote:
> On 2016-09-23 19:26, Ernie Rael wrote:
>> On 9/23/2016 4:28 PM, Brian Inglis wrote:
>>> On 2016-09-23 17:11, Ernie Rael wrote:
>>>> I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html,
>>>> from last year where Corinna suggests the following (which works 
>>>> for her; she notes YMMV)
>>>>         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
>>>> On Win7, I'm on a old cygwin installation (thought I'd copy to more 
>>>> spacious disk before updating) I tried this command after ssh to an 
>>>> admin account, but the command terminates with
>>>>     100%        New File                 210        shells
>>>>     100%        New File                1595 ssh_config
>>>>                 New File                 668 ssh_host_dsa_key
>>>>     2016/09/23 14:54:53 ERROR 5 (0x00000005) Copying File 
>>>> C:\cygwin64\etc\ssh_host_dsa_key
>>>>     Access is denied.
>>>> where
>>>>     $ ls -l ssh_host_dsa_key
>>>>     -rw------- 1 cyg_server Administrators 668 Apr 20  2014 
>>>> ssh_host_dsa_key
>>>> I don't know much about windows. Any ideas on how to get this to work?
>>>
>>> Run robocopy as admin from an elevated command shell (bash or cmd) 
>>> with Administrator privileges.
>>>
>> Simply running as admin doesn't solve the problem.
>>
>>     $ robocopy C:/cygwin64 F:/cygwin64 -e -purge -z -copyall -sl
>>
>>     ....
>>     100%        New File                 210        shells
>>     100%        New File                1595        ssh_config
>>                 New File                 668 ssh_host_dsa_key
>>     2016/09/23 18:06:38 ERROR 5 (0x00000005) Copying File 
>> C:\cygwin64\etc\ssh_host_dsa_key
>>     Access is denied.
>>     Waiting 30 seconds...
>>
>>     ADMIN erra@spirit ~
>>     $ id
>>     uid=1000(erra) gid=513(None) 
>> groups=513(None),544(Administrators),545(Users),1007(HomeOffice)
>
> Try from elevated Command Prompt (Admin) with expected path delimiters 
> and switch chars:
>     > robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
> I've had success with:
>     ... /s /copyall /xj /sl /mt:8 /r:0 /w:0 /ndl /nfl /np
> but YMMV

Note the 'ls' command output. The cyg_server is a very special account.


--
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] 9+ messages in thread

* Re: moving Cygwin64 to another drive
  2016-09-24  2:06   ` Ernie Rael
  2016-09-24  3:05     ` Brian Inglis
@ 2016-09-24  5:01     ` Linda Walsh
  2016-09-24  7:28     ` Marco Atzeri
  2 siblings, 0 replies; 9+ messages in thread
From: Linda Walsh @ 2016-09-24  5:01 UTC (permalink / raw)
  To: cygwin

Ernie Rael wrote:
> On 9/23/2016 4:28 PM, Brian Inglis wrote:
>> On 2016-09-23 17:11, Ernie Rael wrote:
>>> I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html,
>>> from last year where Corinna suggests the following (which works for 
>>> her; she notes YMMV)
>>>         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
>>> On Win7, I'm on a old cygwin installation (thought I'd copy to more 
>>> spacious disk before updating) I tried this command after ssh to an 
>>> admin account, but the command terminates.
----
	Not sure if it is important, but are you on the old machine,
trying to copy local files to the new machine?  Wasn't clear.

>>> with
>>>     100%        New File                 210        shells
>>>     100%        New File                1595        ssh_config
>>>                 New File                 668 ssh_host_dsa_key
>>>     2016/09/23 14:54:53 ERROR 5 (0x00000005) Copying File 
>>> C:\cygwin64\etc\ssh_host_dsa_key
>>>     Access is denied.
>>> where
>>>     $ ls -l ssh_host_dsa_key
>>>     -rw------- 1 cyg_server Administrators 668 Apr 20  2014 
>>> ssh_host_dsa_key
>>> I don't know much about windows. Any ideas on how to get this to work?
>>
>> Run robocopy as admin from an elevated command shell (bash or cmd) 
>> with Administrator privileges.
>>
> Simply running as admin doesn't solve the problem.
---
	Yeah... I had a similar problem.  Wanted to copy my Win7 cygwin
install to another machine (WinXPx64).  I also had problems with 
permission denied as an admin -- in my case, I think they were common
cygwin DLL's.  I think they were inuse -- and somehow that prevented 
them being copied.   

	In my case, I was aided by having the other machines 'C' drive
network mounted on Z:\.  I was able to copy the couple (3 actually)
of files that failed, manually, to old-machine's /tmp.  There they weren't
files that would be in use && then I could copy them across the net with
anything.  Since both machines had write access to each other's C: drive,
I copied the files from old's /tmp to the bin & lib directories where these
files lived.  Once that was done it started functioning.

	Maybe that will give you some ideas?  I was sorta in the dark as
to what was causing the failure as well, so I poked about... ;-)


--
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] 9+ messages in thread

* Re: moving Cygwin64 to another drive
  2016-09-24  2:06   ` Ernie Rael
  2016-09-24  3:05     ` Brian Inglis
  2016-09-24  5:01     ` Linda Walsh
@ 2016-09-24  7:28     ` Marco Atzeri
  2016-09-25 21:58       ` Ernie Rael
  2 siblings, 1 reply; 9+ messages in thread
From: Marco Atzeri @ 2016-09-24  7:28 UTC (permalink / raw)
  To: cygwin

On 24/09/2016 03:26, Ernie Rael wrote:
> On 9/23/2016 4:28 PM, Brian Inglis wrote:
>> On 2016-09-23 17:11, Ernie Rael wrote:
>>> I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html,
>>> from last year where Corinna suggests the following (which works for
>>> her; she notes YMMV)
>>>         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl

>>
>> Run robocopy as admin from an elevated command shell (bash or cmd)
>> with Administrator privileges.
>>
> Simply running as admin doesn't solve the problem.
>
>     $ robocopy C:/cygwin64 F:/cygwin64 -e -purge -z -copyall -sl
>
>     ....
>     100%        New File                 210        shells
>     100%        New File                1595        ssh_config
>                 New File                 668 ssh_host_dsa_key
>     2016/09/23 18:06:38 ERROR 5 (0x00000005) Copying File
> C:\cygwin64\etc\ssh_host_dsa_key
>     Access is denied.
>     Waiting 30 seconds...
>
>     ADMIN erra@spirit ~
>     $ id
>     uid=1000(erra) gid=513(None)
> groups=513(None),544(Administrators),545(Users),1007(HomeOffice)
>

try with options
    /ZB :: use restartable mode; if access denied use Backup mode.

Regards
Marco


--
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] 9+ messages in thread

* Re: moving Cygwin64 to another drive
  2016-09-24  7:28     ` Marco Atzeri
@ 2016-09-25 21:58       ` Ernie Rael
  0 siblings, 0 replies; 9+ messages in thread
From: Ernie Rael @ 2016-09-25 21:58 UTC (permalink / raw)
  To: cygwin

Thanks Marco, the -zb option to robocopy did the trick. (Now for the 
next issues...)

-ernie

On 9/23/2016 9:59 PM, Marco Atzeri wrote:
> On 24/09/2016 03:26, Ernie Rael wrote:
>> On 9/23/2016 4:28 PM, Brian Inglis wrote:
>>> On 2016-09-23 17:11, Ernie Rael wrote:
>>>> I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg00008.html,
>>>> from last year where Corinna suggests the following (which works for
>>>> her; she notes YMMV)
>>>>         robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl
>
>>>
>>> Run robocopy as admin from an elevated command shell (bash or cmd)
>>> with Administrator privileges.
>>>
>> Simply running as admin doesn't solve the problem.
>>
>>     $ robocopy C:/cygwin64 F:/cygwin64 -e -purge -z -copyall -sl
>>
>>     ....
>>     100%        New File                 210        shells
>>     100%        New File                1595        ssh_config
>>                 New File                 668 ssh_host_dsa_key
>>     2016/09/23 18:06:38 ERROR 5 (0x00000005) Copying File
>> C:\cygwin64\etc\ssh_host_dsa_key
>>     Access is denied.
>>     Waiting 30 seconds...
>>
>>     ADMIN erra@spirit ~
>>     $ id
>>     uid=1000(erra) gid=513(None)
>> groups=513(None),544(Administrators),545(Users),1007(HomeOffice)
>>
>
> try with options
>    /ZB :: use restartable mode; if access denied use Backup mode.
>
> Regards
> Marco
>
>
> -- 
> 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
>
>
>


--
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] 9+ messages in thread

end of thread, other threads:[~2016-09-25 21:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-23 23:28 moving Cygwin64 to another drive Ernie Rael
2016-09-24  1:26 ` Brian Inglis
2016-09-24  2:06   ` Ernie Rael
2016-09-24  3:05     ` Brian Inglis
2016-09-24  3:07       ` Ernie Rael
2016-09-24  3:09       ` Ernie Rael
2016-09-24  5:01     ` Linda Walsh
2016-09-24  7:28     ` Marco Atzeri
2016-09-25 21:58       ` Ernie Rael

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).