5 ms·
You missed a nuance in the GP's problem set: > dd if=random-linux-image.img of=/dev/mmcblk0 bs=512 count=62499 seek=1 skip=1 is not the same as: > sudo dd if
by merlincorey 4y ago
You missed a nuance in the GP's problem set:
> dd if=random-linux-image.img of=/dev/mmcblk0 bs=512 count=62499 seek=1 skip=1
is not the same as:
> sudo dd if=/dev/sda of=/tmp/boot.1 bs=512 count=1
You are missing the "seek" and "skip" arguments which the GP challenges you to make `head` do.
- fbn79 4y agoYou right. To skip you can pipe tail. sudo head -c 1024 /dev/sda | tail -zc 512 > /tmp/boot.2 Read 1024, keep last 512
- jstimpfle 4y agoWhat if the position is not at 512 but at 512G?