The module can't be removed, because it's busy (used)

Technical issues/questions of an intermediate or advanced nature.
Post Reply
User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

The module can't be removed, because it's busy (used)

Post#1 by Rava » 17 Apr 2016, 08:27

In some older Port versions one got a small info window telling me what program is blocking a module and probably the reason why it cannot be deactivated.

But when I try to run

Code: Select all

# deactivate /mnt/live/memory/images/05-devel.xzm
05-devel.xzm: The module can't be removed, because it's busy (used).
I get this in console and a GUI window telling me the similar info (differently phrased)

I recall lsof was one of the programs one could use to find the culprit process, but forgot the other.

What about a script that looks for folders with executable files, and then looks if any of these paths are still open by some program?
I tried compiling stuff weeks ago (it failed, here the info viewtopic.php?f=117&t=4717&p=43566#p43559 :wall: )

What do you folks think of my idea?
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 4946
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: The module can't be removed, because it's busy (used)

Post#2 by francois » 25 Apr 2016, 12:57

I have the same problem as you and finally just got used to it.

When I achieve to get out, it is by closing folders implicated, for example after umount of usb stick. Otherwise, nothing would make a change, not even log out of X.

Here is what I found to get rid of background processes:
http://unix.stackexchange.com/questions ... nd-process
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: The module can't be removed, because it's busy (used)

Post#3 by Rava » 25 Apr 2016, 13:46

Thanks francois, by now I restarted my whole machine and solved the issue by that.


But this is the very last approach to this issue. usually I look up every terminal and virtual terminal, and usually somewhere a mc is open, started in a path that is part of the activated module. But not this time, I tried every single VT or T, to no avail...

I wonder, what did happen to the info window that told us which process is using the module we want to deactivate.
Porteus used to have that window, but at least in current version (3.1) I don't see it anymore.
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 4946
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: The module can't be removed, because it's busy (used)

Post#4 by francois » 25 Apr 2016, 16:12

There is nothing in Porteus Settings Center?
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: The module can't be removed, because it's busy (used)

Post#5 by Rava » 26 Apr 2016, 01:50

francois wrote:There is nothing in Porteus Settings Center?
I looked it through but did not find anything.
Cheers!
Yours Rava

Post Reply