如何强制卸载CIFS连接 [英] How do you force a CIFS connection to unmount

查看:708
本文介绍了如何强制卸载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)

懒惰卸载.分离文件系统 现在从文件系统层次结构中 清理所有对 不繁忙的文件系统 不再. (需要内核2.4.11或 以后.)

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.)

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