delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=hSJFceWz9LkrDvAq | |
c3W7bVSOAtIWv8Vrw3QxSEIDJQfi+/Espt9FsPBbItD7+xXM2Zt4+RZxXEzjlwjh | |
tSPcFXED2W2IQ4MISOsEXvtAk+8VgRnsFzoYfQkf/1VHOX+c1SOSYLmBLMd6/J4S | |
1rGKJTN/ET5VCb+tR8T3UP1QPPI= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=55hnRegogGdZE3eFoJaXgc | |
jSoH4=; b=KbtUSnr4tyDc19jqZ8n7iqm0RJX16XCqt2VfpPPUMkRG2toff/wPav | |
3y/BLHat2ehlppexYZ7PYmnUw6QByfzomyxj0Nxa24q/P2HbIR5z5k57I98l915z | |
yfF3Drn+z4Fc+epL4CR8SV4MFNVE5SY5Kmuhgk8d0VZZwEyM7UQn8= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=H*M:9559, Hx-languages-length:2127, H*MI:sk:1ef5b04, H*i:sk:1ef5b04 |
X-HELO: | resqmta-po-06v.sys.comcast.net |
Subject: | Re: moving Cygwin64 to another drive |
To: | cygwin AT cygwin DOT com |
References: | <e6448d1a-4100-763d-7e01-376a7432a69d AT raelity DOT com> <d20770fe-29bd-057b-02b3-b14fa03a63ef AT SystematicSw DOT ab DOT ca> <f0f29f3a-d809-a9b5-a0ee-167b306cf3b6 AT raelity DOT com> <1ef5b04e-7aaa-f687-a76f-7d1550f12a3d AT SystematicSw DOT ab DOT ca> |
From: | Ernie Rael <err AT raelity DOT com> |
Message-ID: | <7c359269-9559-3621-2538-699ab934e10e@raelity.com> |
Date: | Fri, 23 Sep 2016 20:05:28 -0700 |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <1ef5b04e-7aaa-f687-a76f-7d1550f12a3d@SystematicSw.ab.ca> |
X-CMAE-Envelope: | MS4wfN35H1gRHENZGqjL/TI+FApc+Jx3zOL2x0J8N0mRihzsv1Una4fk1Is9jWTSAOgyXXDYwq0O6fuH1SZNLpyggtBy0XXtwp8I9Oa+mGG7rUVDUvvwtrfG 5az5h0H+jdOkgxkosOfKJwk5hz6U1ygTOkM= |
X-IsSubscribed: | yes |
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 AT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |