umount无法成功卸载

现象:执行 umount /dev/xxx 命令时,提示device is busy 。
解决方法:(1)使用-f -l 选项强制卸载。
              (2)先使用lsof /dev/xxx 查看哪个进程使用了该设备,kill掉那进程,重新umount。
              (3)使用fuser -m /mountpoint获取被使用的进程号,kill掉进程
              (4)修改文件/proc/self/mounts(/etc/mounts),移除需要umount的行,
                    执行/etc/init.d/autofs restart

posted @ 2012-12-21 16:06  poiqwe  阅读(400)  评论(0编辑  收藏  举报