I am using Ubuntu 14.04 and I do regular backups of important directories on a 64 GB USB drive using
rsync for each directory:
rsync -ia --no-links --size-only /home/alexander/Directory1 /media/alexander/LINUXBACKUP/Backup/ rsync -ia --no-links --size-only /home/alexander/Directory2 /media/alexander/LINUXBACKUP/Backup/ ....
The filesystem of the USB drive is as follows:
>sudo fdisk -l .... Device Boot Start End Blocks Id System /dev/sdc1 8064 121995263 60993600 c W95 FAT32 (LBA)
In some cases, the backup works fine without any problems. In other cases, the backup seems to hang at some random file (not the same file when I repeat the backup/rsync).
I also did a check of the USB drive using the following command:
sudo dosfsck -w -r -l -a -v /dev/sdc1
but the backup did again halt at some different file when trying it again.
- Also sometimes it happens that the backup works fine at the start, but then the filesystem changes to read-only, resulting in a failure of the backup.
- When the
rysnchangs, I might not be able to kill it with
What can I do to resolve this problem?
- Maybe it helps to use an ext filesystem-format instead of FAT32?
- Maybe the verbose information of the
rsynccommand is showing me incorrect information (the backup does not stop, but just the information displayed on the shell)?
- Maybe there is a better command to check the USB drive? (I tried
sudo fsck -y /dev/sdc1as well, but this command seemed to hang as well. But maybe it just takes a very long time?)
- Maybe buy another stick, as the
rsyncprocess not killable hints to faulty hardware?