![紧接在“fusermount -u;”之后umount' 偶尔会失败,目标正忙](https://linux22.com/image/224111/%E7%B4%A7%E6%8E%A5%E5%9C%A8%E2%80%9Cfusermount%20-u%3B%E2%80%9D%E4%B9%8B%E5%90%8Eumount'%20%E5%81%B6%E5%B0%94%E4%BC%9A%E5%A4%B1%E8%B4%A5%EF%BC%8C%E7%9B%AE%E6%A0%87%E6%AD%A3%E5%BF%99.png)
我有一个脚本
前置条件:lsof /dir1
明确
#/bin/bash
...
fusermount -u /dir1/dir2 # unbind dir2
umount /dir1 # sporadically fails with 'Target is Busy'
...
- 为什么我偶尔会收到“目标正忙”错误?
- 鉴于我需要在关闭 VPN 连接之前知道文件系统已卸载,我可以合理地采取什么措施?
我有一个脚本
前置条件:lsof /dir1
明确
#/bin/bash
...
fusermount -u /dir1/dir2 # unbind dir2
umount /dir1 # sporadically fails with 'Target is Busy'
...