rm: cannot remove directory `misc': Device or resource busy
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rm: cannot remove directory `misc': Device or resource busy相关的知识,希望对你有一定的参考价值。
rm: cannot remove directory `misc‘: Device or resource busy
解决方法:
[[email protected] misc]# cat /etc/misc
cat: /etc/misc: No such file or directory
[[email protected] misc]# cat /etc/auto.master
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc /etc/auto.misc
#
这一行注释掉
192 service automount restart
193 service autofs restart
解决过程
查看谁在用/misc
[[email protected] misc]# /sbin/fuser -m /misc
/misc: 1rce 2rc 3rc 4rc 5rc 6rc 7rc 8rc 9rc 10rc 11rc 12rc 13rc 14rc 15rc 16rc 17rc 18rc 19rc 20rc 21rc 22rc 23rc 24rc 25rc 26rc 163rc 174rc 175rc 176rc 177rc 178rc 179rc 180rc 181rc 182rc 347rc 348rc 349rc 350rc 351rc 352rc 353rc 354rc 357rc 359rc 483rc 486rc 487rc 488rc 489rc 490rc 491rc 492rc 493rc 494rc 700rc 809rc 810rc 811rc 821rc 822rc 823rc 824rc 825rc 826rc 827rc 828rc 829rc 848rc 885rc 951rc 977rc 1010rce 1390rce 1448rce 1454rce 2588rc 2589rc 2590rc 2591rc 2592rc 2593rc 2594rc 2595rc 2596rc 2663rce 2664rc 2667rc 2668rc 2669rc 2670rc 2671rc 2672rc 2673rc 2674rc 2675rc 2676rc 2679rc 2680rc 2681rc 2682rc 2683rc 2684rc 2685rc 2686rc 2687rce 3254rc 3452rce 3750rce 3752rce 3784rce 3787rce 3920rce 3941rce 3970rce 4004rce 4029rce 4085rce 4100rce 4114rce 4115rce 4125rce 4129rce 4138rce 4191rce 4247rce 4299rce 4337rce 4425rce 4440rce 4454rce 4492rce 4519rce 4556rce 4573rce 4574rce 4659rce 4660rce 4907rce 5029rce 5056rce 5458rce 5462rce 5463rce 5464rce 5467rce 5472rce 5475rce 6738rce 6739rce 6740rce 6741rce 6742rce 6743rce 6744rce 6745rce 14805rc 18963rce 19019rce 19053rce 19109rce 19128rce 19184rce 19204rce 19260rce 19279rce 19335rce 19363rce 19419rce 19450rce 19506rce 21785rce 21800rce 24079rc 29743rce 29753rce 31798rce 31808rce 32649rce 32658rce
[[email protected] misc]# lsof +D /misc
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
bash 1454 root cwd DIR 253,0 4096 5001376 /misc/crmfile
lsof 5210 root cwd DIR 253,0 4096 4933473 /misc
lsof 5211 root cwd DIR 253,0 4096 4933473 /misc
bash 29753 root cwd DIR 253,0 4096 4933473 /misc
[[email protected] crmfile]# exportfs -rv
exporting 192.168.20.28:/misc
exporting 192.168.20.27:/misc
exporting 192.168.20.28:/mnt
exporting 192.168.20.27:/mnt
[[email protected] misc]# showmount -e
Export list for crmnormal:
/mnt 192.168.20.27,192.168.20.28
/misc 192.168.20.27,192.168.20.28
以上是关于rm: cannot remove directory `misc': Device or resource busy的主要内容,如果未能解决你的问题,请参考以下文章
rm:cannot remove date'no such file or directory啥意思
rm: cannot remove `/home/wwwroot/default/.user.ini': Operation not permitted
ubuntu 提示:rm: cannot remove 'you-get/tmp': Directory not empty
编译安装apr 1.5.2 时报 rm: cannot remove `libtoolT': No such file or directory
linux下,删除文件会提示:rm: cannot remove `accept.mdc': Invalid argument
Sharepoint 2013 issue : The solution cannot be deployed. The feature 'XXXX' uses the directo