我能够设置 unionfs 路径,但意识到我想更改它。我似乎无法覆盖、卸载或移动 unionfs 目标目录。是否有非 root 用户(设置 union 的用户)可以更改它的命令?
myuser@maven ~ $ unionfs \
-o cow \
-o statfs_omit_ro \
/home/myuser/files/pre-upload:/home/myuser/gd-media=RO \
/home/myuser/union-media
fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option
myuser@maven ~ $ umount /home/myuser/union-media
umount: /home/myuser/union-media: Permission denied
myuser@maven ~ $ mv union-media OLD-union-media
mv: cannot move 'union-media' to 'OLD-union-media': Device or resource busy
答案1
我会尝试fusermount -u mountpoint
。这是卸载 FUSE 文件系统的直接命令。