我已经使用以下命令挂载了一个目录
sudo unionfs -o cow,max_files=32768 -o allow_other,use_ino,suid,dev,nonempty stuff-linux64=RW stuff我如何从RW到RO,并在上面添加另一个目录(build-update64)?
最终的结果应该看起来像我已经执行了:
sudo unionfs -o cow,max_files=32768 -o allow_other,use_ino,suid,dev,nonempty stuff-update64=RW:stuff-linux64=RO stuff在卸下东西之后。
因此,如何卸载我用unionfs安装的文件系统?
发布于 2020-05-01 00:08:36
unionfs是unionfs-fuse的缩写,它建立在FUSE (Userspace文件系统)系统之上。因此,卸载unionfs-fuse的较好方法是直接使用fusermount -u ~/example-mount-point ( -u开关意味着“卸载”)的FUSE系统。
使用fusermount而不是umount的一个很大的优点是它不需要特权提升。顾名思义,FUSE全部发生在用户空间。这意味着安装和卸载都可以从您的有限用户帐户完成,而不需要sudo,当然,只要您有访问您正在使用的目录的权限。
发布于 2018-10-10 15:39:44
我想只要umount <the-mount-dir>就够了。
下面是一个示例:假设我在/tmp/unionfs下面有这个目录结构:
.
├── Fruits
│ ├── Apple
│ └── Tomato
└── Vegetables
├── celery
└── Tomato
2 directories, 4 files现在将Fruits和Vegetables挂载到/tmp/mnt上:
$ unionfs-fuse /tmp/unionfs/Fruits:/tmp/unionfs/Vegetables /tmp/mnt要卸载它,请执行以下操作:
# umount /tmp/mnthttps://askubuntu.com/questions/1074097
复制相似问题