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
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.