umount 命令卸载两个挂载点

umount 命令卸载两个挂载点

我有两个挂载点,例如/volumes/dir1/Volumes/dir2。当我umount安装一个卷时,另一个卷会自动卸载。

这些卷是从远程系统安装的。他们使用命令输出不同大小的文件df

什么可能导致该问题。无论如何,有没有办法知道一个人与另一个人有关系。我该如何检查?

有没有命令可以检查关系?

答案1

您应该按目录名称卸载,而不是设备名称。

man umount:

The  umount  command detaches the mentioned file system(s) from the file 
hierarchy. A file system is specified by giving the directory where it 
has been mounted. Giving the special device on which the file system 
lives may also work, but  is  obsolete,  mainly because it will fail in 
case this device was mounted on more than one directory.

相关内容