loopback won't unmount?!
Roger Oberholtzer
roger
Mon May 17 11:47:42 PDT 2004
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
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.
--
+????????????????????????????+???????????????????????????????+
? Roger Oberholtzer ? E-mail: roger at opq.se ?
? OPQ Systems AB ? WWW: http://www.opq.se/ ?
? Erik Dahlbergsgatan 41-43 ? Phone: Int + 46 8 314223 ?
? 115 34 Stockholm ? Mobile: Int + 46 733 621657 ?
? Sweden ? Fax: Int + 46 8 302602 ?
+????????????????????????????+???????????????????????????????+
More information about the Linux-users
mailing list