Clonezilla 樴


Create Recovery Clonezilla
In this example: Y銝質芸瑁 Clonezilla 蝣 USB 蝣
  1. 勗樴 live CD 璈
  2. Clonezilla live 璈詨
  3. 豢 800x600 璅∪, [Enter] 銋敺撠唬隞 Debian Linux 璈瘚蝔
  4. 豢隤閮
  5. 豢萇
  6. 豢 "雿輻典樴"
  7. 豢 "device-image"
  8. 豢 "local_dev" 靘摰 hdb1 雿箇′瑼摰嗥桅
  9. 豢 hdb1 雿箏啗情瑼桅, 嗅豢 "recover-sio-zip"
  10. 豢閬脤蝣 USB蝣啗情瑼

[Back to 'Clonezilla Live Doc']

  • 勗樴 live CD 璈     ^TOP^
  •  In this example, the machine has 2 disks, 1st disk's name is hda (device name in GNU/Linux), 2nd disk's device name is hdb. We already have a Clonezilla image in hdb. //NOTE// You must first create an image and it should exist in dir /home/partimag, otherwise later the menu "recovery-iso-zip" won't be shown.
    In this example, the image name is called "lenny-img-2010-03-28". and its contents is:
    root@debian:~# ls -alFh /home/partimag/
    total 8.0K
    drwxrwxrwx 1 root root 4.0K 2010-03-28 11:52 ./
    drwxr-xr-x 4 root root   80 2010-03-28 11:46 ../
    drwxrwxrwx 1 root root 4.0K 2010-03-28 11:14 lenny-img-2010-03-28/
    root@debian:~# ls -alh /home/partimag/lenny-img-2010-03-28/
    total 165M
    drwxrwxrwx 1 root root 4.0K 2010-03-28 11:14 .
    drwxrwxrwx 1 root root 4.0K 2010-03-28 11:49 ..
    -rwxrwxrwx 1 root root    4 2010-03-28 11:14 disk
    -rwxrwxrwx 1 root root  37M 2010-03-28 11:13 hda1.ext3-ptcl-img.gz.aa
    -rwxrwxrwx 1 root root 101M 2010-03-28 11:13 hda5.ext3-ptcl-img.gz.aa
    -rwxrwxrwx 1 root root  27M 2010-03-28 11:13 hda6.ext3-ptcl-img.gz.aa
    -rwxrwxrwx 1 root root 266K 2010-03-28 11:13 hda8.ext3-ptcl-img.gz.aa
    -rwxrwxrwx 1 root root 776K 2010-03-28 11:14 hda9.ext3-ptcl-img.gz.aa
    -rwxrwxrwx 1 root root   36 2010-03-28 11:12 hda-chs.sf
    -rwxrwxrwx 1 root root  31K 2010-03-28 11:12 hda-hidden-data-after-mbr
    -rwxrwxrwx 1 root root  512 2010-03-28 11:12 hda-mbr
    -rwxrwxrwx 1 root root  620 2010-03-28 11:12 hda-pt.parted
    -rwxrwxrwx 1 root root  514 2010-03-28 11:12 hda-pt.sf
    -rwxrwxrwx 1 root root  16K 2010-03-28 11:14 Info-dmi.txt
    -rwxrwxrwx 1 root root  14K 2010-03-28 11:14 Info-lshw.txt
    -rwxrwxrwx 1 root root 1.4K 2010-03-28 11:14 Info-lspci.txt
    -rwxrwxrwx 1 root root  286 2010-03-28 11:14 Info-packages.txt
    -rwxrwxrwx 1 root root   25 2010-03-28 11:14 parts
    -rwxrwxrwx 1 root root   53 2010-03-28 11:14
    Now we will use the image "lenny-img-2010-03-28" to create a recovery Clonezilla live CD, which can be used to recover the hda if the system on hda crashes.
    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:

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

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

  • Clonezilla live 璈詨     ^TOP^
  •  Here is a screenshot of Clonezilla Live boot menu:

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

    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 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.

  • 豢 800x600 璅∪, [Enter] 銋敺撠唬隞 Debian Linux 璈瘚蝔     ^TOP^

    //NOTE// Do _NOT_ choose the To RAM option of boot menu in this case. It will _NOT_ work for creating recovery ISO or zip file.

  • 豢隤閮     ^TOP^

  • 豢萇     ^TOP^

    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").
    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.

  • 豢 "雿輻典樴"     ^TOP^

  • 豢 "device-image"     ^TOP^

    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 star sign (*) will be shown when the selection is done///

  • 豢 "local_dev" 靘摰 hdb1 雿箇′瑼摰嗥桅     ^TOP^

    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.
    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.

  • 豢 hdb1 雿箏啗情瑼桅, 嗅豢 "recover-sio-zip"     ^TOP^

    If you are not familiar with the disk or partition name in GNU/Linux, read the hints:
    '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 "hdb1" 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:

    Here we choose "Beginner" mode:

    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.

    Now you can select "recovery-iso-zip" option:

  • 豢閬脤蝣 USB蝣啗情瑼

    Choose the disk to be recovered when the recovery CD or USB flash drive is used:

    Choose the language when the recovery CD or USB flash drive is used:

    Set the keyboard layout when the recovery CD or USB flash drive is used, here we chose "NONE". That means we won't change the keyboard layout, i.e. the US keyboard layout will be used:

    Choose you want to creaet iso file (for CD/DVD), zip file (for USB flash drive) or both. Here we choose iso:

    Clonezilla will list the command to create such a iso file:

    The iso file for recovery CD is creating:


    The created iso file is in the dir /home/partimag:

    That's all. You can copy (or use network tool to copy, e.g. scp, lftp, to copy the file to another machine. If you need to config the network, run: "sudo -i; ocs-live-netcfg" to config the network.) the create iso file to the machine running with a CD burner. Then you can use burning tool to burn the iso image to CD or DVD. If you want to create a recovery USB flash drive, choose to create zip file, then follow the same method as creating USB flash drive version of Clonezilla live to put the created zip file on USB flash drive and make it bootable.

[Back to 'Clonezilla Live Doc']