Usage
- To clone a hard disk partition from a dual-boot system
Requirements
-
A USB flash drive
It will be used to boot Clonezilla.
-
A hard disk drive
It will be used to store the copy of the partition.
Warning
Make sure the total space of this hard disk drive is larger than the size of the partition you want to copy.
For example, if you want to copy a 512GB partition with 100GB used space, the hard disk drive should have at least 512GB space. If the hard disk drive has only 256GB space, although it is enough to store the used space, the copy process will still fail.
Steps
Prepare the Disks
-
Download the Clonezilla iso file from the official website.
-
Burn the iso file to the USB flash drive using Rufus or Raspberry imager.
-
Divide the hard disk drive into two partitions using GParted or Gnome-disk-utility.
The bigger partition will be used to store the copy of the target partition.
The smaller partition (0.5-1GB is enough) will be used to store the copy of EFI system.
Copy the target partition
-
Boot the computer from the USB flash drive.
-
Choose Clonezilla live (Default settings, VGA 800x600).
-
Choose language
-
Keep default keyboard layout
-
Start Clonezilla
-
Choose device-device work directly from a disk or partition to a disk or partition
-
Choose Beginner mode
-
Choose part_to_local_part
-
Choose the source partition
- In this case,
sda5
store the Ubuntu partition.
- Choose the destination partition
- In this case,
sdb2
store the copy of the Ubuntu partition.
-
Choose skip checking the source partition
-
Choose reboot
-
Select yes to start the copy process
Copy the EFI system partition
-
Boot the computer from the USB flash drive.
-
Choose Clonezilla live (Default settings, VGA 800x600).
-
Choose language
-
Keep default keyboard layout
-
Start Clonezilla
-
Choose device-device work directly from a disk or partition to a disk or partition
-
Choose Beginner mode
-
Choose part_to_local_part
-
Choose the source partition
- In this case,
sda1
store the EFI system partition.
- Choose the destination partition
- In this case,
sdb1
store the copy of the EFI system partition.
-
Skip checking the source partition
-
Choose reboot
-
Select yes to start the copy process
Notes
Info
There might be an another way to copy the both EFI system and Ubuntu at the same time (choose device-image instead of device-device work directly). However, I have failed serval times, I will update this note if I find a way to do it.