I have a flash disk possibly with bas sectors. When I try to copy data to it, it works fine until somewhere around 460Mb, and then the files start getting corrupted. The corruption happens only when I unmount and remove the drive, before unmounting, the files are fine. The linux program 'badblocks' doesn't find any bad blocks. I tried formatting it, but that didn't have any effect. I used Fat 16 and 32, and both had the same problem. Is there a way to test for bad blocks after unmounting and how do I fix them?
I guess you have synchronization problem... Before unmount do the synchronization by
If this solution will not resolve your problem, you can try hard format your USB stick by 'dd' command
then create partition and do a format.
Either those solutions will not work say bye to your stick..