我正在尝试将简单的rsync同步到USB硬盘,命令是
rsync -az --modify-window=2 /home /mnt/exthd/tmp/
我以root身份运行。
但是我收到很多似乎都与权限不足有关的错误:
rsync: chown "/mnt/exthd/tmp/home/someuser" failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/someuser/.bash_logout" failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/someuser/.bash_profile" failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/someuser/.bashrc" failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/guest" failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/guest/.bash_logout" failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/guest/.bash_profile" failed: Operation not permitted (1)
rsync: chown "/mnt/exthd/tmp/home/guest/.bashrc" failed: Operation not permitted (1)
rsync: symlink "/mnt/exthd/tmp/home/guest/fred2" -> "fred" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1042) [sender=3.0.7]
这是版本3.0.7。我尝试使用--super选项无效。有任何想法吗?
USB磁盘上的文件系统是什么?
—
卡莱布
外部磁盘是否格式化为FAT(32)?这是行不通的,因为FAT不知道文件所有权属性。
—
斯文
@Caleb我想这是FAT,但是我怎么知道呢?
—
魔法师蒂姆(Tim the Enchanter)
跑步
—
卡莱布
mount | grep /mnt/exthd
应该告诉你。
@Caleb说vfat
—
魔法师蒂姆(Tim the Enchanter)