View previous topic :: View next topic |
Author |
Message |
wuesti Apprentice
Joined: 07 Mar 2009 Posts: 191
|
Posted: Sun Nov 17, 2013 9:24 am Post subject: rsync erzeugt Fehler auf USB-Stick |
|
|
Moin Moin,
mit rsync synchronisiere ich die Daten auf meine USB-Stick. Er ist formatiert mit Code: | mkfs.vfat -n USB-WUESTI /dev/sdf1
mkfs.fat 3.0.22 (2013-07-19) | .
Nun die Synchronisation Code: | :rsync -avh ~/test/. /media/USB-WUESTI/test
sending incremental file list
created directory /media/USB-WUESTI/test
./
a/
a/fluxbox-gestartet.pid
a/gentoo-update.pid
a/programme-kai-gestartet.pid
a/programme-kai.pid
a/MozillaMailnews/
a/MozillaMailnews/NDR 2 - Stimmtsäöüß.msf
test a/
test a/fluxbox-gestartet.pid
test a/gentoo-update.pid
test a/programme-kai-gestartet.pid
test a/programme-kai.pid
test a/MozillaMailnews/
test a/MozillaMailnews/NDR 2 - Stimmts.msf
test/
test/fluxbox-gestartet.pid
test/gentoo-update.pid
test/programme-kai-gestartet.pid
test/programme-kai.pid
test/MozillaMailnews/
test/MozillaMailnews/NDR 2 - Stimmts?.msf
rsync: mkstemp "/media/USB-WUESTI/test/test/MozillaMailnews/.NDR 2 - Stimmts?.msf.g2Clz9" failed: Invalid argument (22)
sent 7.77K bytes received 324 bytes 16.19K bytes/sec
total size is 6.45K speedup is 0.80
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9] |
Der Fehler wird durch das Fragezeichen im Namen erzeugt.
Nun werfe ich den USB-Stick aus, ziehe ihn ab und stecke ihn nach kurzer Zeit wieder rein. Code: | dosfsck -a /dev/sdf1
fsck.fat 3.0.22 (2013-07-19)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
Automatically removing dirty bit.
/FSCK0000.REC and
/test/test a/MozillaMailnews/NDR 2 - Stimmt's.msf
share clusters.
Truncating second to 0 bytes.
/test/test a/MozillaMailnews/NDR 2 - Stimmt's.msf
File size is 2146 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
Performing changes.
/dev/sdf1: 24 files, 14/1972217 clusters |
Das passt schon mal nicht, stört aber nur am Rande.
Nochmal rsync: Code: | rsync -avh ~/test/. /media/USB-WUESTI/test
sending incremental file list
./
a/
a/fluxbox-gestartet.pid
a/programme-kai.pid
a/MozillaMailnews/
test a/
test a/fluxbox-gestartet.pid
test a/programme-kai.pid
test a/MozillaMailnews/
test a/MozillaMailnews/NDR 2 - Stimmt's.msf
test/
test/fluxbox-gestartet.pid
test/programme-kai.pid
test/MozillaMailnews/
test/MozillaMailnews/NDR 2 - Stimmts?.msf
rsync: mkstemp "/media/USB-WUESTI/test/test/MozillaMailnews/.NDR 2 - Stimmts?.msf.8uj6q1" failed: Invalid argument (22)
sent 5.34K bytes received 212 bytes 11.11K bytes/sec
total size is 6.45K speedup is 1.16
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9] | Das nun alle wieder Dateien übertragen werden, liegt an der vfat und ist recht normal.
Und dann dreimal dosfsck: Code: | dosfsck -a /dev/sdf1
fsck.fat 3.0.22 (2013-07-19)
Reclaimed 1 unused cluster (4096 bytes) in 1 chain.
Free cluster summary wrong (1972203 vs. really 1972202)
Auto-correcting.
Performing changes.
/dev/sdf1: 25 files, 15/1972217 clusters
dosfsck -a /dev/sdf1
fsck.fat 3.0.22 (2013-07-19)
/FSCK0001.REC and
/test/test a/MozillaMailnews/NDR 2 - Stimmt's.msf
share clusters.
Truncating second to 0 bytes.
/test/test a/MozillaMailnews/NDR 2 - Stimmt's.msf
File size is 2146 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
Performing changes.
/dev/sdf1: 25 files, 15/1972217 clusters
dosfsck -a /dev/sdf1
fsck.fat 3.0.22 (2013-07-19)
/dev/sdf1: 25 files, 15/1972217 clusters | Dabei werden nun FSCK*.REC-Dateien erstellt: Code: | ls /media/USB-WUESTI
FSCK0000.REC FSCK0001.REC test |
Ein Dokumentverzeichnis enthält natürlich wesentlich mehr Dateien und damit mehr Fehler: Code: | dosfsck -a /dev/sdf1
fsck.fat 3.0.22 (2013-07-19)
/FSCK0001.REC and
pfad/name.odt
share clusters.
Truncating second to 0 bytes.
pfad/name.odt
File size is 2146 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
pfad/name.odt
Contains a free cluster (3412). Assuming EOF.
pfad/name.odt
File size is 9708 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
pfad/name.odt
Contains a free cluster (41433). Assuming EOF.
pfad/name.odt
File size is 18108 bytes, cluster chain length is 0 bytes.
Truncating file to 0 bytes.
Reclaimed 5030 unused clusters (20602880 bytes) in 37 chains.
Free cluster summary wrong (1887468 vs. really 1882424)
Auto-correcting.
Performing changes.
/dev/sdf1: 1611 files, 89793/1972217 clusters |
Viele Dateien fehlen dann bei der Arbeit....
Kann jemand helfen? _________________ Linux-User seit 1999 |
|
Back to top |
|
|
Jean-Paul Guru
Joined: 13 Apr 2009 Posts: 307
|
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
wuesti Apprentice
Joined: 07 Mar 2009 Posts: 191
|
Posted: Sun Nov 17, 2013 4:47 pm Post subject: |
|
|
Das macht die Sache noch schlimmer. Es gibt haufenweise Fehlermeldungen der Form: Code: | rsync: mkstemp "/media/USB-WUESTI/pfad/name.odt.5hTXI2" failed: Invalid argument (22) |
Am besten geht es, wenn ich den USB-Stick einstecke, rsync ausführe und ihn sofort auswerfe. Code: | dosfsck -a /dev/sdg1
fsck.fat 3.0.22 (2013-07-19)
/dev/sdg1: 1551 files, 89818/1972217 clusters |
_________________ Linux-User seit 1999 |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
|