X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 15 Apr 2010 10:49:27 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: rsync: rename .file.JVPk8f -> file: Device or resource busy (16) Message-ID: <20100415084927.GB7865@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Apr 15 07:14, Fr?d?ric Bron wrote: > I have converted a USB hard drive from fat32 to ntfs because git now > does not work on fat32 drives and git is essential to my work. > I also use this disk to backup my local hard drive with rsync. > When it was fat32, everything was fine but now that it is ntfs, I get > the following error message many times during the rsync process: > > $ rsync --modify-window=1 --recursive --links --executability --times > --quiet --delete /cygdrive/d/Documents /mnt/g/Sauvegarde/ > > rsync: rename "/mnt/g/Sauvegarde/Documents/Fred/Bal/1.7/Bal/gcc-release/bin/.configure.exe.JVPk8f" > -> "Documents/Fred/Bal/1.7/Bal/gcc-release/bin/configure.exe": Device > or resource busy (16) > > when rsync ends, .configure.exe.?????? still exists and configure.exe > does not exist or both do not exist > > The disk is mounted like this (/etc/fstab): > f:/ /mnt/f ntfs noacl,nouser,binary > > What does this error message mean? I have no idea what that means in this scenario. I'm using NTFS exclusively, but I don't use USB sticks, and I never encountered such an error, unless the file was locked. However, Cygwin usually opens files with sharing allowed, except in very rare circumstances which shouldn't play a role here. What you need to find out is what the files for which this happens have in common, plus a couple of extra conditions. Is UAC enabled? Elevated or non-elevated shell? Or do you run this as under a non-admin account? Are you using the same account on all machines (Active Directory), or do you use different accounts (at least one machine is a stand-alone workstation)? Is the drive formatted with all permissions for Everyone? This seems to be the default when formatting a USB stick with NTFS under W7, at least. Which OS are you using, btw? Since the error occurs apparently in rename(2), it should be possible to reproduce it without rsync, just with mv. If you could construct a scenario which moves rsync out of the picture, that would be helpful. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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