loopback won't unmount?!

Net Llama! netllama
Mon May 17 11:47:42 PDT 2004


On Fri, 23 May 2003, Roger Oberholtzer wrote:
> On Thu, 22 May 2003 14:15:26 -0700
> "Net Llama!" <netllama at linux-sxs.org> wrote:
>
> > On 05/22/03 14:06, Condon Thomas A KPWA wrote:
> >
> > > Net Llama! wrote:
> > >> I mounted a ext3 filesystem image on loopback today, and then
> > >> chroot'ed into it to make some changes.  when i tried to unmount it,
> > >> it refuses with the error:
> > >> Device or resource busy
> > >>
> > >> If i grep the output from lsof for the file that i had mounted, i get
> > >> no results.  What can i do to unmount this besides rebooting the box?
> > >
> > > I found you have to cd *out* of the mounted disk in the chroot
> > > environment before you can exit and unmount it in the master
> > > environment.  If you didn't do that, chroot back in and "cd /".  Then
> > > you should be able to unmount it when you exit.  Strange, but it keeps
> > > track of *anyone* in that directory structure.
> >
> > nope, i did that too.  thanks though.
>
> You have probably unmounted it by now, but you could see if any files are

Unfortunately not.

> open on it with:
>
> 	lsof +D /mountpoint
>
> Or, you could try:
>
> 	ls -l /proc/*/fd | fgrep /mountpoint
>
> That still leaves you with a program having a directory in the file system
> as the current directory.

Both come up dry.  any other ideas?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman				netllama at linux-sxs.org
Linux Step-by-step & TyGeMo		     http://netllama.ipfox.com


More information about the Linux-users mailing list