How can I determine what is using my autofs kernel module?  I have
autofs as a module and I can not remove it because it says it is busy. 
I do not have any automount processes running and no open mounts that
automount controls.

Somehow one of my mount points is in a strange state I can't find a way
to get it unstuck.  I don't want to reboot if at all possible.

Here are some listings and error messages that might give some clues.

>From the logs when I try and start the stuck mount point.
Oct  3 15:22:25 brian automount[8243]: starting automounter version 3.1.3, path = 
/bri, maptype = program, mapname = /etc/auto.bri_program
Oct  3 15:22:25 brian automount[8243]: Map argc = 1
Oct  3 15:22:25 brian automount[8243]: Map argv[0] = /etc/auto.bri_program
Oct  3 15:22:25 brian automount[8243]: >> mount: automount(pid8243) already mounted or 
/bri busy
Oct  3 15:22:25 brian automount[8243]: /bri: mount failed!

The following return nothing.
fuser /bri
lsof | grep /bri
ps ax | grep auto

# mount
/dev/hdb1 on / type ext2 (rw)
/proc on /proc type proc (rw)
/dev/hda3 on /boot type ext2 (rw)
/dev/hdc6 on /var type ext2 (rw)
/dev/hdb3 on /home type ext2 (rw)

# rmmod autofs
rmmod: autofs: Device or resource busy

# lsmod | grep autofs
autofs                  8800   1  (autoclean)

# ls -al /bri
total 1
   0 drwxr-xr-x   2 root     root            0 Sep 29 07:09 ./
   1 drwxr-xr-x  36 root     root         1024 Sep 23 16:14 ../


Thanks for any pointers
-- 
Brian Servis
------------------------------------------------------------------------
Mechanical Engineering              |  Never criticize anybody until you  
Purdue University                   |  have walked a mile in their shoes,
[EMAIL PROTECTED]                   |  because by that time you will be a
http://www.ecn.purdue.edu/~servis   |  mile away and have their shoes.

Reply via email to