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

Is it possible de restore a clone ? #158

Open mich0111 opened 10 months ago

mich0111 commented 10 months ago

Hi, I cloned the SSD from an RPI3B+ to an SD card with rpi-clone. My question is, is it possible to restore this SD card to a new SSD if I first replace the damaged SSD with a new one ? If yes, how to do it ? Thank you in advance for your help. Kind regards

viniciuspaes commented 10 months ago

The rpi-clone Example Runs answer your question:

If you boot from a SD and want to clone to USB/SSD:

Indentify the target disk with:

sudo fdisk -l

For example, it will be sda (/dev/sda). Then: rpi-clone sda

Now, remove de SD card and boot from SSD.

If you booting from the USB/SSD and want to clone to an SD Card:

Indentify the target disk with:

sudo fdisk -l

For example, it will be mmcblk0. Then: rpi-clone mmcblk0

mich0111 commented 10 months ago

Thanks for your help. 👍