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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-26-2003, 03:19 PM
|
#1
|
LQ Newbie
Registered: May 2003
Location: Florida, USA
Distribution: Redhat 8.0
Posts: 6
Rep:
|
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!
|
|
|
06-26-2003, 05:05 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Kill should work correctly, but it may be a problem with the driver - when driver hangs, killing cp won't help.
|
|
|
06-26-2003, 05:08 PM
|
#3
|
LQ Newbie
Registered: May 2003
Location: Florida, USA
Distribution: Redhat 8.0
Posts: 6
Original Poster
Rep:
|
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?
|
|
|
06-26-2003, 05:31 PM
|
#4
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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?).
|
|
|
06-26-2003, 05:35 PM
|
#5
|
Member
Registered: May 2003
Posts: 37
Rep:
|
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 05:44 PM.
|
|
|
All times are GMT -5. The time now is 02:17 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|