

However, it will have the effect that reading and writing data will occur from the physical disk /dev/sda: We’ll treat this file as if it were a regular virtual disk to be inserted into a VirtualBox machine. vmdk extension, which uses VMware’s open-source format. To make the group inclusion effective, we must log out and log in again (being careful not to reboot and lose all the changes made within the live distribution).

Let’s also make sure that the current user is part of the vboxusers group if we want to be able to access USB ports: $ sudo gpasswd -a $USER disk To use /dev/sda as a raw disk in VirtualBox, we must add the current user to the disk group to avoid permission issues. In fact, in case a swap partition exists, the live system could use it without our knowledge: $ sudo swapoff -all Secondly, let’s make sure swap is disabled. First, let’s check we haven’t mounted any partitions of the physical disk. Let’s stop if we haven’t performed a full backup with Clonezilla! We must be cautious because improper usage of raw disk access can lead to total data loss on the physical disk. In the end, the AsusRog-12-img folder contains 24 files, totaling 142.6 GiB.Ĭlonezilla’s complete log is in the text file clonezilla-img (it’s a confusing filename because it might suggest a raw image file, but it’s not). However, dd will make the backup slower and heavier, but there won’t be additional inconveniences: But, if a file system is encrypted, corrupted, or not supported, it does a sector-by-sector copy with dd. In most cases, Clonezilla does a file-by-file copy, skipping unused sectors. Let’s note that /home/partimag mounts the target partition, in this case, /dev/sdb1. The following step is to save the hard disk/partition(s) on this machine as an image: On more than one screen, it must show that we’re using savedisk mode: To facilitate the later conversion from Clonezilla to VirtualBox, let’s save the entire disk /dev/sda (and not a single partition).

In this case, our target is to save the backup of /dev/sda in the AsusRog-12-img folder, placed in the root of /dev/sdb1. We’ll be asked to set all the parameters before performing the actual backup. As seen in our tutorial, we can run Clonezilla live from its official live distribution, or another live system.
