How to kill a bad write process in lubuntu

2015-01-28 Thread Linda
I had a usb drive that went bad so when I tried to do a cp 
command it just hung doing nothing.  I killed the command 
with ctrl -c but it was still listed when I did ps -aux. I 
tried to kill the process but it was stat D and I could not 
kill it. I tried doing a forced umount of the usb drive. The 
process was still there.  Did a shutdown but it would not 
finish shutting down and I had to turn off the power. Then 
this week I tried to copy a file that was too large for the 
usb drive this time using pcmanfm instead of the command 
line. Although it told you out of space and had a stop 
button it did not stop the process and again had to do a 
hard reboot to clean up the filesystem.
Is there a better way to clean up a write process that has 
gone bad

  Linda

--
Lubuntu-users mailing list
Lubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/lubuntu-users


Re: How to kill a bad write process in lubuntu

2015-01-28 Thread Jean
Hi Linda,
First, you have to find your process. The "top" command can be used as well as 
the "ps -edf" or "ps -aux" commands..Then, inside top, you should press the "k" 
key ("k" stands for kill). You type the process pid (you can find it in the 
first column of your process id line), press return and choose the kill signal 
to send : 3 says to the process "Excuse me, I'm sorry to ask you that, but can 
you stop, when you have finish what you're doing, but it's up to you", and 9 
says "I'm your boss, I extermine you like a * now... you're a dead process 
!!! NOW !"...you should use the 9th kill signal to kill your process.
May be it should work...
Jean


 Le Mercredi 28 janvier 2015 17h04, Linda  a 
écrit :
   

 I had a usb drive that went bad so when I tried to do a cp 
command it just hung doing nothing.  I killed the command 
with ctrl -c but it was still listed when I did ps -aux. I 
tried to kill the process but it was stat D and I could not 
kill it. I tried doing a forced umount of the usb drive. The 
process was still there.  Did a shutdown but it would not 
finish shutting down and I had to turn off the power. Then 
this week I tried to copy a file that was too large for the 
usb drive this time using pcmanfm instead of the command 
line. Although it told you out of space and had a stop 
button it did not stop the process and again had to do a 
hard reboot to clean up the filesystem.
Is there a better way to clean up a write process that has 
gone bad
              Linda

-- 
Lubuntu-users mailing list
Lubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/lubuntu-users


   -- 
Lubuntu-users mailing list
Lubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/lubuntu-users


Re: How to kill a bad write process in lubuntu

2015-01-28 Thread Israel
On 01/28/2015 10:03 AM, Linda wrote:
> I had a usb drive that went bad so when I tried to do a cp command it
> just hung doing nothing.  I killed the command with ctrl -c but it was
> still listed when I did ps -aux. I tried to kill the process but it
> was stat D and I could not kill it. I tried doing a forced umount of
> the usb drive. The process was still there.  Did a shutdown but it
> would not finish shutting down and I had to turn off the power. Then
> this week I tried to copy a file that was too large for the usb drive
> this time using pcmanfm instead of the command line. Although it told
> you out of space and had a stop button it did not stop the process and
> again had to do a hard reboot to clean up the filesystem.
> Is there a better way to clean up a write process that has gone bad
>   Linda
>
Hi,
You might try using htop as root.  I have not run into this issue
particularly.
You need to install htop
sudo apt-get install htop
Then launch it from the terminal
sudo htop
then you can find the process and SIGKILL it.
It is probably not the safest practice for USB drives, however they are
very cheap these days.

-- 
Regards


-- 
Lubuntu-users mailing list
Lubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/lubuntu-users