2002-08-26 22:35:49

by Itai Nahshon

[permalink] [raw]
Subject: [OT] unable to umount ... device busy

Well, sorry for bringing this up here3 but I do not know
of a better forum for this subject...

Working in an environment of multiple Linux systems
(and wildly using NFS and am-utils) I have hit this problem
many times and in some cases I can describe it as "embarrassing".

The problem is that processes that do not really care about their
working directory are standing in the way of umount.
It is most painful when I cannot eject a CD (or other removable
device) and sometimes with NFS mounted directories.

Most guilty programs:
su + the pam patch (as distributed by redhat) there's a process just
waiting for the shell to exit.
Daemons - should cd to "/" except if there is some other preferred
directory.

Related subject and not completely OT: I remember in AIX, umount -f
(forced umount) marked all the open inodes on the device as
STALE and then proceed (and never return EBUSY). Any plans
to implement it also for Linux?

-- Itai