PDA

View Full Version : error copying a file


laytonhayes
Apr 25, 2004, 10:18 PM
I am trying to move a file from one drive to another and it keeps giving me a cannot copy error. Is there a program that can fix a corruption in a file? It starts to pause 3/4 of the way through, and then gives me the error. Thanks.

tomf87
Apr 26, 2004, 06:57 AM
I am trying to move a file from one drive to another and it keeps giving me a cannot copy error. Is there a program that can fix a corruption in a file? It starts to pause 3/4 of the way through, and then gives me the error. Thanks.

Well, it depends on the error. Does it say something else is using the file or just cannot copy?

Either way, I would try to copy it as root via terminal and see what happens. Let's say the file is on your desktop, and you want to copy it to the second drive labeled HD2. Open Terminal (under Applications/Utilities) and type:

sudo cp ~/Desktop/File /Volumes/HD2

It will prompt for a password, and simply enter your password there. Test to see if it copied correctly. You can use md5sum for this via Terminal:

md5sum ~/Desktop/File /Volumes/HD2/File

This utility calculates an MD5 hash for a given file. Since the files should be the same, the two hash lines should match exactly. If not, the file did not copy correctly. If they matched, you can remove the original file:

sudo rm ~/Desktop/File

laytonhayes
Apr 26, 2004, 08:22 AM
Thanks for the help. I tried using the terminal to copy but it still gives me an Input/Output error around 3/4 of the way. Any other suggestions?

tomf87
Apr 26, 2004, 09:08 AM
Hmm.. Have you ran fsck yet? Boot into single user mode (hold Command+S after boot chime) then run 'fsck -y'

That will fix all errors it finds by answering yes to all questions. If you want to see if it has any errors, run 'fsck -n' and it will answer no to all questions during the run.

laytonhayes
Apr 26, 2004, 01:24 PM
checked the drive using fsck, there were no errors on the drive. mmmmmmmm--thanks for the help again. not sure what the problem is.

tomf87
Apr 26, 2004, 01:35 PM
Are both volumes HFS+? If the files is large, maybe the destination filesystem cannot handle a file that large. I believe FAT32 could only handle up to a 2GB file.

laytonhayes
Apr 26, 2004, 05:44 PM
The drives are both Journaled HFS+. I get the same problem when trying to copy to the same drive, even using cut and paste. The file is around 375mb so size is not an issue. The file is a video file, it plays fine, just does not copy.

tomf87
Apr 26, 2004, 08:17 PM
I'm stumped. The only thing I can think of is a bad sector on the hard disk, and that may make the file unrecoverable.

I'm sorry I don't have any more ideas.

laytonhayes
Apr 26, 2004, 10:19 PM
I have pretty much given up on moving the file. Thanks for all of your help.

tomf87
Apr 26, 2004, 10:32 PM
Just thought of something... Can you open the file and save it elsewhere? Like if it were a QT movie, you could hit Save As and save it to the other drive.

laytonhayes
May 2, 2004, 09:43 AM
that works! Thanks for all of the help.