I am using a mount command in a script to load a file(s) from a CD and if it doesn't work we have to reboot the system to get the mount command to go away. How can I kill a mount process when the kill -9 does not work?
I am trying to load a file from the cd onto the SCO Unix server and the script doesn't complete so the end user breaks out of the script and the mount command is still running. I try a kill -9 and it does not stop the process. Any suggestions?
it may be mount parameters used.....
check /etc/default/filesys in SCO Openserver for something trying to automount the cd.
What kind of filesystem is on the cd? how are you trying to mount it?
once a process has gone zombie then only a restart will clear it.
Immortal processes can be created when a process running at higher than normal priority gets hung up waiting on device I/O. You can try to renice the process and make another attempt to kill it, or you can try to SIGHUP the parent process (I'm guessing the parent process started out as a shell, and then switched to init once the shell died). Neither of these steps are guaranteed to work.
I want to point out that mount probably has some critical system resources locked, and killing the process with the lock in place may lead to undefined behavior.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.