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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to