Clonezilla partition clone and backup tool
Jurassic Park
Clonezilla Live backs up and clones complete partitions or hard disks. The popular live system comes with an easy-to-use interface.
Listening to the heads on your hard disk clicking when the disk fails is bad enough as it is, but worse things are still to come. Although buying and installing a replacement disk is unlikely to faze most users, this is just the start of a time-consuming installation marathon that can easily take a day or two to restore the whole system with your personal preferences and favorite wallpaper. Having a backup copy of the whole disk means that you can carry on with your work after about an hour, just as if nothing had gone wrong.
Preservatives
Retailers offer a variety of programs that will create a full backup with the press of a button, but these programs cost money. The open source Clonezilla [1] is an alternative to proprietary tools such as True Image, Drive Image, and Norton Ghost. Clonezilla will read a partition or your whole disk bit by bit and store the results in a (fairly large) file known as an image or write directly to a second medium. This allows you to clone a disk fairly quickly, which is handy if you are moving to a new computer and want to take your old system with you.
Clonezilla comes in two flavors: Clonezilla Live, which boots from a CD; or a bootable USB stick, which backs up a partition on another medium attached to your computer and is your best choice for everyday work. If needed, Clonezilla Live will back images up to the network, for example an NFS, SSH, or Samba server. This is really useful on home or school networks where you could store drive images on a small NAS. Clonezilla Server Edition can even clone the disks in multiple computers simultaneously over a network, but it requires a special environment to do so (see the "Clonezilla SE" box).
Clonezilla SE
Clonezilla Server Edition (Clonezilla SE) is part of the DRBL server. DRBL stands for Diskless Remote Boot in Linux, which is a fair description of the way it works. The clients attached to it do not boot from their internal hard disks, but via the network. The DRBL server then feeds the Linux system required by the clients for their daily work to the attached computers. Clonezilla SE uses the same approach to access the disks in these computers and can then back them up simultaneously over the wire.
Drive Fodder
To back up your own disk, go to the Clonezilla project homepage and pick up the latest stable version from the Download area. If you prefer to boot Clonezilla Live from a CD, grab the ISO file and then burn a CD with the image. If you prefer the USB stick approach, download the ZIP archive and then make sure the USB stick has a FAT32-formatted partition. Next, mount the partition, unpack the Clonezilla ZIP archive on it, pop up a terminal window and change to the utils/linux subdirectory, and then give the bash makeboot.sh /dev/sdb1 command to make the stick bootable (replace sbd1 with the device name for the partition on the stick).
There is a good reason for not being able to run Clonezilla like any other program on the active Linux system. To be able to clone a partition without any risk, you must dismount the partition. If this is not the case, Linux might write to the disk while you are backing up your data, and thus ruin the image. Unmounting the system partition is not easy; thus, the only alternative is to boot Clonezilla from an external medium. If you succeed in doing so, you will see the screen shown in Figure 1.
Clonezilla Live boots automatically, unless you press a key. If you experience graphics problems later on, you may need to select a lower resolution, or even Safe graphic settings. In case of other hardware problems, you can still try Failsafe mode. The To RAM item copies the whole Clonezilla Live system into main memory. You can then remove the CD or unplug the USB stick. This is really useful if you only have a single free USB port, as is the case with some netbooks. Use the arrow keys to select an option, and press Enter to execute the selected action.
Wizards
Whatever you select, you will be running a Debian Live System that initially fires a number of text messages at you. The next step is to select a language; English is the default.
You can now launch Clonezilla or switch to the command line. When you launch Clonezilla, it will prompt you to choose whether to drop the partition into an image file (device-image) or write directly to another, physical hard disk (that is, clone the partition – device-device). If you are backing up an existing Linux system, the image file is easier to archive and the first of these options is your best bet (Figure 3).
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.
-
AlmaLinux OS Kitten 10 Gives Power Users a Sneak Preview
If you're looking to kick the tires of AlmaLinux's upstream version, the developers have a purrfect solution.
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.