Clonezilla

The Free and Open Source Software for Disk Imaging and Cloning
Started with sshd on and passwd assigned

In this example: Run unattended Clonezilla live via PXE or CD booting and the process can be remotely monitored
  1. A PXE config example for you to boot Clonezilla live via PXE, and ssh service is on, the password of account "user" is assigned
  2. A CD with configured boot parameters for you to boot Clonezilla live, and the ssh service is on, the password of account "user" is assigned

[Back to 'Clonezilla Live Doc']

  • A PXE config example for you to boot Clonezilla live via PXE, and ssh service is on, the password of account "user" is assigned
        ^TOP^
  •  ----------------------------------------
    label Clonezilla Live
    MENU LABEL Clonezilla Live
    MENU DEFAULT
    kernel vmlinuz1
    append initrd=initrd1.img boot=live union=aufs noswap noprompt vga=788 fetch=tftp://192.168.120.254/filesystem.squashfs usercrypted=bkuQxLqLRuDW6 ocs_numlk="on" ocs_daemonon="ssh"
    ----------------------------------------
    The usercrypted password is created by:
    echo YOUR_PASSWORD | mkpasswd -s
    ("mkpasswd" is from package "whois" in Debian or Ubuntu. Check your GNU/Linux to see which package provides this command if you are not using Debian or Ubuntu. Replace YOUR_PASSWORD with your plain text password, and remember do not put any " in the boot parameters of live-initramfs (while it's ok for those ocs_* boot parameters), i.e. do NOT use something like usercrypted="bkuQxLqLRuDW6").
    If you prefer sha-256 instead of md5 method, you can generate the password like:
    echo YOUR_PASSWD | mkpasswd -m sha-256 -s
    Or sha-512:
    echo YOUR_PASSWD | mkpasswd -m sha-512 -s
    //NOTE// If you do not assign salt to mkpasswd, the encrypted password will not be the same every time you create it.
    For more about usercrypted discussion, please check the here.

    For more boot parameters, please refer to this doc.


  • A CD with configured boot parameters for you to boot Clonezilla live, and the ssh service is on, the password of account "user" is assigned
        ^TOP^
  •  ----------------------------------------
    label Clonezilla Live
    MENU LABEL Clonezilla Live
    MENU DEFAULT
    kernel /live/vmlinuz
    append initrd=/live/initrd.img boot=live config noswap edd=on nomodeset locales=en_US.UTF-8 keyboard-layouts=NONE ocs_prerun="dhclient -v eth0" ocs_live_run="/bin/bash" ocs_live_extra_param="" ocs_live_batch=no vga=788 ip= nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.blacklist=yes usercrypted=bkuQxLqLRuDW6 ocs_numlk="on" ocs_daemonon="ssh"
    TEXT HELP
    * Clonezilla live version: 2.2.2-37-i686-pae. (C) 2003-2014, NCHC, Taiwan
    * Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
    ENDTEXT
    ----------------------------------------
    The usercrypted password is created by:
    echo YOUR_PASSWORD | mkpasswd -s
    ("mkpasswd" is from package "whois" in Debian or Ubuntu. Check your GNU/Linux to see which package provides this command if you are not using Debian or Ubuntu. Replace YOUR_PASSWORD with your plain text password, and remember do not put any " in the boot parameters of live-initramfs (while it's ok for those ocs_* boot parameters), i.e. do NOT use something like usercrypted="bkuQxLqLRuDW6").
    If you prefer sha-256 instead of md5 method, you can generate the password like:
    echo YOUR_PASSWD | mkpasswd -m sha-256 -s
    Or sha-512:
    echo YOUR_PASSWD | mkpasswd -m sha-512 -s
    //NOTE// If you do not assign salt to mkpasswd, the encrypted password will not be the same every time you create it.
    For more about usercrypted discussion, please check the here. To make such a live CD, you can unzip Clonezilla live zip file, and edit the syslinux/isolinux.cfg like the above. Then run command like the following to generate the iso file:
    genisoimage -A 'Clonezilla live CD' -f -r -hide-rr-moved -hide-joliet-trans-tbl -J -l -allow-limited-size -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -efi-boot EFI-imgs/efiboot.img -no-emul-boot ./ > /tmp/clonezilla-live-nfs-restore.iso

    For more boot parameters, for example, you want to assign static IP address, please refer to this doc.


[Back to 'Clonezilla Live Doc']

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