You have taken an image of a machine and are restoring it to new hardware, either to recover from a failure or to deploy a new machine with the same settings.
This is often done when you need to have a disk image of your personal workstation, of a server, or for mass deployment of computers (e.g., Linux servers).
You need to boot from the Clonezilla CD and restore from the USB disk where your image is stored.
- Boot the new hardware off a Clonezilla disk or USB drive. You first be asked to select your language and keymap; normally, the defaults are fine. Then select the option to “Start Clonezilla”.
- You’ll need to select whether you’re cloning using an image or directly from one device to another; we’ll be doing the former so select “device-image”.
- Clonezilla supports a wide variety of source media but, in this example, we’re using locally-attached USB disks so select “local_dev”.
- Follow the instructions on the screen: attach the USB disk, wait a few seconds for the OS to detect it, then press Enter to proceed.
- You’ll be given a list of available devices and will need to highlight the USB drive in red, then press Enter. In this example, /dev/sda was the existing local disk (it already has an OS on it) while /dev/sdb is the new device attached to hold the image.
- Select the folder where the image is located; in this example, we just put the image in the root of the drive but if you organize your images (for example, you use the same disk for images of different machines), you’ll need to specify the folder that actually has the image in question. You’ll get a dump of disk space usage, just press Enter.
- Clonezilla has a lot of options but Beginner mode does everything we need right now so leave it highlighted and press Enter.
- Since we’re trying to restore the image, select “restoredisk” and press Enter.
- If there is more than one image in the current folder, you’ll need to choose which one to restore.
- Select the disk to which you’ll be restoring the image. NOTE: This will destroy all data on the select disk!!
- You’ll be given the shell command that is going to be run so that you can quickly restore this image later (just press Enter), then asked twice to verify that you really want to replace the target disk’s contents with the image’s content. Answer “y” to both prompts, then let the restore run.
- A screen like this will be displayed for each partition/logical volume as it is restored.
- Once it’s done, press Enter one more time, then select Reboot.
- Remove the Clonezilla media from the machine and let it boot into the newly restored OS. Remember to reset any static IPs, hostnames, etc. to avoid collisions on the network before reconnecting the restored machine.