LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-29-2005, 10:06 PM   #1
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Slackware,Bluewhite64
Posts: 252

Rep: Reputation: 30
the process that would not die -- can't kill fdisk


I am trying to kill fdisk, but it will not close. I have tried killall fdisk, top k pid xx, kill -s xx pid. ksysguard doesn't open as root so I don't have the permissions in there.(fdisk was run as root)

I have tried killing bash which has opened it, but that didn't work either.

I'm at a total loss, only thing I haven't tried is rebooting but I don't want to do that. I have noticed before that no matter what I do I cannot force kill certain processes and have to reboot to stop them.
 
Old 10-29-2005, 11:34 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
to force something to get killed try
Code:
kill -9 <pid>
by default the kill command sends a SIGTERM (15) signal which may be ignored by a process.
the SIGKILL (9) signal cannot be ignored.
for more info try:
Code:
man 7 signal
 
Old 10-29-2005, 11:38 PM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
also CTRL+C will kill fdisk.
 
Old 10-29-2005, 11:41 PM   #4
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
pkill <command> works nicely too
 
Old 10-30-2005, 12:21 AM   #5
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Slackware,Bluewhite64
Posts: 252

Original Poster
Rep: Reputation: 30
hmm..none of those are working

just that I can't mount /dev/sda1 because fdisk is using it. I tried restarting X, but that didn't work either... and I have all these weird processes like loop{1,2,3,4,5}, don't know what they are. Plus mount is running? fdisk is running in the background? weird

Last edited by Furlinastis; 10-30-2005 at 12:23 AM.
 
Old 10-30-2005, 05:53 AM   #6
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
try
Code:
lsof /dev/sda1
to find out what process is keeping the file open and then kill the process with kill -9 .
 
Old 10-30-2005, 08:07 AM   #7
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
Quote:
Originally posted by perfect_circle
try
Code:
lsof /dev/sda1
to find out what process is keeping the file open and then kill the process with kill -9 .
Hello perfect_circle!
Just wild guess... Is there possibility for your site to be remastered on international manner?
 
Old 10-30-2005, 09:39 AM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally posted by SlackerLX
Hello perfect_circle!
Just wild guess... Is there possibility for your site to be remastered on international manner?
You mean translate it to English?
Well for now, the site mainly contains a guide on how to enable Greek support in slackware (gui, console, xine subtitles, support files with Greek names, etc). If I extend it to contain non-greek stuff like slackbuilds or something like that I'll translate it (if I find some spare time )
 
Old 10-30-2005, 09:52 AM   #9
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
I was just curious if you have some interesting stuff.
BTW, do you use slapt-get? I use it with this configuration.
http://slackerlx.blogspot.com/2005/1...iguration.html
If you have some more of this I'll appreciate getting tip
THX
 
Old 10-30-2005, 10:43 AM   #10
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
the loopback devices not being freed up might be a bug

when i

# umount /mnt/hd there not freed up

# umount file.iso frees them up

# umount /mnt/hd use to work like that in slack 10.1 don't know if thats a bug or not.

I sometimes get those processes that wont die even with a kill -9 only a reboot solves the problem.
 
Old 10-30-2005, 10:56 AM   #11
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Slackware,Bluewhite64
Posts: 252

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by perfect_circle
try
Code:
lsof /dev/sda1
to find out what process is keeping the file open and then kill the process with kill -9 .
oh, yea see that's how I knew fdisk was using /dev/sda1

and wouldn't google or dictionary.com translate that site?

Quote:
Originally posted by Boow

I sometimes get those processes that wont die even with a kill -9 only a reboot solves the problem.
yea, i suppose...

Last edited by Furlinastis; 10-30-2005 at 11:02 AM.
 
Old 10-30-2005, 11:48 AM   #12
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,988

Rep: Reputation: 261Reputation: 261Reputation: 261
Do ps -u -p <pid of stuck process> and check the state of the process. If the state is D it's in uninterruptable sleep (e.g. waiting for I/O) and can't be killed until that process finishes. If you do something such as yank a USB pendrive while something is reading/writing it or you have hard drive failures then you'll often see processes stuck in this state. If the state is Z it's a zombie, which means it has terminated, but the parent hasn't collected its status information. You may have to kill the parent process if it is stuck in order to reap the child.
 
Old 10-30-2005, 02:28 PM   #13
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Slackware,Bluewhite64
Posts: 252

Original Poster
Rep: Reputation: 30
It has a state of D. I don't think I removed it improperly but I guess I did. I'm just going to restart, and be more careful about mounting usb drives in the future. but thanks for your help
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why my script die itself when I try to kill a process?? jaimese Linux - Newbie 4 10-27-2005 05:50 AM
Die Miva, Die! Apache Woes, Cannot kill Miva linchat Linux - Software 3 09-16-2005 08:03 PM
When a process just won't die DJOtaku Linux - Software 3 05-11-2005 02:46 PM
Why Does the Program Die When I xkill It But Not When I kill -9 It? LinuxGeek Linux - Software 3 01-03-2005 03:30 AM
The process that WOULDN'T DIE! BertBert Linux - Software 6 04-27-2004 09:13 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration