NFS 卸载无法在 /proc/mounts 中找到目录

Fee*_*ure 5 nfs mount

当安装手动使用NFS共享mount和形式的路径<domain/ip>:<path>/<path><domain/ip>:/<path>/<path>umount未能找到在路径/proc/mounts,尽管事实上该路径实际上是在中列出/proc/mounts

这与这个问题中的问题相同:How to solve this NFS unmunt problem?

重现步骤:

# mount --version
mount from util-linux 2.24.1 (libmount 2.24.0: debug, assert)
# mkdir mountpath
# mount 192.168.2.101:/devices mountpath
# umount mountpath
/home/.../mountpath was not found in /proc/mounts
# grep mountpath /proc/mounts
192.168.2.101://devices /home/.../mountpath nfs4 rw,[snip],addr=192.168.2.101 0 0
Run Code Online (Sandbox Code Playgroud)

我怎样才能卸载这个安装?

Fee*_*ure 1

出现此问题的原因是使用您在命令行上指定的路径mount添加了挂载,但其中始终显示有附加斜杠。/etc/mtab/proc/mounts

要解决该问题,请编辑/etc/mtab以匹配 中的语法/proc/mounts

为了避免将来出现问题,请始终使用与/proc/mounts/:相同的语法挂载 SMB 共享192.168.2.101://devices

另请比较此错误报告:https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/974374