--
MikeGore - 2015-06-04
Clonezilla
Documents
Grad PC Documentation
Basic Overview
- ) Connect your system to ASIMOV vlan 420
- ) Set you machine to UEFI PXE boot
- Consult: https://cs.uwaterloo.ca/twiki/view/CF/UEFI
- Make sure your system has PXE boot ROM enabled and ipv4 network stack enable, network boot order UEFI first and legacy second
- Note: when you UEFI PXE boot on Asimov you will see UEFI in menu title a after network booting - or - BIOS if UEFI booting failed
- Be sure to pick the correct UEFI partition for booting after imaging (done in the BIOS) as imaging changes these.
- ) PXE boot the machine* - typically F12 or F8 boot option (may require PXE boot enabled in BIOS)
- ) Use either
- clonezilla NFS Live menu to create a new image on ASIMOV
- The remaining entries do a fully automated prompt-less restore - or semi-manual- - overwrites all partitions without asking
- If you hit one by mistake you have about a minute to hit the power and avoid erasing your system.
Create a new image
- ) Always remember to Document your image
- ) PXE boot your computer on vlan 420 ASIMOV
- ) Move the image into its correct home under /*coregroup/images/core - or /coregroup/images/research based on its end use.
- Notes:
- The the path /coregroup/image_drop is the only Read/Write NFS path on ASIMOV - this is to protect the images from accidental overwrite.
- ) Run the make_clonezilla script - see next section
make_clonezilla script - create menus for all Clonezilla images found on asimov
- )_Log into ASIMOV - become root
- ) Run the script: make_clonezilla
- This rebuilds the PXE boot menus for clonezilla adding any image it finds
Restore the image
- ) PXE boot your computer on vlan 420 ASIMOV
- ) Restore Clonzilla image
- Go to "Clonzilla image" in the menu PXE Boot Page
- Generally go to "Clonzilla NFS_MANUAL_p6p2 on 192.168.0.1.." Select Manual
- Search for the right image, (can be tricky) Find Image
- Wait for image to boot up (Depending on image, this can take a while) Wait
- ) Follow these steps through the Clonzilla screen
Some Window-Ubuntu dual boot images do not have "fast startup" disabled in Windows 10. You will notice this when the computer only soft reboots when attempt to shutdown on Windows.
Go to Control Panel -> Power Options -> What Powers button do -> Change settings that are currently unavaliable -> uncheck fast startup -> Save changes to fix this.
Example clonezilla PXE fully auto restore menu entry created by script make_clonezilla
LABEL core/Fall2014images/clonezilla-t430s-f14/w7u1204-t430s-f14-v2-
KERNEL clonezilla/64bit/live/vmlinuz
APPEND initrd=clonezilla/64bit/live/initrd.img boot=live fetch=tftp://192.168.1.1/clonezilla/64bit/live/filesystem.squashfs debug=1 quiet nosplash noprompt config noswap nolocales locales="en_US.UTF-8" vga=788 edd=on nomodeset keyboard-layouts=NONE ocs_live_batch="yes" ocs_prerun1="mount -t nfs 192.168.1.1:/coregroup/images /home/partimag" ocs_prerun2="sleep 10" ocs_live_run="ocs-sr -g auto -e1 auto -e2 --batch -j2 -p reboot restoredisk core/Fall2014images/clonezilla-t430s-f14/w7u1204-t430s-f14-v2- sda"
Example clonezilla PXE partly manual restore menu entry created by script make_clonezilla
LABEL core/Fall2014images/clonezilla-t430s-f14/w7u1204-t430s-f14-v2-
KERNEL clonezilla/64bit/live/vmlinuz
APPEND initrd=clonezilla/64bit/live/initrd.img boot=live fetch=tftp://192.168.1.1/clonezilla/64bit/live/filesystem.squashfs debug=1 quiet nosplash noprompt config noswap nolocales locales="en_US.UTF-8" vga=788 edd=on nomodeset keyboard-layouts=NONE ocs_live_batch="no" ocs_prerun1="mount -t nfs 192.168.1.1:/coregroup/images/core/Fall2014images/clonezilla-t430s-f14 /home/partimag" ocs_prerun2="sleep 10" ocs_live_run="ocs-live-general"
Clonezilla syslinux and PXE options
Kernel Options
Clonzilla Parameters
-
- ocs_live_batch="yes" - non-interactive
- ocs_daemonon, ocs_daemonoff, ocs_numlk, ocs_capslk.
Ex. for the first 2 parameters, ocs_daemonon="ssh", then ssh service will be turned on when booting. For the last 2 parameters, use "on" or "off", e.g. ocs_numlk=on to turn on numberlock when booting.
- locales=en_US.UTF-8 - preset language
- keyboard-layouts=NONE (won't change the default layout, which is US keyboard)
ocs-sr options
-
- -g, install grub in MBR of disk with GRUB partition
- auth - autodetect partition
- e1, --change-geometry NTFS-BOOT-PARTITION Force to change the CHS (cylinders, heads, sectors) value of NTFS boot partitoin after image is restored. NTFS-BOOT-PARTITION can be one of "/dev/hda1", "/dev/hda2"... or "auto" ("auto" will let clonezilla detect the NTFS boot partition automatically)
- -e2, --load-geometry-from-edd Force to use the CHS (cylinders, heads, sectors) from EDD (Enhanced Disk Device) when creating partition table by sfdisk
- -b, -batch, --batch (DANGEROUS!) Run program in batch mode, i.e. without any prompt or wait for pressing enter key.
- -c, --confirm Wait for confirmation before saving or restoring
- j2, --clone-hidden-data Use dd to clone the image of the data between MBR
- -p, --postaction [choose|poweroff|reboot|command|CMD]
- restoredisk image_name disk