I just bought me a Transcend StoreJet 25M3 1TB USB 3.0 external hard drive to back up data from my laptop running Ubuntu 14.10. I tried unison file synchronizer, but I got errors
Failed to set permissions of file /media/hakon/Transcend/.unison..bash_profile.b54585281d82effb5afc6d1bfff73346.unison.tmp to rw-rw-r--: the permissions was set to rw------- instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1713 (or to 0 if you don't need to synchronize permissions)
The file system on the external drive is of type fuseblk
and the file system on my laptop is ext4
:
$ df -T /home/hakon
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda1 ext4 953333636 76460660 828423340 9% /
$ df -T /media/hakon/Transcend/
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sdc1 fuseblk 976759996 135728 976624268 1% /media/hakon/Transcend
I guess the reason for the error message from unison
is related to unsupported difference in permission bits for ext4 versus NTFS. But why does unison
recommend setting perms = 0o1713
? What does 0o1713
stand for?
After some googling, I wonder what would be the recommended way for me to proceed :
- convert the file system on the external drive to
ext4
, using for examplemkfs -t ext4 /dev/sdc1
, or - try to modify the settings in the
unison
profile, using, for exampleperms = 0o1713
?