I have an Ubuntu 20.04.2 image on a Raspberry Pi that I've been trying to back up onto an SD card for over a week now. I can successfully copy the image onto my desktop with the following use of dd
:
sudo dd if=/dev/sda of=UbuntuRPiImage.img bs=4M status=progress
This image is valid and I am able to mount both the system-boot
and writable
partitions just fine with mount
. However, when I write this image to the SD card, the writable
partition cannot be mounted. Here is how I'm writing to the SD card using the backup image I have on my desktop:
sudo dd if=UbuntuRPiImage.img of=/dev/sda bs=4M status=progress
I get the following error when putting in the SD card with the image:
mount: /dev/sda2: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
This also happens even when I write /dev/zero to the SD card first to completely clear it before copying the OS image to it. Important to note that the SD card itself is in good condition and I don't experience problems with it. What's going on with the writable
partition that's stopping it from being mounted when put on the SD card?
The brand and model of SD cards used for both the existing Pi image and the backup image are identical.