Clonezilla installation on a flash drive. Backing Up Partitions with CloneZilla

We leave the layout management settings as default, that is, select the option “ Don't touch the layout»

Select the launch mode – “ Start_Clonezilla»

At the next step, we will be asked to decide on the location of the resource to which we plan to copy the created disk image. Since, based on our task, a shared folder on a computer running Windows will be used for this, we must select the option “ samba_server»

Next, a check will be performed network adapter and if it is successfully determined, various options for configuring network parameters will be offered. Since in my case there is a working DHCP server on the network, the option of receiving settings via DHCP was selected.

Next, we will be asked to enter the name of the computer on which the shared resource is located. Knowing that via DHCP we received the correct settings for both the IP address of the computer itself and the IP addresses of the running DNS servers, we indicate the FQDN name of the server on which we have previously created a shared folder

Then we specify the NetBIOS name of our domain (it will be used together with the username during the process of mounting the shared folder)…

...and the name of the user who has full access rights to the network share...

After this, we will be warned that in order to attempt to mount a shared network folder with the specified settings, we will need to enter the password of the previously specified user...

We enter the password, and if we entered it correctly and for this user the permissions to access the designated shared folder, - we will see the following screen, which will show us (the last line of the table) that the network folder is mounted and the amount of free space in this folder is now known.

At the step of selecting the mode for launching advanced settings, select Beginner, that is, the mode with the default settings...

Then, based on our task, we select the mode - savedisk

Enter the name of the image to be saved. This name is not only the image identifier, but also the name of the directory in which all files from the disk image will be saved (there will be several of them)

We will then be asked to select from a list of found hard drives the disk from which you will need to remove the image

The next question involves choosing a mode for checking the image after creation. If we are not in a hurry, and it is important for us to know that the image created will be valid, we choose the first option...

...wait for this operation to complete...

... after which we get a menu for selecting actions. Select turn off the computer – 0.

Ultimately, we will find a large number of files in the shared folder. As you can see, the disk image files are segmented and packed into 2000 MB files, which significantly reduces the amount of disk space occupied by the image. In my example, with a data size of 12.8 GB on a disk, the total size of the image files was 5.9 GB.

So, the first stage of our operation is completed - the image from the disk is removed and checked. Now it's time to restore this image to another physical HDD. I would like to note one point right away. In practice, I was never able to restore a disk image taken from a 200 Gb HDD using Clonezilla. new disk 160 Gb in size. To perform such a transfer, I first needed to compress the size of the used volumes on the old disk using to a size smaller than 160 Gb. In the example described, the new disk is 10 Gb larger than the one from which the image was taken.

After the new hard drive is installed, boot from the disk again ClonezillaLiveCD and in the same way we get to the point of selecting the operating mode of Clonezilla. Select the image recovery mode to disk - restoredisk

And after we confirm our intentions, it will be launchedEnabled image recovery operation to disk

At the end of the recovery process, remove boot disk and try to boot from the restored system, and if everything went well, then we will succeed :)

As you can see in our example, the C: partition was restored to its original size and now using the built-in Windows tools we can stretch this partition to cover all available disk space

Thus, we completed the task and carried out the procedure of creating a hard disk image and then restoring it to another hard disk through easy and relaxed communication with the step-by-step Clonezilla wizard.

Very often, especially among inexperienced Linux users, as a result of installing new kernels, drivers and other experiments, the system comes to Out of Service, and reviving it without the proper skills can be extremely difficult. Don’t be discouraged, in this case, system recovery from backup copy. The problem is that everyone has heard about backup, but not everyone understands how it works.

In this article, I will look at a simple way to create a system backup and then restore it using the tool Clonezilla Live.

First, download the image iso from the official one.

For example, stable image .

We create bootable USB flash drive in any usual way. You can use Unetbootin or the more advanced MultiSystem LiveUSB. If you installed the system from a flash drive, this process should be familiar to you; we will not dwell on it.

By creating a bootable USB flash drive Clonezilla Live, boot from it, setting the priority of our flash drive in Bios. As a result, the following screen should open in front of us:


Click Enter, select Russian language:


Choose "Don't touch the layout":

Choose "Launch Clonezilla":


Then select device-image, for working with disks and partitions:


Then select local-dev, because we will save to a local device, and not to a remote server:


