Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – 当我收到陈旧的nfs文件句柄时,如何强行卸载?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

让自己陷入棘手的境地.将aufs挂载在/ mnt / 1 aufs on /mnt/1 type aufs (rw,relatime,si=daab1cec23213eea) 我无法卸下这件事: sudo umount -f /mnt/1 umount2: Stale NFS file handle umount: /mnt/1: Stale NFS file handle umount2: St
让自己陷入棘手的境地.将aufs挂载在/ mnt / 1
aufs on /mnt/1 type aufs (rw,relatime,si=daab1cec23213eea)

我无法卸下这件事:

sudo umount -f /mnt/1
umount2: Stale NFS file handle
umount: /mnt/1: Stale NFS file handle
umount2: Stale NFS file handle
umount2: Stale NFS file handle

如何卸载挂载点? (无需重启系统)

(注意:aufs位于openafs系统之上,而不是NFS.)

解决方法

来自man 8 umount:
-f     Force   unmount   (in  case  of  an  unreachable  NFS  system).
          (Requires kernel 2.1.116 or later.)

   -l     Lazy unmount. Detach the filesystem from the filesystem hierar-
          chy  Now,and cleanup all references to the filesystem as soon
          as it is not busy anymore.  (Requires kernel 2.4.11 or  later.)

如果sudo umount -f / mnt / 1不起作用,你可以试试sudo umount -l / mnt / 1.

大佬总结

以上是大佬教程为你收集整理的linux – 当我收到陈旧的nfs文件句柄时,如何强行卸载?全部内容,希望文章能够帮你解决linux – 当我收到陈旧的nfs文件句柄时,如何强行卸载?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: