I have problems transferring binary programs to a micro-controller prototype board when using ubuntu/kubuntu to mount the board via usb. With MacOS and Windows there are no problems. I have found the writing from Ubuntu definitely changes the written file. I suspect that the write caching is the problem. How can I disable it, or what else might be the problem.
Read this first: http://groups.google.com/group/linux.kernel/msg/8d1591196c0ae15e?pli=1
You can try using hdparm to set the write caching feature to off at runtime. (You will probably need to run this after every boot or every time you remove and reinsert the device)
Please ensure you know the correct device name (
You can find out the device name by running:
You can also edit
kudos to @NightwishFan for the hdparm switch to set the drive's write-caching feature.
Note that the