Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using Ubuntu 11.10 64bit. Since a few days, when I try to copy not so large (about 700MB) files to my thumb drive it copies all the data except for last few MBs very fast and keep holding when it has about 3MBs to go. Sometimes in a few minutes the coping get finished but sometimes it won't go any further.

Please help!!!

share|improve this question
add comment

1 Answer

The difference in speed is normally caused by buffering from your OS, i.e. your OS reads all the files, as fast as it can, from disk into memory. From memory it will then proceed to write them to the thumb drive. As your harddisk is normally faster then your thumbdrive your OS will buffer the files it has not yet written internally. For your file browser it will look like the files have already been copied, but in reality they haven't yet left your computer, they are still in the buffer waiting. When the internal buffer is full or you unmount the drive, the OS will write all the buffered data to the drive, thus the last files written or the unmount process can take quite a while longer then the initial files.

One can change that behavior by specifying the sync flag when mounting the drive, this will stop the OS from not using any internal caching for the drive, but that will lead to more equally distributed copying speed, but it will also lead to overall slower speed, thus I wouldn't recommend it.

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.