[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: umount partition is busy



On Sat, Apr 08, 2006 at 02:23:48PM +0700, Surachai Locharoen wrote:
> Andrew Sackville-West wrote:
> >On Fri, Apr 07, 2006 at 05:53:06PM -0700, charles norwood wrote:
> >  
> >>On Fri, 2006-04-07 at 16:22 -0500, Hugo Vanwoerkom wrote:
> >>    
> >>>Hi,
> >>>
> >>>I do:
> >>>
> >>>umount /hda14
> >>>
> >>>and get:
> >>>
> >>>umount: /hda14: device is busy
> >>>umount: /hda14: device is busy
> >>>
> >>>
> >>>Is there a way of finding out *why* it is busy? Obviously it is linked 
> >>>to someplace, but where?

well in this case, its because my current working directory was /home...
that's the big 'duh' moment. 

others in this thread have mentioned use of lsof | grep <device in
question> which is th eonly solution I know.

A

> >>>
> >>>Thanks!
> >>>
> >>>H
> >>>
> >>>
> >>>      
> >>Try mount with no arguments.  It lists mounted mount points.
> >>    
> >
> >
> >I am embarrassed to admit that many times my cli is sitting in the very
> >directory I'm trying to umount.
> >
> >for example.
> >
> >andrew@basement:~$ mount
> >[...]
> >/dev/hdb7 on /home type ext3 (rw)
> >[...]
> >andrew@basement:~$ sudo umount /home
> >Password:
> >umount: /home: device is busy
> >umount: /home: device is busy
> >
> >
> >Its happened more than once. :)
> >
> >A
> >
> >  
> >>-- 
> >>To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> >>with a subject of "unsubscribe". Trouble? Contact 
> >>listmaster@lists.debian.org
> >>
> >>    
> >
> >
> >  
>  To view process which use /home, Use fuser command
> 
> $> fuser /home
> 
> if you want to kill process use
> $> fuser -k /home
> 
> and then you can umount fine.

> begin:vcard
> fn:Surachai Locharoen
> n:Locharoen;Surachai
> email;internet:surachai@prachakij.com
> note:If you can't explain it simply, you don't understand it well enough. (Albert Einstein)
> x-mozilla-html:TRUE
> version:2.1
> end:vcard
> 

Attachment: signature.asc
Description: Digital signature


Reply to: