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

flybywire picture flybywire · Mar 8, 2009 · Viewed 141.5k times · Source

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

Answer

MarkusQ picture MarkusQ · Mar 8, 2009

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.