This is the mail archive of the
mailing list for the Cygwin project.
Re: rsync: writefd_unbuffered failed (when writing to micro SD cards)
- From: Christopher de Vidal <cbdevidal dot jk1 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 10 Apr 2013 03:59:13 -0400
- Subject: Re: rsync: writefd_unbuffered failed (when writing to micro SD cards)
- References: <CAA2KLbZsC8oX53GL6-teoHFV4ih86Ocno6Oz2LgsEgYe5NNWTw at mail dot gmail dot com>
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
Christopher de Vidal
On Sat, Apr 6, 2013 at 7:20 PM, Christopher de Vidal
> 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
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple