try:

lsof | grep <path of mounted thumdrive>

to see is there's are processes that holds a lock to a file/resource located in 
yout thumb drive.


--- mike t.


----- Original Message ----
From: Roberto Verzola <[EMAIL PROTECTED]>
To: Philippine Linux Users' Group (PLUG) Technical Discussion List 
<[email protected]>
Sent: Tuesday, March 6, 2007 1:53:53 PM
Subject: Re: [plug] Turning off (the light of) a USB thumb drive

Hi Eric. Yes, I realize that would do it, although this is exactly what I'm 
trying to avoid -- logging out -- because it takes so much time, and there 
must be a better way. I make sure I've closed all shells, when I encounter 
this problem. I even do a "ps x" to check for remaining programs.

Thanks for the suggestion.

Obet

On Tuesday 06 March 2007 1:36 pm, eric pareja wrote:
> A little heavy handedness might be in order, and this solution is
> overkill, but you might want to log out then log in again before
> attempting to umount the drive.  You may have a shell that has a
> current working directory on the drive you are trying to umount.
> Logging out will more often than not clear out programs that might be
> accessing the drive (not just the ones that you think are accessing
> it). This -should- help you umount the drive properly now.
>
> On 3/6/07, Roberto Verzola <[EMAIL PROTECTED]> wrote:
> > This is a recurring problem for me. Sometimes, a usb drive refuses to be
> > unmounted. I would close all files on the drive and other programs I know
> > are accessing the drive, and I'd still get a "drive busy" message if I
> > unmount it, even if I type "sync" several times on the command line. So I
> > end up pulling out a USB stick that was not properly unmounted.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph




_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to