Re: [SLUG] "mount" weirdness

From: Eben King (eben01@verizon.net)
Date: Tue Feb 24 2009 - 01:36:09 EST


On Tue, 24 Feb 2009, Paul M Foster wrote:

> On Tue, Feb 24, 2009 at 12:56:08AM -0500, Eben King wrote:
>
>> 'Splain this, please.
>>
>> eben@pc:~$ sudo umount /misc/scratch/
>> umount: /misc/scratch: device is busy
>> umount: /misc/scratch: device is busy
>>
>> eben@pc:~$ lsof -n | grep scratch
>> eben@pc:~$
>>
>> Why's it busy, then? This might explain why automount never lets it
>> umount.
>> In particular:
>>
>> eben@pc:~$ sudo /etc/init.d/autofs stop
>> Stopping automounter:
>> Couldn't stop automount for /misc done.
>>
>
> Looks like it's /misc, not /misc/scratch that's actually busy, since
> autofs reports /misc as the thing it couldn't umount.

It doesn't mount /misc, that's just where the mount points are.

> My problem with things like this is that I always have mc opened on the
> directory I want to umount. I don't know if lsof shows it when I do that,
> but that's what always snags me. In any case, you might try lsof -n | grep
> misc and see what it says.

eben@pc:~$ lsof -n | grep /misc
man 6203 eben 6r DIR 8,5 4096 1811521 /misc/export/man
man 6203 eben 7r DIR 8,5 4096 1355173 /misc/export/X11/man

Hm, OK, look for a man page.... found one:

eben@pc:~$ lsof -n | grep /misc
eben@pc:~$

Still won't work:
eben@pc:~$ sudo umount /misc/scratch ; sudo lsof -n | grep -e /misc -e scratch ; sudo /etc/init.d/autofs stop
umount: /misc/scratch: device is busy
umount: /misc/scratch: device is busy
automount 3102 root 5r DIR 0,18 0 6200 /misc
hald 4381 haldaemon mem REG 8,2 171981 121529 /var/lib/misc/usb.ids
hald 4381 haldaemon mem REG 8,3 529991 443185 /usr/share/misc/pci.ids
Stopping automounter:
   Couldn't stop automount for /misc done.
eben@pc:~$

The stuff from hald's in there because its path contains "/misc". I don't
know an easy way to exclude it.

-- 
-eben   QebWenE01R@vTerYizUonI.nOetP   http://royalty.mine.nu:81
LEO:  Now is not a good time to photocopy your butt and staple it
to your boss' face, oh no.  Eat a bucket of tuna-flavored pudding
and wash it down with a gallon of strawberry Quik.  -- Weird Al
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:58:24 EDT