A corrupted file most often occurs when a file server or USB stick is disconnected before the operating system has finished writing the file. The only way to be sure that the OS has finished is to unmount or eject the server or stick using OS comman...