LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2005, 01:31 PM   #1
essdeeay
Member
 
Registered: Aug 2004
Location: United Kingdom
Distribution: Debian
Posts: 88

Rep: Reputation: 15
Cannot kill process


Hello

I have a 'rsync' job started by cron, but it keeps getting stuck and I now cannot eject the removeable media I was writing to... afer 14 hours! The removeable media is an Iomega REV drive, and it accepts the CDROM eject command normally.

now, when I try to eject, I get:
Code:
[root@samba ~]# eject /media/rev
umount: /media/rev: device is busy
umount: /media/rev: device is busy
eject: unmount of `/media/rev' failed

[root@samba ~]# fuser -v /media/rev
                     USER        PID ACCESS COMMAND
/media/rev           root      16744 f.c..  rsync
                     root     kernel mount  /media/rev

[root@samba ~]# ps aux | grep -i rsync
root     16744  0.1  1.0 18536 16056 ?       D    00:24   1:07 rsync -rLpogDtu --stats --ignore-errors --delete --delete-excluded --include-from=/etc/backup-include / /media/rev/
root     13731  0.0  0.0  3748  688 pts/0    S+   17:24   0:00 grep -i rsync
"kill -9 16744" returns nothing, as if it's successfully killed the process, but it doesn't kill it. How can I recover from this?

Many thanks,
Steve
 
Old 11-10-2005, 01:33 PM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Did you try: umount -l /media/rev
 
Old 11-10-2005, 01:38 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Try "ps -ef |grep 16744" and see what the PPID of 16744 is. If not 1 (init) then you may be able to kill that instead and have it clean up its child.

By the way kill -9 should be last resort. You should try kill (or kill -15) first then kill -1 and only if both of those fail kill -9. The kill -9 says to stop without trying to do any cleanup and can leave all sorts of cr...er..stuff in place. Some processes (shells for example) only seem to die cleanly with kill -1 which is why I always try it second.

ps -ef is SysV style ps whereas ps -aux is Berkley style and IMHO the Berkley style isn't as useful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Process won't kill mrsolo Linux - Software 5 08-03-2007 12:45 PM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
Cannot kill process Zeno McDohl Linux - General 13 04-14-2005 02:31 PM
kill a process for sure spuzzzzzzz Linux - General 1 06-05-2004 04:59 PM
Why can't I kill this process? solking Linux - General 5 10-29-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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