billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.56k stars 334 forks source link

FATAL: partition mismatch #166

Open humpataa opened 1 year ago

humpataa commented 1 year ago

Hi, thanks for your work. I have installed it to my Pi4B. I would like to have a 1:1 copy to a second SD of the system installed on my SD. Have added another card via USB stick, same size, but may have some old stuff on it. When I run the script I get this message:

sudo rpi-clone sda

** FATAL **            : Initialize needed - partition number mismatch: 2 -> 0
                       : But destination is too small to clone 2 partitions.
                       : Minimum destination size required is 263.5M.

I have tried a few options without sucsess. How can I force rpi-clone to just ignore all the old stuff, remove it, create new partitions and make a full bootable copy? I believe it needs to be "initialised" – but with what option?! Any help is appreciated.

humpataa commented 1 year ago

Solved: SD card was broken.