dd skip=122880 count=3788799 status=progress if=2013-02-09-wheezy-raspbian.img of=secondpartition.img
dd skip=122880 count=3788799 status=progress if=2013-02-09-wheezy-raspbian.img of=secondpartition.img
as it shows in the output of fdisk, fdisk is using 512 bytes as the default block size:
dd if=/dev/urandom of=test count=1
dd if=/dev/urandom of=test count=1
The file size should be 512 bytes.
soSo all you have to do to create an image of a partition or group if partitions
is is get the number of sectors for the start of the partition or first partition
from from the output of fdisk and use it as the value of the dd parameter "skip" and then the number of sectors for the End of the partition or last partition and set it as the value for the dd parameter "count".