linux - 如何强制 CIFS 连接卸载

我在 Linux 机器上安装了一个 CIFS 共享。 CIFS 服务器已关闭,或 Internet 连接已关闭,任何接触 CIFS 挂载的内容现在都需要几分钟才能超时,并且在您等待时无法杀死。我什至不能在我的主目录中运行 ls 因为有一个符号链接(symbolic link)指向 CIFS 挂载内部,并且 ls 试图跟随它来决定它应该是什么颜色。如果我尝试卸载它(即使使用 -fl),卸载过程也会像 ls 一样挂起。甚至 sudo kill -9 也无法杀死它。如何强制内核卸载?

最佳答案

我使用惰性卸载:umount -l(这是一个小写的L)

Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)

https://stackoverflow.com/questions/74626/

相关文章:

linux - 在 Ubuntu 中轻松更改 $JAVA_HOME

python - 如何为 popen 指定工作目录

linux - 递归删除文件

python - 如何用下划线替换空格?

python - Python中的事件系统

windows - 如何让 Windows 在编译 C++ 时与 Linux 一样快?

python - matplotlib 错误 - 没有名为 tkinter 的模块

linux - 如何在没有密码的情况下以另一个用户身份运行脚本?

linux - 如何在 linux 中显示来自 bash 脚本的 GUI 消息框?

linux - 如何在不覆盖 TTY 的情况下将密码传递给 su/sudo/ssh?