How to Clone an Encrypted Disk Image with Clonezilla
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Clonezilla is an Open Source disk/partition imaging tool based mainly on partclone utility. The Clonezilla image is a tool that can be very useful in case of full system disk backups or in restoring damaged partitions. Clonezilla runs on top a driven command line wizard and can clone the data blocks of a hard drive directly from one disk to other disk or create images for disks/partitions to a locally attached hard disk or a mounted network resource via SMB, NFS or SSH protocols. All cloned images can be encrypted and centralized on an external drive (USB device, HDD) or in a network location specifically designed for this purpose, such as a Network Attached Storage. Using this method you can easily save your day in case of a critical physical drive failure of a server or a desktop. You just plug-in the brand new hard disk, boot into Clonezilla and start restoring the image from the saved location.
In this guide, we’ll discuss how to image or clone the hard drive of a CentOS 7 server used as a DHCP and DNS server in production (DNS and DHCP data don’t change that often on the server). The cloned image will also be encrypted on-fly during the cloning process. A passphrase will be used to encrypt and decrypt the image. In case of losing or forgetting the passphrase, the imaged data will be forever lost.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
I use Clonezilla myself and also have an encrypted 'home' partition. I find it to be very good cloning software and has saved me quite a few times. I found it to be the most reliable solution for cloning disks (software that I've used myself, that is).
Since clonezilla can't see the filesystem structure inside that encrypted disk, it can't do its magic of copying only used space and ignoring the free space. The resulting action is the same as what you would get by just using dd.
The point of encrypting the copy of an already encrypted filesystem escapes me. Perhaps, despite the article's title, the whole disk was not actually encrypted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.