I have a somewhat weird situation I'm trying to
dd an OS image (something which I dd'ed off a card earlier) onto an SD card.
The card capacity is 8GB and the image was made off an SD card of similar capacity. This is on linux. The image has 2 partitions (/ and /boot). The SD card when inserted is available on
/dev/sdb. I'm trying to dd the image back onto the card using dd. The command looks like
dd if=image of=/dev/sdb bs=512M. However, the command fails after 2GB is transferred saying that the disk is out of capacity.
If however, I do
mkfs.ext4 on /dev/sdb with a size of 7GB and then recreate the partition table using gparted and create an actual
/dev/sdb1, I can successfully dd the image back onto this partition without any problem.
Why is the 2GB error message coming up? And how do I dd the image onto the card?