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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=e5 GtOZ7Uf1uYHp5jm9+kpU1kWYmnjzgyAEQYfRIMoQ4N/5MLlfdxK+T0OrQYoZmyGn ZVP+eVWTv/I5r3GfBoTjsrl1R0J7a0skKAzji0GIFSF3aa7OKIdfNdXyLX41lI11 +g58mC7ZGk2pdLh8RZAqKLDSA7qnAHUA4rZ+FuCR8= 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:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=qWtaNgGK WUCzu+o4JURVwr70SQw=; b=Q6X/zHauZuqQM2VSxdTj6FkSnkzygGV1uXGuz/6f chevf9PUvBt7I6bUEZsPvnTGAPl/bVM7Q4lO6Jv1be/6tchpw1FbrTiSC0BlaYMH M39dNXl3p7c4Uu6WUHNY+SXnLzUSsybKKw6sxLWJJKo8eeXJaASkzLtUf9grrlbH JGs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 MIME-Version: 1.0 X-Received: by 10.224.149.193 with SMTP id u1mr1215919qav.97.1365580753626; Wed, 10 Apr 2013 00:59:13 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Apr 2013 03:59:13 -0400 Message-ID: Subject: Re: rsync: writefd_unbuffered failed (when writing to micro SD cards) From: Christopher de Vidal To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Update: Sometimes it dies randomly and sometimes it dies on a specific file. If I copy the file manually, it works. The file shows no signs of corruption on the micro SD card. Also, the micro SD card has a FAT32 filesystem. Christopher de Vidal On Sat, Apr 6, 2013 at 7:20 PM, Christopher de Vidal wrote: > I'm using rsync 3.0.9-1 to copy several directories to 32GB micro SD > cards in both WinXP and Win7. I randomly get this error message; > Please help me to debug it: > rsync: writefd_unbuffered failed to write 127 bytes to socket > [generator]: Broken pipe (32) > > I've got rsync on an infinite while loop so it keeps retrying, and it > copies a little more each time, dying at different places each time. > > It has happened on all of my SD cards and with multiple SD card > readers/phones/tablets, copying from two different computers. The only > constant is the hard drive (moved from one computer to the other) but > it's not exhibiting other symptoms of early failure. The directories > are various sizes but one of the directories is only 231MB with 417 > files/7 folders. The smallest file is only a few bytes and the largest > file is 109MB. > > Here's the command which syncs the 231MB directory: > rsync --modify-window=10 --recursive --times --verbose --delete > --timeout=10 --human-readable --progress --omit-dir-times > --no-compress --inplace --partial --bwlimit=1000 > "Appropriate_technology" "/cygdrive/f/C" > > I added --no-compress --inplace --partial --bwlimit=1000 after > searching Google. No good. > > I have multiple commands like these for multiple directories. When I > put just this command in a loop by itself, it works, but when I put > multiple commands, one of them will randomly generate that error > message. > > My .bashrc and .bash_profile are untouched from the install, as are > /etc/bash.bashrc and /etc/profile, etc. I'm certain I haven't tweaked > my environment. Just a typical install. > > Ran checkdisk on the drive before attempting again. > > Cygwin setup version 2.774 > Bash version 4.1.10-4 > base-cygwin 3.1-1 > cygwin 1.7.17-1 > cygwin1.dll version 1.7.17 > Windows 7 64-bit Service Pack 1 > Intel E2200 2.20GHz Dual Core CPU > 4GB RAM > Not swapping or maxed CPU or anything. > > Christopher de Vidal -- 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