Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On Centos 6, I am trying to copy some files from a Fat32 stick.

I do a "fdisk -l" then take that name and mount it with this command:

mount /dev/sdb1 /mnt/usb

I see the files there (I didnt count them tough), then I try to copy them from stick to HDD with this command:

cp -r 3 /_folder

Where "3" was the one and only directory on the stick, after it runs for a while I get these errors:

cp: reading `3/DEMO.AVI': Input/output error
cp: cannot stat `3/sample[1].flv': No such file or directory
cp: reading `3/sample2[1].flv': Input/output error
...
...
cp: cannot stat `3/file.mpeg': No such file or directory
cp: cannot stat `3/DivX.mpg': No such file or directory
cp: cannot stat `3/ddd.avi': No such file or directory

Files were copied partially on the destination. Stick is not there anymore, is like it unmounted itself. The stick is 8GB and I filled it with around 7.2GB. File system is Fat32, I copied these files from Windows XP, I tried formatting the drive, same problem. And before this I had similar folders "1" and "2" copied OK. Maybe some file names can cause this?

share|improve this question
    
Have you tried another stick ? It might be a faulty USB drive. –  Lucas Kauffman Jan 10 '12 at 17:03
    
You may want to examine the output of dmesg at the time of failure. If you see your USB disk in dmesg being labeled as a "dead device", you may need a kernel upgrade, or the disk is just bunk. –  Tim Jan 10 '12 at 18:00
    
Thanks for the tips, I was able to copy after deleting some data. –  adrianTNT Jan 10 '12 at 19:33
add comment

1 Answer 1

The copy completed properly after I deleted some data. I was eider out of space or some disk errors prevented me to write data. Webmin panel said I had some GB available and that is why I didn't thought of this before.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.