F25 rsync failure on USB drive, folder corrupted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

I have a computer running fc25.x86_64. It has one folder, /home/photo, with ~100 GB of photographs (about 40K files) organized in many subfolders named like username/year/YYYYMMDD-event

I use rsync to have a full copy of that folder on an external drive, connected via USB. This morning, rsync copied many new files without problems, but at a certain point it failed. It left behind on the drive a folder which "looks" empty, but it isn't, and cannot be removed. Commands and error messages are below.

The questions are

- may this be a software-only problem? Maybe caused by "system overload"? I also had a text-analysis script running, using all the RAM and CPU it could get. Also, probably irrelevant: at some point one of the kids plugged a smartphone into another USB port, to recharge it :

- assuming the fault is not in the drive... how should I get rid of that corrupted folder? I already tried unmounting and remounting, but no difference.

Thanks,
Marco

RSYNC COMMAND:

rsync -rvt --delete --no-o --no-g /home/photo/ /run/media/marco/TOSHIBA\ EXT/photo/

FILE SYSTEMS:

/dev/sda5 on /home type ext4 (rw,relatime,seclabel,data=ordered)

/dev/sdb1 on /run/media/marco/TOSHIBA EXT type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

RSYNC ERROR: many lines like this (many files copied properly before and after that folder...)

rsync: mkstemp "/run/media/marco/TOSHIBA EXT/photo/marco/2016/20161116-family/.P1370745.JPG.2esTOB" failed: Input/output error (5)

RSYNC FINAL MESSAGE:

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

SIZE OF ORIGINAL FOLDER ON THE COMPUTER (57 files):

ls -l /home/z/photo/marco/2016/ | grep 20161116-family

drwxrwxr-x. 2 marco marco  4096 Jan  1 20:23 20161116-family

SIZE AND CONTENT OF SAME FOLDER on the USB drive:
#> ls -l  | grep 20161116-family
drwxrwxrwx. 1 marco marco  20480 Jan  1 20:23 20161116-family
#> ls -la 20161116-family/
ls: reading directory '20161116-family/': Input/output error
total 0

FOLDER CANNOT BE REMOVED (EVEN sudo rm -rf fails the same way)

#> rm -rf 20161116_1117-family/
rm: cannot remove '20161116-family/': Directory not empty

--
http://mfioretti.com
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux