Obet, Your inside the directory while you're trying to umount it. :-) cd yourself out of it first.
--- mike t. ----- Original Message ---- From: Roberto Verzola <[EMAIL PROTECTED]> To: Philippine Linux Users' Group (PLUG) Technical Discussion List <[email protected]> Sent: Wednesday, March 7, 2007 7:53:23 AM Subject: Re: [plug] Turning off (the light of) a USB thumb drive I used lsof as you suggested and got the ff, when the busy problem arose again. Does this mean I have to kill 'console' and 'bash'? [EMAIL PROTECTED]:/media/usb/ext3$ lsof | grep /ext3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lsof: WARNING: can't stat() ext3 file system /dev/.static/dev Output information may be incomplete. konsole 10543 rverzola cwd DIR 8,1 4096 1 /media/usb/ext3 bash 10544 rverzola cwd DIR 8,1 4096 1 /media/usb/ext3 lsof 10549 rverzola cwd DIR 8,1 4096 1 /media/usb/ext3 lsof 10550 rverzola cwd DIR 8,1 4096 1 /media/usb/ext3 grep 10551 rverzola cwd DIR 8,1 4096 1 /media/usb/ext3 [EMAIL PROTECTED]:/media/usb/ext3$ umount /media/usb/ext3 umount: /media/usb/ext3: device is busy umount: /media/usb/ext3: device is busy [EMAIL PROTECTED]:/media/usb/ext3$ (In fact, I went ahead and killed console and bash. So another lsof didn't show the path to the usb stick anymore. But when I tried to umount it, I still got this:) [EMAIL PROTECTED]:~$ umount /media/usb/ext3 umount: /media/usb/ext3: device is busy umount: /media/usb/ext3: device is busy [EMAIL PROTECTED]:~$ I get the same result using Konqueror (Go, Devices). Device is busy. Any more suggestions? Obet On Tuesday 06 March 2007 2:39 pm, Michael Tinsay wrote: > 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
_________________________________________________ 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

