mat*_*hak 4 ubuntu remote mount sshfs
我经常使用 sshfs 挂载远程目录,使其显示为本地目录:
sudo sshfs -o allow_other myname@server:/remote/path /mnt/remote/
Run Code Online (Sandbox Code Playgroud)
有时连接可能会中断,因此/mnt/remote
会显示为空。如果我尝试重新运行上面的命令,我会得到
'/mnt/remote:' Transport endpoint is not connected'
Run Code Online (Sandbox Code Playgroud)
但是我无法(强制)卸载该目录:
sudo umount (-f) /mnt/remote
umount: /mnt/remote: target is busy
Run Code Online (Sandbox Code Playgroud)
我想知道如何在不重新启动计算机的情况下重新挂载目录?