moving Cygwin64 to another drive
Sat Sep 24 03:07:00 GMT 2016
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
>>>> Access is denied.
>>>> $ ls -l ssh_host_dsa_key
>>>> -rw------- 1 cyg_server Administrators 668 Apr 20 2014
>>>> 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
>> Access is denied.
>> Waiting 30 seconds...
>> ADMIN erra@spirit ~
>> $ id
>> uid=1000(erra) gid=513(None)
> 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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin