How to clone a linux OS

Hi everyone, i want to share with you my experience on how to clone a linux system. Everyone will have, to for one reason or another, clone their HD on a new HD or an SSD. No problem with Clonezilla, although for beginners it is not that obvious, and if the target disk is larger than the source disk.
But what if the destination disk is smaller than the source disk? And precisely the case of ssd memories.
Let’s see how to do it in detail …

1.Backup your data … important … then, using gparted we resize the source disk to a size slightly less than the maximum capacity of the destination disk. This operation must be done with a boot from usb with gpated live.

  1. Reboot the system to make sure that the resizing is actually without boot problems.

  2. Connect a new disk or the new ssd to the system.

  3. Boot from gparted live with usb again…

  4. Now gparted can see both disks, source and destination. the target disk does not have to be
    partitioned, it will be later.

  5. Go to the source disk and select in the colored bar where all the existing partitions on the disk appear, on the first partition you encounter. Click on it and from the drop-down menu choose ‘’ copy ‘’.

  6. Now change your location and choose the unpartitioned destination disk. Click on the bar indicating the partition and from the drop-down menu choose `` copy ‘’.

  7. Repeat the operations described in points 6 and 7 for all the partitions on the source disk.

  8. At the end, replace the cloned disk with the original one and the game is done.

This experiment was performed on an ubuntu 20.04 system by cloning an hd on an ssd.

1 Like