我有两个坐骑 /mount1
和 /mount2
。我运行了命令:
rsync -azrt /mount1/* /mount2/
克隆从/mount1
到/mount2
的所有内容。
然后,我更改了 /etc/fstab
(见下文) 以删除 /mount1
并将 /mount2
安装到 /mount1
,但由于权限原因(包括我的电子邮件服务器本地用户文件夹)不再正常工作,即使在比较安装前后的权限时,它们是相同的?!
/etc/fstab
之前(工作):
UUID="3999A4F22570EAC4" /mount2 ntfs-3g nobootwait,permissions,locale=en_US.utf8 0 2
mhddfs#/mount3,/mount4 /mount1 fuse defaults,allow_other,nobootwait,nonempty,uid=1000,gid=1000,umask=007 0 0
/etc/fstab
之后(不起作用):
UUID="3999A4F22570EAC4" /mount1 ntfs-3g nobootwait,permissions,locale=en_US.utf8 0 2
其中UUID="3999A4F22570EAC4"
是/mount2
,其中包含之前/mount1
的内容
最佳答案
很可能您必须像为 fusion 那样添加 uid 和 gid,以确保它最终属于您。
参见this post .
关于linux - 迁移具有相同权限的挂载不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36981290/