device or resource busy, despite that it is not mounted and nobody is using it

0

> sudo rmdir workspace/log
rmdir: failed to remove `workspace/log': Device or resource busy

>sudo umount workspace/log
umount: workspace/log: not mounted

>fuser workspace/log
>
>lsof workspace/log
>

user322908

Posted 2014-05-14T22:24:03.733

Reputation: 739

what is the Full Path of workspace/log? – eyoung100 – 2014-05-14T22:29:51.830

/home/mark/workspace/log but I call all of this from my home directory so I use relative paths – user322908 – 2014-05-14T22:50:24.897

have you checked with lsof as well ? – Lawrence – 2014-05-15T01:51:33.513

@Lawrence yessir – user322908 – 2014-05-15T22:34:44.887

What happens if you run those command with absolute paths? – Cristian Ciupitu – 2014-05-15T22:55:39.517

Answers

0

A local guru told me, there is a program, called "netnsd" that may use a mounted directory, even though it does not show in fuser or lsof. I need to ps -aux | grep myself and kill everything in sight that has to do with netns and the directory in question.

There is more, another case where that was not sufficient, he found that I need to kill anything to do with the process Sysdb

user322908

Posted 2014-05-14T22:24:03.733

Reputation: 739