Hi
I've tried multiple times to clone my Pi's SD card.
I did dd if=/dev/rdisk2 of=pi.img bs=1m using OSX. I get an image. But after writing it to another 16gb card, it gives a kernel panic: VFS: Unable to mount root fs on unknown-block(179,2)
I read about slightly smaller SD cards giving this kind of issues. I also trying writing the image using Ubuntu, but that failed too.
Now I thought I'm going to make the img file smaller, so I mounted it (is that the correct term?) as a loop device:
sudo losetup -f
sudo losetup /dev/loop0 pi.img
sudo partprobe /dev/loop0
sudo gparted /dev/loop0
see the attached screenshot: it only shows the boot partition, the rest is unallocated space! I would at least expect that dd would correctly build the .img file.
Anyone an idea what is going wrong here? What am I doing wrong? Is there a different way to clone the sd card?