billw2 / rpi-clone

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

FATAL: partition mismatch #166

Open humpataa opened 9 months ago

humpataa commented 9 months 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 8 months ago

Solved: SD card was broken.