- First, you have to setup a PXE server. You may refer to this doc.
- We'd like to change the default password ("live") to another one, e.g. "iloveclonezilla". By running this on GNU/Linux (e.g. Clonezilla live) command line prompt:
echo iloveclonezilla | mkpasswd -s
Kb/VNchPYhuf6
Then you get the encrypted password "Kb/VNchPYhuf6", so later we can use usercrypted=Kb/VNchPYhuf6. We want Clonezilla to restore the image "lenny-i386-partclone" (which is on a NFS server) to client's disk hda. The complete session of Clonezilla live
---------------------------------------------
label Clonezilla-live
MENU LABEL Clonezilla Live 2.2.2-37 (Ramdisk)
KERNEL vmlinuz1
APPEND initrd=initrd1.img boot=live union=aufs nolocales vga=788 ip= noprompt usercrypted=Kb/VNchPYhuf6 fetch=tftp://192.168.120.254/Clonezilla-live-filesystem.squashfs ocs_daemonon="ssh" keyboard-layouts=NONE ocs_live_batch="no" locales="en_US.UTF-8" ocs_prerun="mount -t nfs 192.168.120.254:/home/partimag /home/partimag" ocs_live_run="screen ocs-sr -g auto -e1 auto -e2 --batch -j2 -p reboot restoredisk lenny-i386-partclone hda"
---------------------------------------------
- Then after client machine is booted via PXE, you can ssh login into it with account user and passwd "iloveclonezilla", then:
- sudo -i
- screen -x
You are in the screen session now. You should be able to see the restoring process before it's rebooted.
For more boot parameters, please refer to this doc.
|