10 Jun
2013
10 Jun
'13
8:22 a.m.
Am 10.06.2013 05:18, schrieb Anatol Pomozov:
"sync" is not a workaround, it is a right solution.
You are wrong.
Under the hood copying in linux works following way. Every time you read something from disk the file information will stay cached in memory region called "buffer cache".
That is true - on a mounted file system. Writing directly to a block device (like /dev/sdb) does not use the buffer cache in any way.
3) Call "dd" operation with "conv=fsync" flag, this tells that dd should not return until all data is written to the device.
Again, fsync only affects files on a mounted file system, not raw block devices.