Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate: Copying files to SD card not saving

When copying large (or even files of a few KB) to an SD card from Ubuntu 10.10 (Maverick Meerkat), the files appear to be there, but when I access the card from another device, the files are either missing or 0 bytes in size.

I suspect that the problem is that it takes time for the files to copy to the card and I'm taking it out too soon, but there is no progress bar - I'm just doing it from the command line. And it even happens when I cleanly eject the card.

Is there a preferred way to do this so I can know that the files are copied?

share|improve this question

marked as duplicate by Mitch, belacqua, RolandiXor, con-f-use, htorque Aug 21 '12 at 17:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

cp won't return the prompt until it has finished copying, so I don't think that is your issue, unless you are CTRL-C'ing the cp command. I don't have a solution, I just wanted to point that out. – reverendj1 Aug 8 '12 at 21:35
rest assured that i was not killing the copy, then asking why it doesnt work. – glutz Aug 9 '12 at 1:02

Make sure you're using "safely remove device" button before removing the card from the card reader - to speed up things, the OS buffers data in memory, so the copying process may finish early but the actual data may not be yet written to the card.

To do this, you need to click on the Eject icon next to your card's entry in the left pane of the file browser, and wait until the icon disappears, indicating that the card is unmounted. From my experience, this actually may take longer than the original copy operation took because the cards are quite slow.

share|improve this answer

gcp: Command-line Based File Copy Tool for Ubuntu Linux with progress bar

or try the "bar" or the "pv"commands with progress bar

does the same error appear with nautilus?

share|improve this answer

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