本文介绍了如何强制卸载CIFS连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have a CIFS share mounted on a Linux machine. The CIFS server is down, or the internet connection is down, and anything that touches the CIFS mount now takes several minutes to timeout, and is unkillable while you wait. I can't even run ls in my home directory because there is a symlink pointing inside the CIFS mount and ls tries to follow it to decide what color it should be. If I try to umount it (even with -fl), the umount process hangs just like ls does. Not even sudo kill -9 can kill it. How can I force the kernel to unmount?

推荐答案

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

I use lazy unmount: umount -l (that's a lowercase L)

这篇关于如何强制卸载CIFS连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-19 13:53