0% found this document useful (0 votes)
48 views36 pages

Clonezilla Disk Imaging Guide

The document provides step-by-step instructions for saving a disk image using Clonezilla. It describes booting into the Clonezilla live environment, selecting the "device-image" option, assigning the second disk as the image repository, inputting the image name and source disk, and using Clonezilla to save a disk image from the first disk to a partition on the second disk.

Uploaded by

line08
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views36 pages

Clonezilla Disk Imaging Guide

The document provides step-by-step instructions for saving a disk image using Clonezilla. It describes booting into the Clonezilla live environment, selecting the "device-image" option, assigning the second disk as the image repository, inputting the image name and source disk, and using Clonezilla to save a disk image from the first disk to a partition on the second disk.

Uploaded by

line08
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Save disk image

[Link]

The Free and Open Source Software for Disk Imaging and Cloning

Clonezilla

Save disk image


About News RSS Screenshots Live CD/USB/PXE Server Edition Downloads Vendors of CD/USB key DRBL-winroll Related LiveCD Testimonials Related Articles Partners FAQ/Q&A Mailing Lists Forum Artwork Related links

In this example: Save 1st disk (sda) as an image on 2nd disk (sdb) (Step by step)
1. Boot the machine via Clonezilla live 2. The boot menu of Clonezilla live 3. 4. 5. 6. 7. 8. Here we choose 800x600 mode, after pressing Enter, you will see Debian Linux booting process Choose language Choose keyboard layout Choose "Start Clonezilla" Choose "device-image" option Choose "local_dev" option to assign sdb1 as the image home

9. Select sdb1 as image repository, then choose "savedisk" option 10. Input image name and select source disk 11. Clonezilla is saving disk image (sda) to the partition of 2nd disk (sdb1) [Back to 'Clonezilla Live Doc']

Boot the machine via Clonezilla live

^TOP^

In this example, the machine has 2 disks, 1st disk's name is sda (device name in GNU/Linux), 2nd disk's device name is sdb. The size of disk sda is 8 GB with Ubuntu Lucid installed. There are 3 partitons (sda1, sda2, sda3, and sda5) on disk sda as shown in the following:

1 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Once you have the bootable Clonezilla Live CD/DVD or USB flash drive, you can boot the machine you want to clone via Clonezilla live. Remember to use the Clonezilla live CD or USB flash drive to boot the machine. For example, if you have Clonezilla Live in USB flash drive, you have to boot it via USB device (Ex. USB-HDD or USB-ZIP). If necessary, you can set the first boot priority in the BIOS as USB-HDD or USB-ZIP so that it can boot Clonezilla Live from your USB flash drive. Here we take CD as an example. You can either set CD as first boot priority in machine's BIOS like this:

2 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Or by pressing a hotkey (e.g. Esc, F9 or maybe F12) when you boot the machine, you will see the boot menu of BIOS like this:

3 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Check your motherboard manual for more details about how to boot your machine via CD.

The boot menu of Clonezilla live

^TOP^

Here is a screenshot of Clonezilla Live boot menu:

4 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

The first one is the default mode for Clonezilla Live. It will default to framebuffer mode with a resolution of 800x600. There are more modes which you can choose in the 2nd choice "Other modes of Clonezilla live", e.g. 1024X768 or 640x480 one if you want, as shown here:

5 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

The choice, "Clonezilla live (To RAM. Boot media can be removed later), is the same function with the 1st one except when Clonezilla live booting finishes, all the necessary files are copied to memory. Therefore you can remove the boot media (CD or USB flash drive) then. If you do not need Chinese or Japanese environment or if your computer experiences problems in the framebuffer mode, you can choose the one "Clonezilla Live (no framebuffer)" to clone in the English environment. The choice, "Clonezilla live (failsafe mode)", is for something goes wrong when you are not be able to boot your

6 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

machine, such as ACPI of your machine is not supported in the kernel. If you want to boot local OS in your harddrive, you can choose the one "Local operating system in harddrive (if available)". This is an extra function in the boot media that has nothing to do with Clonezilla Live. The choice, "FreeDOS", allows you to boot your machine into Free DOS. This is an extra function in the boot media that has nothing to do with Clonezilla Live. The choice, "Memory test using Memtest86+," is for memory testing using Memtest86+. This is an extra function in the boot media that has nothing to do with Clonezilla Live. The choice, "Network boot via etherboot" or "Network boot via gpxe" is used to perform a network boot via Etherboot or gPXE. If your computer does not have a PXE network, you can use this to do boot from a network. This is an extra function in the boot media that has nothing to do with Clonezilla Live. Here we choose 800x600 mode, after pressing Enter, you will see Debian Linux booting process ^TOP^

7 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Choose language

^TOP^

8 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Choose keyboard layout

^TOP^

9 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

The default keyboard layout is US keybaord, therefore if you are using US keyboard, just press enter (i.e. use the option "Don't touch keymap").

10 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

If you want to change keymap, you can either choose "Select keymap from arch list" or "Select keymap from full list". ///NOTE/// There is a bug when choosing French keymap in "Select keymap from arch list", so use "Select keymap from full list" to change keymap if you are using French keyboard. Choose "Start Clonezilla" ^TOP^

11 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Choose "device-image" option

