Packetwatch.net

Backup and restore using Clonezilla Live



Last modified: Jun. 26, 2009

Contents
1 - Summary
2 - List hard disks and partitons
3 - Save partition as an image to samba server
4 - Restore partition from samba server


1 - Summary

This guide will show how to create an image of a computer and then restore it
using Clonezilla Live. Clonezilla Live is useful for a single computer backup
and recovery. This has been tested using GParted Live 0.4.5-2 and Clonezilla
Live 1.2.2-14.


2 - List hard disks and partitions

Make sure the BIOS is set to boot from CD. Boot from the GParted Live CD found
at http://gparted.sourceforge.net/ to list the hard disks and partitions. Here
is the first screen with the main options. Select GParted Live (Safe graphic
settings, vga=normal).

GParted Live options
You will now be prompted to change your keymap for your keyboard, select your language and finally how to start X-Windows. The gparted application will now start. You can select the hard disk by using the drop-down box in the upper right-hand corner of the screen. In this example, there is one hard disk with three partitions.
Partitions
When finished, click on the icon that says Exit and remove the CD. 3 - Save partition as an image to samba server Boot from the Clonezilla Live CD found at http://www.clonezilla.org/ to go about saving a partition as an image to a samba server. Here is the first screen with the main options. Select Clonezilla live (Safe graphic settings, vga=normal).
Clonezilla Live main options
You will be prompted to change your keymap for your keyboard. Select Start_Clonezilla.
Start Clonezilla options
You will be prompted to choose if you want to work with an image or device. In this example select device-image.
Image or device option
Select samba_server to save the image to a samba share.
Mount image directory
Configure the network settings. In this example select dhcp.
Network configuration
Type in the IP address or full DNS name of the samba server where the share is located.
Samba server DNS information
Type in the domain the samba server is in.
Samba server domain
Type in the account name that will be used to access the samba share.
Samba share account
Type in the directory/share name where the image will be saved to.
Samba share
Type in the password for the samba share.
Password for samba share
After the correct password is typed in the file system disk space usage will be displayed.
File system disk space usage
Select Expert so the options can be specified.
Parameter wizard
Select saveparts to save a partition as an image.
Select mode
Type in a name for the saved image. This will be the name of the directory where the image will be saved inside.
Name for the saved image
Select the source partition that will be imaged.
Select source partition
Select -q2 priority to try using partclone then partimage and finally dd.
Program priority
Select the -c and -j2 options.
Advanced parameters
Select -z1 to use gzip compression which is a good compromise of speed and file size.
Compression options
Type in 0 to not split the image file.
Image split option
Select -p true so when the cloning is finished the computer will still be running.
Shutdown option
Press Enter to continue. Type in y to confirm and start.
Confirmation to start
Here is the screen that displays the progress of the imaging.
Imaging partition
The imaging process has finished successfully.
Finished imaging
Finally, enter the command line prompt and create a checksum file. When that finishes change users and become root and shutdown the computer.
Shutdown
4 - Restore partition from samba server Boot from the Clonezilla Live CD found at http://www.clonezilla.org/ to go about restoring a partition as an image from a samba server. Here is the first screen with the main options. Select Clonezilla live (Safe graphic settings, vga=normal).
Clonezilla Live main options
You will be prompted to change your keymap for your keyboard. Select Start_Clonezilla.
Start Clonezilla options
You will be prompted to choose if you want to work with an image or device. In this example select device-image.
Image or device option
Select samba_server to restore the image from a samba share.
Mount image directory
Configure the network settings. In this example select dhcp.
Network configuration
Type in the IP address or full DNS name of the samba server where the share is located.
Samba server DNS information
Type in the domain the samba server is in.
Samba server domain
Type in the account name that will be used to access the samba share.
Samba share account
Type in the directory/share name where the image will be restored from.
Samba share
Type in the password for the samba share.
Password for samba share
After the correct password is typed in the file system disk space usage will be displayed.
File system disk space usage
Select Beginner so the default options can be used.
Parameter wizard
Select restoreparts to restore an image to a partition.
Select mode
Select the image file to restore.
Name of the save image
Select the target partition that will be overwritten.
Select target partition
Press Enter to continue. Type in y to confirm and start.
Confirmation to start
Here is the screen that displays the progress of the restoring.
Restoring partition
The restoring process has finished successfully.
Finished restoring
Finally, type in 0 and shutdown the computer.
Shutdown

Last modified: Thu Jan 1 00:00:00 1970 UTC
Packetwatch Research 2002-2017.