LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-29-2007, 09:04 PM   #1
sunhui
Member
 
Registered: Jan 2006
Location: taiwan
Posts: 156

Rep: Reputation: 30
Unable to kill a process


I want to umount a path , I have checked what process is running in the path by lsof , now I found that there are three processes is running , I try to kill this process but can't , it is strange that the pid is change and change , every time I use lsof , the output is different , so I can't kill any process , can advise how can I umount it ? thx


#lsof /orc_tmp
lsof 14429 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14430 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp

#lsof /orc_tmp
lsof 14434 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14435 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp

#lsof /orc_tmp
lsof 14441 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14442 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp
 
Old 03-29-2007, 09:17 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by sunhui
I want to umount a path , I have checked what process is running in the path by lsof , now I found that there are three processes is running , I try to kill this process but can't , it is strange that the pid is change and change , every time I use lsof , the output is different , so I can't kill any process , can advise how can I umount it ? thx


#lsof /orc_tmp
lsof 14429 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14430 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp

#lsof /orc_tmp
lsof 14434 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14435 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp

#lsof /orc_tmp
lsof 14441 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14442 root cwd DIR 232,48 4096 32769 /orc_tmp
bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp
To kill root processes you need to be logged in as root. It's also possible that only root has been set with the right to umount.
 
Old 03-29-2007, 09:27 PM   #3
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
Quote:
Originally Posted by sunhui
I want to umount a path , I have checked what process is running in the path by lsof , now I found that there are three processes is running , I try to kill this process but can't , it is strange that the pid is change and change , every time I use lsof , the output is different , so I can't kill any process , can advise how can I umount it ? thx


#lsof /orc_tmp
lsof 14429 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14430 root cwd DIR 232,48 4096 32769 /orc_tmp

bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp

#lsof /orc_tmp
lsof 14434 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14435 root cwd DIR 232,48 4096 32769 /orc_tmp

bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp

#lsof /orc_tmp
lsof 14441 root cwd DIR 232,48 4096 32769 /orc_tmp
lsof 14442 root cwd DIR 232,48 4096 32769 /orc_tmp

bash 21871 root cwd DIR 232,48 4096 32769 /orc_tmp
Your result is strange, can you use ps aux | grep lsof see whether it lsof still running?

And, you may give fuser a try,
#fuser -m /orc_tmp

Good lucks,
Ks
 
  


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
Unable to kill the process rajaniyer123 Linux - General 5 03-02-2007 08:27 AM
Unable to kill process rvsridhar Linux - General 5 03-13-2006 08:07 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
Unable to kill Java process on Fedora Core 2 eblack Fedora 10 04-07-2005 02:49 AM
Cannot kill process - please help! thomas.nichols Linux - General 16 09-05-2001 06:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:07 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