Next comes the crucial stage - you need to select a hard drive or other storage device, on which (and exactly on which) we will keep a backup copy, in my case it will be a flash drive(different!), because I used to take screenshots virtual machine. In your case, it could be anything - either a flash drive (for the first time, preferably freshly formatted), or separate hard drive partition, usually used as "file dumpsters", or a separate physical hard drive if available, or even an NTFS partition containing your Windows if it is installed as a second system. If you want to use a flash drive, insert it in response to this prompt (in yellow), if not, just press enter:


So, based on the considerations above, we choose a storage device backup copies(or as it is loudly called in Clonezilla, Image repository). In my case, as was said, this is a flash drive:


Note: The words "repository" and "images" should not mislead you. Repository, in this case, it’s just a “storage”, and image- this is just a folder where a copy of your system will be compressed by the archiver.

Choose directory on the device, in which we will save the image, I prefer the root one, so as not to get confused:

Then there will be a short media check, when finished just press Enter:


Next, the selection of settings wizard mode will open, select Beginner(for newbies):


Next, select
or savedisk, to save the entire disk,
or saveparts if we want save partitions
I chose saveparts, since in reality we are most often interested in copying the Linux partition/partitions. Note: Copying the entire disk is usually not necessary unless you want to "storage" a partition on the same disk is selected, it will not be possible at all:


Enter name of the copy being created eg based on date:


Then select our ext4 partition (or partitions), which we will make a copy of (marks in the list preceded by a space, I got the only item on my virtual machine):


Then we indicate whether we will check disk before creating a backup:


And will we check the image after creation:


This is almost all over. Questions will be asked, we will answer ALL of them. y and click Enter:


And now the backup will go:


When checking the image, if it was selected, a similar window pops up again:

All you have to do is wait for the work to complete and restart the computer following the instructions Clonezilla.

Backup files in file manager look something like this:

Restoring from a backup using Clonezilla

Recovery happens the same way general principle- first specify “repository”, Where lies the image, then select the image itself, and finally we indicate target partition on the disk on which we will “deploy” this image.

So, let's download Clonezilla, do everything as in the previous paragraph and get to the disk selection screen where the backup is located:

Very often, especially among inexperienced Linux users, as a result of installing new kernels, drivers and other experiments, the system becomes inoperative, and it can be extremely difficult to revive it without the proper skills. Don’t be discouraged, in this case, system recovery from backup copy. The problem is that everyone has heard about backup, but not everyone understands how it works.

In this article, I will look at a simple way to create a system backup and then restore it using the tool Clonezilla Live.

First, download the image iso from the official one.

For example, stable image .

We create a bootable USB flash drive using any usual method. You can use or more advanced . If you installed the system from a flash drive, this process should be familiar to you; we will not dwell on it.

By creating a bootable USB flash drive Clonezilla Live, boot from it, setting the priority of our flash drive in Bios. As a result, the following screen should open in front of us:


Click Enter, select Russian language:


Choose "Don't touch the layout":

Choose "Launch Clonezilla":


Then select device-image, for working with disks and partitions:


Then select local-dev, because we will save to a local device, and not to a remote server:


Next comes the crucial stage - you need to select a hard drive or other storage device, on which (and exactly on which) we will keep a backup copy, in my case it will be a flash drive(different!) because I used a virtual machine to take screenshots. In your case, it could be anything - either a flash drive (for the first time, preferably), or separate hard drive partition, usually used as "file dumpsters", or a separate physical hard drive if available, or even an NTFS partition containing your Windows if it is installed as a second system. If you want to use a flash drive, insert it in response to this prompt (in yellow), if not, just press enter:


So, based on the considerations above, we select a device for storing backups (or, as it is loudly called in Clonezilla, Image repository). In my case, as was said, this is a flash drive:


Note: The words "repository" and "images" should not mislead you. Repository, in this case, it’s just a “storage”, and image- this is just a folder where a copy of your system will be compressed by the archiver.

Choose directory on the device, in which we will save the image, I prefer the root one, so as not to get confused:

Then there will be a short media check, when finished just press Enter:


Next, the selection of settings wizard mode will open, select Beginner(for newbies):


