Re: [SLUG] "mount" weirdness

From: Eben King (eben01@verizon.net)
Date: Sun Mar 01 2009 - 17:59:49 EST


On Tue, 24 Feb 2009, blee2@tampabay.rr.com wrote:

> Thus Eben King hast written on Tue, Feb 24, 2009 at 12:56:08AM -0500, and, according to prophecy, it shall come to pass that:
>> eben@pc:~$ sudo umount /misc/scratch/
>> umount: /misc/scratch: device is busy
>> umount: /misc/scratch: device is busy
>
> For what it's worth, generally when I run into this problem, it's because
> I'm running something like `vi /etc/hosts` that was started in
> /misc/scratch/foo. So the file being edited is unrelated, but there's
> something that has it's current working directory inside the mountpoint.

Usually "lsof" will show that though. Usually what happens to cause that
error is I'm cded into something on that filesystem. This time, I don't
know what caused it, but it eventually went away. I may have rebooted.

Is there a way to make a given partition temporarily unmountable so I can
see what breaks when automount can't mount it? I could take it's entry out
of /etc/auto.misc I suppose. I have X up now and /misc/scratch is
permanently mounted. I don't know what's on there it would want. After a
while it picks up more partitions and makes them permanenlty mounted too.
I added some stuff to my "logmonitor" script to make it speak when a
partition is automatically mounted, so I can figure out what causes it.

-- 
"The Web brings people together because no matter what kind of a
  twisted sexual mutant you happen to be, you've got millions of pals
  out there.  Type in 'Find people that have sex with goats that are on
  fire' and the computer will say, 'Specify type of goat.'" -- Rich Jeni
-----------------------------------------------------------------------
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 - 19:09:53 EDT