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:date:message-id:subject:from:to :content-type; q=dns; s=default; b=VCtD3Zt5PaUrU0rYFbgpeuYK4KixT TZJ+BW7ro7qEn043SDhP68OJmVPhQJeIgKQxeo4Gkn9FQwlSyIWi2nwLw/+Q3jdY f7b/0fIP4jykN9B9fQdV/yK6NJvpQ+sh6HH7SqPfW9rQHh2l3cmFnnXsdU/pymx6 M7erkSCIwygaz4= 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:date:message-id:subject:from:to :content-type; s=default; bh=lFeShzIc6u5uNg6i9dCozsiJ4Oc=; b=PmI 47C16Lv7Eog+6Ircwy825fcBGk37o/puCel0ylYyr88omH6F9SWCxb9HfFIAPnB2 l/EEx7R903LZyKh5VmneE4MInOcYgkmAwmA97uqYaqJZu8b0z3GVKb4GxyFpiP46 FVWdUdRAyHtzTi8l6+leNl664Eia9bO2wDAjnQBs= 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=3.9 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 MIME-Version: 1.0 X-Received: by 10.229.125.91 with SMTP id x27mr4578865qcr.132.1365290446299; Sat, 06 Apr 2013 16:20:46 -0700 (PDT) Date: Sat, 6 Apr 2013 19:20:46 -0400 Message-ID: Subject: 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 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