On 19/05/2021 08.55, Josef Moellers wrote:
On 18.05.21 19:54, Carlos E. R. wrote:
On 18/05/2021 17.55, L A Walsh wrote:
Um...less of a negative effect? Well, since magnetic media isn't known to be very degraded by multiple r/w ops, it would probably generate less wear. But if you use 'dd' to copy a boot-disk-img which you want to use on a flash-drive, 'dd' could be less harmful, than formatting the flash drive, then copying all the files from some mounted source to the target media.
Provided the transfer size is bigger than the actual chunk size of the flash media. I never remember what it is? Suppose it is 16K. If you use the default size used by dd which is 512, it would write to the same chunk 16K/512 times.
Why should it? There is *one* write() request of 16K which will be turned into one WRITE command of 16K/512 blocks. So each block is written exactly once.
If you do: dd if=/dev/zero of=/dev/sdXY count=128 it seems to write in 512 bytes chunks and is quite slower than: dd if=/dev/zero of=/dev/sdXY bs=16K count=4 -- Cheers / Saludos, Carlos E. R. (from oS Leap 15.1 x86_64 (Minas Tirith))