Linux:哪个进程导致“设备繁忙"?在做umount的时候? [英] Linux: Which process is causing "device busy" when doing umount?

查看:184
本文介绍了Linux:哪个进程导致“设备繁忙"?在做umount的时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Linux:执行umount时,哪个进程导致设备繁忙"?

Linux: Which process is causing "device busy" when doing umount?

推荐答案

查看 lsof 命令(列出打开的文件)-它可以告诉您哪些进程正在保持打开状态.有时候这很棘手,但是通常像sudo lsof | grep (your device name here)这样简单的事情就可以为您完成.

Look at the lsof command (list open files) -- it can tell you which processes are holding what open. Sometimes it's tricky but often something as simple as sudo lsof | grep (your device name here) could do it for you.

这篇关于Linux:哪个进程导致“设备繁忙"?在做umount的时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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