This tutorial is going to show you how to use Clonezilla Live to back up your hard drive. Clonezilla is a free open-source and reliable tool for bare metal backup and recovery of disk drives.
Clonezilla Features
- You can create an image of the current disk or partition (disk imaging), and restore the image to disk at any time.
- Allows you to clone directly between two disks (disk cloning), without creating a disk image.
- Image can be encrypted with ecryptfs, and saved to or read from local disk, SSH server, Samba server, NFS server, WebDAV server or AWS S3 storage.
- Supports lots of file systems like ext4, XFS, Btrfs, F2FS, FAT32, NTFS, HFS , UFS.
- Supports MBR and GPT partition table.
- Supports BIOS and UEFI firmware.
- Clonezilla Server Edition allows you to do massive system deployment over the network.
- Unattended mode: Almost all steps can be done via commands and options.
What You Need
- A thumb drive to create a Clonezilla live USB
- A hard drive that you want to make a backup of
Clonezilla is included in the repository of many Linux distributions, such as Debian, Ubuntu, Arch Linux, so why do we need to create a Clonezilla live USB? Can’t we just install Clonezilla on the operating system? This is because Clonezilla currently doesn’t support online imaging/cloning. The partition to be imaged or cloned has to be unmounted.
If you have a Debian, Ubuntu, or Arch Linux live USB, you can install Clonezilla on your current live USB, then launch Clonezilla from the live USB (sudo clonezilla
). But for the purpose of this tutorial, I will show you how to create and use Clonezilla live USB.
Note: I use a hard drive in this tutorial, but you can use any storage media (HDD, SSD, SD card, etc).
Step 1: Download Clonezilla Live ISO Image
There are three types of Clonezilla:
- Clonezilla live: for single disk imaging and cloning.
- Clonezilla lite server: for massive deployment.
- Clonezilla SE (server edition): for massive deployment. A DRBL server is required.
If you just want to back up a single disk, choose Clonezilla live. Go to the Clonezilla live download page. There are two stable versions of Clonezilla live:
- stable: based on Debian with no proprietary software. It may not work with the latest hardware.
- alternative stable: based on Ubuntu with proprietary software for better hardware support.
I personally use the alternative stable version.
Then select the CPU architecture, file type and repository. You should choose ISO as the file type. If you use the ZIP file type, you might see the “missing partition table” error when creating Clonezilla live USB.
Step 2: Create a Clonezilla live USB
Note: If there are files in your thumb drive, I recommend backing up your files before creating the live USB.
Linux
If you use Linux on your computer, then you can use the dd
command to create Clonezilla live USB. First, insert your thumb drive to your computer. Then open up a terminal window and run the following command to get the device name of your thumb drive.
parted -l
As you can see, the device name of my thumb drive is /dev/sdb
. Next, run the following command to create Clonezilla live USB.
sudo dd if=/path/to/clonezilla-iso-file of=/dev/sdX bs=4M status=progress
To make sure every bit of information is written to your thumb drive, run the sync
command.
sync
Now you can boot your computer from the USB thumb drive.
Windows
If you use Windows on your computer, then you can use the Etcher tool to create Clonezilla live USB. It’s very simple to use. Install the software on your computer, then launch Etcher. It automatically selects your USB thumb drive. Select the Clonezilla ISO file and click Flash button.
Then wait for it to finish flashing your thumb drive.
Once it’s done, boot your computer from the USB thumb drive.
Step 3: How to Use Clonezilla Live to Back Up Your Hard Drive
Once your computer is booted up from the USB thumb drive, you will be greeted by the Clonezilla Live boot menu. Choose the first item to boot Clonezilla live.
Once it starts, you have the option to choose a language.
And you can change the keyboard layout. (I use the default US keyboard.)
Then, it asks you if you want to use the Clonezilla wizard (which is easy for beginners) or use the command-line interface). Choose the first option to start the Clonezilla wizard.
Next, select a mode. This tutorial selects the first mode.
- device-image: create an image of the current disk or partition
- device-device: clone directly between two disks, without creating a disk image.
After that, choose where the Cloned image will be saved. You have many options: local device, SSH server, Samba server, etc. This tutorial selects a local device. If you choose one of the other options, please follow the instructions to set up the network connection.
If you choose local device and want to store the image on an external USB hard drive, then insert the USB hard drive to your computer now and press Enter.
Then Clonezilla will scan your storage devices. As you can see, it detected my 31 GB USB thumb drive. Press Ctrl C
to exit the scanning window.
On the next screen, choose your USB drive.
Then you can choose if you want to check and repair the file system on your USB drive. I choose no-fsck because my USB drive is totally fine.
Next, choose a directory to store the Clonezilla image. By default, it’s stored on the root directory of the storage device. Press Tab
key and choose Done
.
Then, it will show you how much free space your storage medium has. Press Enter
to continue.
Next, choose between beginner and expert mode. If you are a Clonezilla beginner, then choose the beginner mode.
In the next screen, you can choose to save an entire disk as an image or save a specific partition as an image. This tutorial chooses the first one (savedisk
).
Then give the image a name.
And choose which disk you want to make a backup of.
Next, choose which compression algorithm you want to use to compress the image.
After that, choose if you want to check the disk file system before backing it up.
And choose if you want to check the image is restorable.
In the next screen, you have the option to encrypt the image, which is useful if you save the image on a network location. Since I will store the image on my local USB drive, I choose not to encrypt the image.
And choose which action to take when everything is finished.
Now Clonezilla kindly gives you the equivalent command-line, so you can enter this one-liner next time you make a backup without going through all the questions again. Press Enter to continue.
Press y
to start saving your disk to an image.
Once Clonezilla finishes its job, you can power off your computer. If the process failed, you can check the /var/log/partclone.log
file.
How to Restore a Clonezilla Image to Disk
The restoration process is very similar to creating a backup. I won’t explain every step but show a few key steps.
After booting up your computer from the Clonezilla live USB, choose your language, keyboard layout and start the Clonezilla wizard, choose the device-image
mode to restore the image to disk.
Then select where the image will be read from. If the image is on a USB hard drive, you need to select the USB hard drive and mount it as /home/partimag
. Note that when you select a directory for the image repository, you should not choose the directory tagged with CZ_IMG.
After that, you should be able to choose the restoredisk mode to restore an image to local disk.
And follow the rest of the instructions.
Wrapping Up
I hope this tutorial helped you use Clonezilla live to back up your disk drive. As always, if you found this post useful, then subscribe to our free newsletter to get more tips and tricks. Take care 🙂
Rate this tutorial
[Total: 0 Average: 0]