From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97999 invoked by alias); 24 Sep 2016 03:07:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 97986 invoked by uid 89); 24 Sep 2016 03:07:44 -0000 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=Hx-languages-length:2001, H*MI:sk:1ef5b04, her, she X-HELO: resqmta-po-07v.sys.comcast.net Received: from resqmta-po-07v.sys.comcast.net (HELO resqmta-po-07v.sys.comcast.net) (96.114.154.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 24 Sep 2016 03:07:34 +0000 Received: from resomta-po-15v.sys.comcast.net ([96.114.154.239]) by resqmta-po-07v.sys.comcast.net with SMTP id ndJ8bTcnYqbrLndJNbC0ZJ; Sat, 24 Sep 2016 03:07:33 +0000 Received: from [IPv6:::1] ([IPv6:2601:646:8580:9390:ed84:420b:2d15:73df]) by resomta-po-15v.sys.comcast.net with SMTP id ndJMbKESeSbpYndJMbTtzF; Sat, 24 Sep 2016 03:07:32 +0000 Subject: Re: moving Cygwin64 to another drive To: cygwin@cygwin.com References: <1ef5b04e-7aaa-f687-a76f-7d1550f12a3d@SystematicSw.ab.ca> From: Ernie Rael Message-ID: Date: Sat, 24 Sep 2016 03:09:00 -0000 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfKrvSdVqLCKpDEzIc3x3N6jA1Vj8WX+Bn+0dbfRXfXmu+vWrl/spo9mQOAWtm3zGr8FU1OxlIGCLbA+3NC3//MOmJtrr4+x0yzqcYO4p9fGUmYmnpGXa IflbSkZpkMgT2IIEu6N61BiEiJa89HVHVfY= X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00310.txt.bz2 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