[opensuse] grsync backup to fat32 problem
I am trying to copy the contents of an ext3 partition to an external usb drive with a fat32 partition. The first copy copied most files, but there were files with special characters in their name which failed to copy. I used krename to change the file names on the ext2 partition but that did not change the file names. So i renamed them by hand. Now i used grsync to update the fat32 partition. I get the following error message: "rsync: opendir "/disk2/lost+found" failed: Permission denied (13) rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]" And the following rsync output: "*** Launching RSYNC command: rsync -r -t -x -v --progress --delete --size-only -u --modify-window=1 /disk2/ /media/Elements/ building file list ... 1400 files... 6750 files to consider IO error encountered -- skipping file deletion rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9] sent 278140 bytes received 20 bytes 556320.00 bytes/sec total size is 275813232309 speedup is 991563.25" the ext3 partition disk2 now contains 6277 files, 472 subfolders 256.9 GB (275 815 358 133) the fat32 partition 6282 files, 472 subfolders 256.9GB (275 837 017 758) It looks like the files with the special characters in their name were renamed as hidden files and now can not be deleted ? .eBook - Psychologie, Psychiatrie - Auszug [Der Psychotherapeut - Springer Verlag 2000] - Die Behandlung Von Borderline-Persnlichkeitsstrungen.pdf.1x10Rv But even after removing the trailing dot, the file is now 3 times on fat32: eBook - Psychologie, Psychiatrie - Auszug [Der Psychotherapeut - Springer Verlag 2000] - Die Behandlung Von Borderline-Persnlichkeitsstrungen.pdf eBook - Psychologie, Psychiatrie - Auszug [Der Psychotherapeut - Springer Verlag 2000] - Die Behandlung Von Borderline-Persoenlichkeitsstoerungen.pdf Even when unchecking "windows compatibility" in grsync, i get: "rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]" I did fsck -p for /dev/disk2: no errors. Are these rsync limitations ? Kind regards Philippe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun February 17 2008 12:16:39 Philippe Landau wrote:
eBook - Psychologie, Psychiatrie - Auszug [Der Psychotherapeut - Springer Verlag 2000] - Die Behandlung Von Borderline-Persoenlichkeitsstoerungen.pdf
Even when unchecking "windows compatibility" in grsync, i get: "rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]"
I think your file name may be too long for fat32. Spaces and brackets are also a frequent source of trouble when transferring file names. If you need to keep this long name, you can pack the file within a tarball: tar cvf shortname.tar longname.pdf But the best is to create a habit of storing names without brackets and spaces. Here is my alias for replacing all spaces in file names within the current directory: alias cleanspaces='for i in *" "*; do mv -i "$i" ${i// /_}; done' which I keep in my .alias -- Carlos FL "It is not worth an intelligent man's time to be in the majority. By definition, there are already enough people to do that." - G. H. Hardy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2008-02-17 at 14:49 -0700, Carlos F. Lange
tar cvf shortname.tar longname.pdf
But the best is to create a habit of storing names without brackets and spaces. Here is my alias for replacing all spaces in file names within the current directory: alias cleanspaces='for i in *" "*; do mv -i "$i" ${i// /_}; done' which I keep in my .alias
--
Not having a .alias in 10.0 I use this script which is a fork of another. Music files can be a real pain when downloaded they have all those Winblows style spaces. Also good for question marks such as when I do a mass article download from online news sources. As always in linux there are at least six ways to accomplish the same task. RemoveSpaceInName.sh # +------------------------------------+ # | Loop over all files in a directory | # +------------------------------------+ # +--------------------------+ # | $i = current filename | # | remove blanks | # | emit the result | # +--------------------------+ for i in *.ogg ; do # echo $i NewName=`echo $i| tr -d ' '` # echo $NewName mv "$i" "$NewName" -- _______ _______ _______ __ / ____\ \ / / ____|_ _\ \ / / | | \ \ /\ / / (___ | | \ \ / / | | \ \/ \/ / \___ \ | | \ \/ / | |____ \ /\ / ____) |_| |_ \ / \_____| \/ \/ |_____/|_____| \/ | \ /|\ || |\ / |~~\ /~~\ /~~| //~~\ | \ / | \ || | X |__/| || |( `--. |__ | | \| \_/ / \ | \ \__/ \__| \\__/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carl Spitzer
-
Carlos F. Lange
-
Philippe Landau