LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2006, 11:18 PM   #1
binary_0011
Member
 
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Rep: Reputation: 15
cant umount


[root@rhe11 /]# umount -f /home/download
umount2: Device or resource busy
umount: /home/download: device is busy
umount2: Device or resource busy
umount: /home/download: device is busy


-f is a force option, why it still wont work?

Thanks.
 
Old 04-23-2006, 11:21 PM   #2
Amuro-Ray2020
Member
 
Registered: Aug 2004
Location: Arizona
Distribution: Linux Mint
Posts: 81

Rep: Reputation: 15
My guess is that something is being written within the directory, or you have something running within the directory. Out of curiosity, is this directory on a seperate drive?
 
Old 04-23-2006, 11:28 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
If /home/download is on a separate drive or partition, then you can umount. If it is just a subdirectory of /home, then you can't. You can umount /home if it is on a separate drive though.

When you umount, your Present Working Directory can not on the device you are umounting. To find out, use the command "pwd". Eg: if pwd is /home/download/ then you can not umount /home/download

I hope this helps
--Ian
 
Old 04-23-2006, 11:35 PM   #4
binary_0011
Member
 
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Original Poster
Rep: Reputation: 15
it is not a sub-directory. it is on a vol group and was mounted manually :

/dev/mapper/mystore-download on /home/download type ext3 (rw)

no, i am not on my present working directory.
 
Old 04-24-2006, 12:23 AM   #5
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Try

lsof | grep download

This will tell you if any proces is still using some files inside this directory.

A
ps -auxww
Should also show you if any process is using the directory and not allowing it to unmount

Cheers
Z
 
Old 04-24-2006, 03:11 AM   #6
binary_0011
Member
 
Registered: Apr 2006
Location: Singapore
Distribution: RHEL4,FC4,FC5
Posts: 89

Original Poster
Rep: Reputation: 15
lsof | grep download

showed me the user accessing the file/directory.

How do I kick him?

Thanks.
 
Old 04-24-2006, 03:20 AM   #7
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
See if its a process accessing the directory.
If its a process kill that process with a
kill -9 pid

[The process id can be obtained from lsof output ]

Or try a
w
and see if any user is connected through network and accessing your download directory.

Also see if ps -auxwww is of any help.

Cheers
Zulfi
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why cannot umount ? whepin Linux - General 3 02-07-2006 10:42 AM
how to umount / taiwf Linux - General 13 08-05-2005 12:40 AM
umount cd in use provkitir Linux - Newbie 3 01-29-2005 07:09 PM
is it ok to use umount -l ? ewto Linux - General 5 10-21-2003 01:57 AM
cannot umount... ??? spyghost Linux - Software 9 09-06-2003 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration