Re: [SLUG] "mount" weirdness

From: Paul M Foster (paulf@quillandmouse.com)
Date: Tue Feb 24 2009 - 01:12:51 EST


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. 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.

Paul

-- 
Paul M. Foster
-----------------------------------------------------------------------
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:19 EDT