^TOP^

12 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Pay attention to the hints, too. You might need that: ///Hint! From now on, if multiple choices are available, you have to press space key to mark your selection. A

13 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

star sign (*) will be shown when the selection is done/// Choose "local_dev" option to assign sdb1 as the image home ^TOP^

14 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

There are other options, e.g. sshfs, samba or nfs, you can use when network is available. This is very useful when 2nd local disk is not available.

15 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Since we choose "local_dev" option, we can use 2nd disk or USB flash drive to save 1st disk's image. If using USB flash drive as repository, inster USB flash drive and wait a few secs.

16 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Select sdb1 as image repository, then choose "savedisk" option

^TOP^

17 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Choose the directory name on /dev/sdb1 as the image repository. Here we put image on the top directory:

If you are not familiar with the disk or partition name in GNU/Linux, read the hints:

18 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

'The partition name is the device name in GNU/Linux. The first partition in the first disk is "hda1" or "sda1", the 2nd partition in the first disk is "hda2" or "sda2", the first partition in the second disk is "sdb1" or "sdb1"... If the system you want to save is MS windows, normally C: is hda1 (for PATA) or sda1 (for PATA, SATA or SCSI), and D: could be hda2 (or sda2), hda5 (or sda5)...' Then Clonezilla shows you the disk usage report:

19 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Here we choose "Beginner" mode:

20 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Now we can select "savedisk" option:

21 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

If you choose "Expert" mode, you will have some chances to choose advanced parameters, e.g. imaging program, compression program, etc.. You can see more details here.

22 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Input image name and select source disk

^TOP^

Enter the image name, Clonezilla will give an image name based on date and time, feel free to change it

23 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Select the source disk "sda" we want to save:

24 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Clonezilla will prompt us the command to save the image. This command is very useful when you want to create a customized Clonezilla live:

25 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Before starting to save the disk image, we still have a chance to say no:

26 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Clonezilla is saving disk image (sda) to the partition of 2nd disk (sdb1)

^TOP^

Clonezilla now is saving disk sda as an image. The job is done by saving: MBR (by dd) Partition table (by sfdisk and parted), CHS of disk. Data on every partition or LV (logical volume) (by partimage, ntfsclone, partclone or dd. It depends on the "-q" option you choose)

27 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

28 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

29 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

When everything is done, Clonezilla will prompt you if you want to run it again, 1. 'Stay in this console (console 1), enter command line prompt'

30 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

2. 'Run command "exit" or "logout"'

Then you can choose to:

31 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Poweroff Reboot Enter command line prompt Start over

32 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

Here we choose Poweroff (0), then when the shutdown process is done, it will ask you to remove the disk and close the try (if any) then press ENTER.

33 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

That's all. We have successfully saved disk image (sda) on 2nd disk (sdb1). The image on the 2nd disk is a directory with name "lucid-2010-07-28-07-img" and its contents are:

34 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

root@debian:~# ls -alFh /home/partimag/ total 512 drwxr-xr-x 7 root root 168 2010-07-28 07:12 ./ drwxr-xr-x 4 root root drwxr-xr-x 2 root root 80 2010-07-28 07:15 ../ 48 2010-07-28 07:07 DOCS/

drwxr-xr-x 2 root root 512 2010-07-28 07:12 lucid-2010-07-28-07-img/ drwxr-xr-x 2 root root 48 2010-07-28 07:07 Photos/

root@debian:~# ls -alFh /home/partimag/lucid-2010-07-28-07-img/ total 220M drwxr-xr-x 2 root root drwxr-xr-x 7 root root -rw-r--r-- 1 root root -rw-r--r-- 1 root root -rw-r--r-- 1 root root 512 2010-07-28 07:12 ./ 168 2010-07-28 07:12 ../ 4 2010-07-28 07:12 disk 34K 2010-07-28 07:12 [Link] 18K 2010-07-28 07:12 [Link]

-rw-r--r-- 1 root root 1.4K 2010-07-28 07:12 [Link] -rw-r--r-- 1 root root -rw-r--r-- 1 root root 260 2010-07-28 07:12 [Link] 10 2010-07-28 07:12 parts

-rw------- 1 root root 216M 2010-07-28 07:12 [Link] -rw------- 1 root root 2.3M 2010-07-28 07:12 [Link] -rw-r--r-- 1 root root 36 2010-07-28 07:11 [Link]

-rw-r--r-- 1 root root 1.0M 2010-07-28 07:11 sda-hidden-data-after-mbr -rw-r--r-- 1 root root -rw-r--r-- 1 root root -rw-r--r-- 1 root root -rw-r--r-- 1 root root 512 2010-07-28 07:11 sda-mbr 434 2010-07-28 07:11 [Link] 310 2010-07-28 07:11 [Link] 53 2010-07-28 07:12 [Link]

35 of 36

20/11/2011 9:38 AM

Save disk image

[Link]

[Back to 'Clonezilla Live Doc']

Modified: Tue Jan 4 6:58:56 MST 2011.


NCHC Free Software Lab. All Rights Reserved. Anyone is permitted to copy and distribute verbatim copies of this document under the terms of the GNU FDL Free Documentation License.

36 of 36

20/11/2011 9:38 AM

You might also like