码迷,mamicode.com
首页 > 其他好文 > 详细

umount -fl用法

时间:2018-02-13 12:24:17      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:link   some   mount   libc   sys   abs   proc   out   ids   

umount, 老是提示:device is busy, 服务又不能停止的。可以用"umount -fl"解决!

挂载:

mount - mount a filesystem

mount [optionsdevice dir

如:mount --bind /dev  /home/tmp/dev

解挂载:

umount - unmount a filesystem

umount [optionsdir

如:umount  /home/tmp/dev

Note that a file system cannot be unmounted when it is ‘busy‘ - for example, when there are open files on it, or when some process has its working directory there, or when a swap file on it is in use. The offending process could even be umount itself - it opens libc, and libc in its turn may open for example locale files. A lazy unmount avoids this problem。

       -f, --force
              Force an unmount (in case of an unreachable NFS system).

              Note that this option does not guarantee that umount command
              does not hang.  It‘s strongly recommended to use absolute
              paths without symlinks to avoid unwanted readlink and stat
              system calls on unreachable NFS in umount.
       -l, --lazy
              Lazy unmount.  Detach the filesystem from the file hierarchy
              now, and clean up all references to this filesystem as soon as
              it is not busy anymore.

umount -fl用法

标签:link   some   mount   libc   sys   abs   proc   out   ids   

原文地址:https://www.cnblogs.com/xingmuxin/p/8446178.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!