How tocan I copy arbitrary part of a binary file with reasonable speed?
Apparently, dd with bs=1 is very slow, while setting bs to otheranother value makes it impossible to copy arbitrary parts.
Is it wrong? Is it possible to do with dd? If not, then what is the tool?
For example, this command,
dd if="$img" of=tail.bin bs=2147483648 skip=1 status=progress
copies an incorrect tail.
andAnd this command,
dd if="$img" of=tail.bin bs=1 skip=2147483648 status=progress
is very slow.