With today's digital devices using larger and larger memory cards, particularly with cameras it's a good idea to put new cards through the wringer before you use them. Better to find out before shooting your kid's birthday party that the card is bad, rather than finding out during, or worse, after.
With Linux, there's a free tool called "F3" that is just the ticket. It writes files to the card to fill it up entirely, then reads those files back to ensure that not only is it the right file, but it was in the same physical block on the card. This will tell you if you've found a counterfeit card or even one that just isn't very reliable.
Before I put a new 32 GB compact flash card in my camera and go shooting, I make sure the card holds up with this tool. It takes some time, but it's simple to use. Just make sure to read the README file in the archive.