I would like to copy an image to a USB thumb drive. As I would like to get "real" speeds, and don't want to wait ages for the device to sync after copying the image, I would like to know which options to use for that.
|
Reading through the source code shows that you should also be asking about the |
|||
|
|
The fsync option will flush the data at the end of the copy. The dsync option will flush the data after every block. The direct option will have similar results as dsync, only without polluting the filesystem cache with the data. This is good for caching the rest of the system, and saves some cpu overhead. Either dsync or direct will give lower throughput, but that can be mostly offset by using a large block size, such as 1MB or more. |
|||
|
|