I found a few examples that claimed this but I could not manage to get dd to convert a file with a given block size to double that block size.
dd if=disk256bytesectors.img of=disk512bytesectors.img cbs=256 ibs=512 obs=512 conv=sync
My disk img is 10 megabytes in size I was expecting a new image of 20 megabytes, but no.
So what I need to happen is each 256 byte block get converted to a 512 byte block with the second half of each 512 byte block being null, zero, space or anything.
The dd manual state conv=sync
pads any input block shorter than ibs to that size with null bytes before conversion and output.
But the input block will never be shorter than itself?!?! So what does that mean?
Anyway how can I do this?