Next, select
or savedisk, to save the entire disk,
or saveparts if we want save partitions
I chose saveparts, since in reality we are most often interested in copying the Linux partition/partitions. Note: Copying the entire disk is usually not necessary unless you want to "storage" a partition on the same disk is selected, it will not be possible at all:


Enter name of the copy being created eg based on date:


Then select our ext4 partition (or partitions), which we will make a copy of (marks in the list preceded by a space, I got the only item on my virtual machine):


Then we indicate whether we will check disk before creating a backup:


And will we check the image after creation:


This is almost all over. Questions will be asked, we will answer ALL of them. y and click Enter:


And now the backup will go:


When checking the image, if it was selected, a similar window pops up again:

All you have to do is wait for the work to complete and restart the computer following the instructions Clonezilla.

Backup files in the file manager look something like this:

Restoring from a backup using Clonezilla

Restoration follows the same general principle - first we specify the “repository”, Where lies the image, then select the image itself, and finally we indicate target partition on the disk on which we will “deploy” this image.

So, let's download Clonezilla, do everything as in the previous paragraph and get to the disk selection screen where the backup is located:

CloneZilla is one of the best open source system backup tools. source code for Linux. The lack of a graphical interface doesn't make it any worse. On the contrary, there is an intuitive, easy and fast wizard command line, with which you can do everything you need. It is the ideal tool for every system administrator.

With CloneZilla, you can completely copy a hard drive partition to another hard drive and then recover it very easily. Additionally, you can backup clonezilla over the network, using ssh, samba or NFS and store such images in local storage.

In case of any problems, you can very easily restore all data from the backup drive. For example, if the system breaks down, if there was a copy, you can deploy the previously created image and return the system to working order in a matter of minutes.

In this article we will look at how CloneZilla disk cloning is performed, and we will be interested in any block devices. It doesn't matter if you're cloning a partition or an entire hard drive, any block devices will do. The distribution is also unimportant, since everything will be run using the CloneZilla LiveCD image.

First, we need the CloneZilla LiveCD image, which can be downloaded from the official website. The image must be written to a flash drive or disk. I won't go into detail on how to do this.

Secondly, to perform a backup copying hard disk in Linux, we will need another physical hard drive connected to the same system. Moreover, it must be the same volume or larger than the disk that we want to copy. To clone a CloneZilla partition, a free partition with the same size will be enough. This is needed to record the image.

Disk cloning CloneZilla

Once everything is ready, you can start creating the clonezilla image. We will divide all actions into steps to make it easier for you to navigate what needs to be done.

After the LiveCD image is downloaded and burned to a USB flash drive, connect this media to your computer and reboot. During the BIOS splash screen, press the F11, F12, Del, F2 or Shift+F2 button to enter the Bios menu and configure it to boot from your media there.

Step 2: Bootloader Screen

After this, the bootloader will appear on the screen. In it, select the first item to launch Clonezilla Live with standard settings and a screen resolution of 800x600. Press Enter to select.

Step 3: Select a language

When the system boots into RAM, a wizard will appear in which you have to select the system language. To move through items, use the up/down arrows, and to select Enter:

Step 4. Setting up the layout

On this screen you can customize your keyboard layout. Just choose Don't touch keymap and press Enter:

Step 5: Launch CloneZilla

From this screen you can launch the interactive CloneZilla wizard or go to the console. Select Start Clonezilla:

Step 6. Choosing a method of operation

You can clone hard linux disk directly from disk to disk or from disk to image. Choose the option that is more convenient for you, in this article we will select from disk to disk:

Make sure both drives are connected to the computer if you are going to clone a hard drive in Linux.

Step 7. Number of settings

On the next screen, you can choose how much detail you want to customize the process. To get started, select the beginner mode, with default settings. Beginner Mode.

Then on the next tab choose what you need to do. In our case, the first point is to save the disk. Savedisk.

Step 8: Select a copy mode

There are four disk cloning modes available:

  • disk_to_local_disk - local disk to another local disk;
  • disk_to_remote_disk- local disk to remote disk;
  • part_to_local_part- partition to local partition;
  • part_to_remote_part- partition to remote partition.

If we had selected the disk for the image in the sixth step, then we would have had other options. We will copy our local drive to another hard drive connected to this computer. The program will perform a full cloning of the Clonezilla disk, all partitions will be copied, as well as the MBR or GPT area.

