Skip to main content
Copy edited (e.g. ref. <https://www.youtube.com/watch?v=1Dax90QyXgI&t=17m54s> ). Fixed the question formation - missing auxiliary (or helping) verb - see e.g. <https://www.youtube.com/watch?v=t4yWEt0OSpg&t=1m49s> (QUASM) - alternatively, drop the question mark (title only).
Source Link

How tocan I copy arbitrary part of binary file with reasonable speed?

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.

How to copy arbitrary part of binary file with reasonable speed?

How to copy arbitrary part of binary file with reasonable speed?

Apparently, dd with bs=1 is very slow, while setting bs to other value makes 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 incorrect tail

and this command

dd if="$img" of=tail.bin bs=1 skip=2147483648 status=progress

is very slow.

How can I copy arbitrary part of binary file with reasonable speed?

How can I copy arbitrary part of a binary file with reasonable speed?

Apparently, dd with bs=1 is very slow, while setting bs to another 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.

And this command,

dd if="$img" of=tail.bin bs=1 skip=2147483648 status=progress

is very slow.

Became Hot Network Question
Source Link
Dims
  • 3.5k
  • 15
  • 63
  • 121

How to copy arbitrary part of binary file with reasonable speed?

How to copy arbitrary part of binary file with reasonable speed?

Apparently, dd with bs=1 is very slow, while setting bs to other value makes 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 incorrect tail

and this command

dd if="$img" of=tail.bin bs=1 skip=2147483648 status=progress

is very slow.