Clonezilla

The Free and Open Source Software for Disk Imaging and Cloning
Clonezilla Live Doc
Print all this session
Save disk image : Save 1st disk (sda) as an image on 2nd disk (sdb) (Step by step)
  1. Boot the machine via Clonezilla live
  2. The boot menu of Clonezilla live
  3. Here we choose 800x600 mode, after pressing Enter, you will see Debian Linux booting process
  4. Choose language
  5. Choose keyboard layout
  6. Choose "Start Clonezilla"
  7. Choose "device-image" option
  8. Choose "local_dev" option to assign sdb1 as the image home
  9. Select sdb1 as image repository, then choose "savedisk" option
  10. Input image name and select source disk
  11. Clonezilla is saving disk image (sda) to the partition of 2nd disk (sdb1)
Clonezilla is saving disk image (sda) to the partition of 2nd disk (sdb1)
Clonezilla now is saving disk sda as an image. The job is done by saving:
  • MBR (by dd)
  • Partition table (by sfdisk and parted), CHS of disk.
  • Data on every partition or LV (logical volume) (by partimage, ntfsclone, partclone or dd. It depends on the "-q" option you choose)




Once the image is saved, since we have choosed to check the saved image, Clonezilla will do such a check:



When everything is done, Clonezilla will prompt you if you want to run it again (when something goes wrong or you want to choose different options),
  1. 'Stay in this console (console 1), enter command line prompt'
  2. 'Run command "exit" or "logout"'


Then you can choose to:
  • Poweroff
  • Reboot
  • Enter command line prompt
  • Start over (image repository /home/partimag, if mounted, will be umounted)
  • Start over (keep image repository /home/partimag mounted)
  • Start over (Remount subdir in medium of current repository)


Here we choose Poweroff, then when the shutdown process is done, it will ask you to remove the disk and close the try (if any) then press ENTER if you boot Clonezilla live from CD. If you boot Clonezilla live from USB flash drive, then there is no such prompt.


That's all. We have successfully saved disk image (sda) on 2nd disk (sdb1). The image on the 2nd disk is a directory with name "focal-mbr-20201114" and its contents are:
root@debian:~# ls -lh /home/partimag/
total 28K
drwxr-xr-x 2 root root 4.0K Nov 14 02:36 Docs
drwxr-xr-x 2 root root 4.0K Nov 14 02:36 Photos
drwxr-xr-x 2 root root 4.0K Nov 14 03:05 focal-mbr-20201114
drwx------ 2 root root  16K Nov 14 01:39 lost+found
root@debian:~# ls -lh /home/partimag/focal-mbr-20201114/
total 584M
-rw-r--r-- 1 root root  870 Nov 14 03:05 Info-OS-prober.txt
-rw-r--r-- 1 root root  96K Nov 14 03:05 Info-dmi.txt
-rw-r--r-- 1 root root  236 Nov 14 03:05 Info-img-id.txt
-rw-r--r-- 1 root root  53K Nov 14 03:05 Info-lshw.txt
-rw-r--r-- 1 root root 4.7K Nov 14 03:05 Info-lspci.txt
-rw-r--r-- 1 root root  194 Nov 14 03:05 Info-packages.txt
-rw-r--r-- 1 root root   96 Nov 14 03:05 Info-saved-by-cmd.txt
-rw-r--r-- 1 root root  872 Nov 14 03:05 Info-smart.txt
-rw-r--r-- 1 root root  805 Nov 14 03:03 blkdev.list
-rw-r--r-- 1 root root  451 Nov 14 03:03 blkid.list
-rw-r--r-- 1 root root 6.1K Nov 14 03:05 clonezilla-img
-rw-r--r-- 1 root root  178 Nov 14 03:04 dev-fs.list
-rw-r--r-- 1 root root    4 Nov 14 03:04 disk
-rw-r--r-- 1 root root   10 Nov 14 03:04 parts
-rw-r--r-- 1 root root   36 Nov 14 03:03 sda-chs.sf
-rw-r--r-- 1 root root 1.0M Nov 14 03:03 sda-hidden-data-after-mbr
-rw-r--r-- 1 root root  512 Nov 14 03:03 sda-mbr
-rw-r--r-- 1 root root  385 Nov 14 03:03 sda-pt.parted
-rw-r--r-- 1 root root  350 Nov 14 03:03 sda-pt.parted.compact
-rw-r--r-- 1 root root  266 Nov 14 03:03 sda-pt.sf
-rw------- 1 root root 5.6K Nov 14 03:04 sda1.vfat-ptcl-img.gz.aa
-rw-r--r-- 1 root root  512 Nov 14 03:04 sda2-ebr
-rw------- 1 root root 583M Nov 14 03:04 sda5.ext4-ptcl-img.gz.aa
Print this page
Clonezilla project. All Rights Reserved. Anyone is permitted to copy and distribute verbatim copies of this document under the terms of the GNU FDL Free Documentation License.