Step 9. Source selection

At this step of the wizard, we need to select the source disk that will be used for cloning. Here, in addition to the disk number in the system (sda, sdb), its name and serial number, so you can choose required disk easily.

After selecting the drive, press Enter.

10. Selecting a disc to burn

Next, select the second disk to record to. Be very careful because the program will erase all data on this disk. And if you make a mistake, the result will be completely the opposite of what was planned.

11. File system check

If you are sure that file system is not damaged, you can choose to skip the check Skip checking:

After this you will need to press Enter again.

Step 12. Confirmation

Before starting the backup, the utility will display some information about the selected drives and its operation. You will need to press twice Y:

Step 13: Copy

While the disk is being copied, Clonezilla will display a progress bar so you can estimate how much data and time is left.

Step 14: Finishing

Once the copying is completed, you will be provided with information about the entire process and result. Press Enter and in the menu that appears you can choose what to do next. To turn off, select poweroff.

That's all. In case of failure, you can use this disk instead of the damaged one, or if the experiment is unsuccessful, you can recover all the data from it. In the same way, partition cloning and cloning to a Clonezilla image are performed. Next, we'll look at restoring the Clonezilla image.

Clonezilla Disk Recovery

The initial boot and all steps to prepare the system for operation are performed in the same way as for cloning a clonezilla hard drive in Linux. Everything up to step 7. You just need to select not disk_to_disk, but disk_to_image in order to work with disk images.

Step 1. Select an action.

Step 2: Location

We select where we will take the image from, local_dev, local device:

Step 2. Selecting an image

At this step you have to select the image or disk from which we will restore:

Step 3. Disc to burn

As the saying goes a good system administrator is a lazy system administrator. For any system administrator it is not a problem to install and configure the system on one computer; the problem begins when there are more than 10 such computers. And on each one you need to do the same thing. But as you know laziness is the engine of progress and comes to our aid Clonezilla.

Clonezilla - free software open source, designed for cloning disks and individual hard drive partitions, as well as creating backups and disaster recovery of the system.

So the task is to multiply the already configured operating system with all the necessary software for N number of machines.

The procedure is carried out in two stages:

I. Preparing the image and saving it on the server.

1. Prepare the system for cloning, i.e. We will install the operating system, all the necessary software, perform standard settings to the maximum, so that after cloning, we can quickly customize the system and put the computer into operation (For this purpose, you can use VirtualBox). I will do this using Debian as an example (although we actively create copies of Windows and Linux).

2. Download the image latest version Clonezilla and write it to a disk or flash drive. We restart the computer and boot from our media and select the item Clonezilla live (Default settings, VGA 800×600)

3. Select the system language:

5. Launch the Clonezilla system:

7. Now we need to indicate where we will store our copy. Since my servers are on Linux, I select the item ssh-server Use SSH server. On the server you need to prepare a directory for storing images of system copies.

8. Since we will be transmitting data over the network, the system will ask you to network settings for Clonezilla. Since I have a DHCP server running on my network, I don’t need to set the settings manually:

9. Specify the name or IP of the server on which we will store the copy:


10. Specify the connection port, ours is standard - 22:

11. Specify the username under which we will connect to the server via the ssh protocol (in my case it is school):

12. Specify the exact path to the directory on the server where we will store copies:

13. All that remains is to enter the user password (in our case it is school) to connect to the server via the ssh protocol:

14. If we did everything correctly, a connection to the server will occur and we will need to press Enter:

16. Select the Beginner settings level - the initial level of settings:

17. At the next stage, select the first item - savedisk Save local disk as an image:

18. Specify the name of the saved image:

19. We indicate which disk we will save:

20. Select the level of image verification, usually everything goes through without errors, therefore, to save time, select the first item:

22. And we observe the process of removing the image from our system:

23. After completing the process of removing the image and saving it on the server, reboot the system or turn off the computer:

II. Copying a saved image from the server to a new machine.

When restoring a finished image to a new machine, points 1 to 16 absolutely coincide with point “ I. Preparing the image and saving it on the server«.

1. When reaching the point 16 select an item restoredisk Restore image to local disk:

2. Select the image of the desired system:

3. Select the disk on which the recording will take place. It is advisable to prepare it on a computer and format it.



mob_info