Rsync errors to USB drive
I run a home linux server. I have an external USB HD (FAT32) attached to it that I am trying to backup some directories to. This USB HD is mounted at start-up in /etc/fstab using the following entry:
Code:
/dev/sdb1 /mnt/usb vfat defaults 1 2 Code:
rsync -av --delete /var/flexshare/shares/ /mnt/usb/backup/ Code:
rsync: chown "/mnt/usb/backup/documents/My Pictures/2002/Normandy/Copy of Normandy/.addsc01031.jpg.uJoNs7" failed: Operation not permitted (1) Finally, the rsync fails to complete, issuing these errors: Code:
rsync: connection unexpectedly closed (449722 bytes received so far) [generator] |
The chown error is due to the FAT32 not supporting Linux file permissions. I suspect the final error is also due to rsync trying to do something that FAT32 doesn't support.
You can either try without the -a switch, this of course means you lose all ownership and file permissions, or, if you only use this drive on Linux systems format the drive to ext3 or some other Linux file system of your choosing |
Thanks, I'll try formating as ext3. I wanted to use FAT32 as I wanted the ability to simply plug the USB drive into a windows system to recover the files if my linux server completely failed. However, I note there are some free utilities that allow one to read ext3 from Windows.
|
I just tried again with the USB drive formatted as ext3. I am still getting errors.
Code:
rsync: writefd_unbuffered failed to write 4 bytes: phase "unknown" [sender]: Broken pipe (32) |
The chown errors are definately because FAT32 doesn't support unix file permissions.
The other errors could indeed because of a bad drive. if you have enough space on your main drive try rsync'ing /home to /home2 see if that throws any errors up |
Seems as if your mounting it as "Read-only file system (30)" which is stated in the error. Remount the device as read-write before trying to write data to it.
|
I attempted to rsync -a to another directory on the same drive (to /tmp/test) and it worked flawlessly.
Regarding my USB drive, I ran: Code:
fsck -pcVt ext3 /dev/sdb1 |
Possibly. However now that you have run fsck, and it seems to have fixed it then I would try rsync'ing again. I would also try taking the drive out of the enclosure and plugging it directly on the motherboard to find out which has/is failing - the controller or the actual hard drive.
Considering you have only just formatted the drive, it doesn't look very promising. |
Quote:
|
All times are GMT -5. The time now is 05:10 PM. |