[arch-general] Super weird dd problem.

Thomas Bächler thomas at archlinux.org
Mon Jun 10 04:22:41 EDT 2013


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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20130610/e5de6a25/attachment.asc>


More information about the arch-general mailing list