LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-26-2003, 02:19 PM   #1
Krysith
LQ Newbie
 
Registered: May 2003
Location: Florida, USA
Distribution: Redhat 8.0
Posts: 6

Rep: Reputation: 0
Problem with cp


Hello Linuxers,

I have a RH 8.0 system. I have encountered the following problem on a regular basis:

I have a Sony Microvault USB device which uses a 32 MB vfat file system. I use this to take files home from work occasionally. I am able to mount it without a problem, and some days it works alright. However, sometimes it appears to have corrupted data on it or something, and I have problems. When I use GNOME to try to copy files to my harddrive, sometimes it just hangs. If I try to click cancel, nothing happens. The rest of GNOME keeps working, but the folders involved in the transfer are stuck in the copying process, and can't be unmounted or used for other purposes. Thinking that GNOME might be the problem, I tried cp'ing the files command-line style. It sticks there too, and killall cp doesn't stop it either. The only way to stop the process is to reboot, and sometimes GNOME won't respond and I have to reboot old school.

I don't think that the problem is really corrupted data, because it should just transfer over the bad data. I don't think it is a hardware problem with the Microvault, because it works fine transfering files between Windows computers. Frankly, whatever the problem is, my big dissapointment is that Linux would get stuck in such a simple function as cp! How do I get out of this process? If killall -f cp doesn't work, what will?

I'd appreciate any help offered, either on the copying problem or just how to cancel out of the copying process.

Thanks!
 
Old 06-26-2003, 04:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Kill should work correctly, but it may be a problem with the driver - when driver hangs, killing cp won't help.
 
Old 06-26-2003, 04:08 PM   #3
Krysith
LQ Newbie
 
Registered: May 2003
Location: Florida, USA
Distribution: Redhat 8.0
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Mara,

So it may be the driver. I only have that one available driver, but I will look around... Is there anything one can do to kill a process when the driver hangs?
 
Old 06-26-2003, 04:31 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Rather not. What I'd do in your place is a bug report to authors of the driver (maybe you have something interesting in your logs when it hangs?).
 
Old 06-26-2003, 04:35 PM   #5
chapzilla
Member
 
Registered: May 2003
Posts: 37

Rep: Reputation: 15
Have you tried killing the shell in which the cp was started? If you kill the shell, the cp should die as well.

To kill cp, get the pid by doing ps -ef | grep cp:

[root@localhost root]# ps -ef | grep cp
root 23542 4176 0 12:42 pts/0 00:00:00 cp

Then, do kill -9. I've never heard of kill -9 failing.
[root@localhost root]# kill -9 23542
[root@localhost root]#

To kill the parent process, use the second number:

[root@localhost root]# kill -9 4176


Last edited by chapzilla; 06-26-2003 at 04:44 PM.
 
  


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
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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