top | item 36002593

(no title)

deaddabe | 2 years ago

I feel that dd is never the correct tool to write to SD cards. At least cp can figure out the block size itself. Or the more elaborated bmaptool can even skip empty blocks which are often found in disk images.

discuss

order

loeg|2 years ago

> Or the more elaborated bmaptool can even skip empty blocks which are often found in disk images.

  dd conv=sparse

vbezhenar|2 years ago

> At least cp can figure out the block size itself.

Why does it matter? Use `bs=$((4 * 1024 * 1024))`. It'll work perfectly for any imaginable block size.

My issue with dd is that it's possible to write corrupted data with some weird flags which I did once. Something with conv=sync I believe which does unexpected things. But if you're not trying to be too smart, dd works fine.