-- MikeGore - 2015-06-04

Clonezilla

Documents

Grad PC Documentation

Basic Overview

  1. ) Connect your system to ASIMOV vlan 420
  2. ) 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.
  3. ) PXE boot the machine* - typically F12 or F8 boot option (may require PXE boot enabled in BIOS)
  4. ) 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

  1. ) Always remember to Document your image
  2. ) PXE boot your computer on vlan 420 ASIMOV
  3. ) 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.
  4. ) Run the make_clonezilla script - see next section

make_clonezilla script - create menus for all Clonezilla images found on asimov

  1. )_Log into ASIMOV - become root
  2. ) Run the script: make_clonezilla
    • This rebuilds the PXE boot menus for clonezilla adding any image it finds

Restore the image

  1. ) PXE boot your computer on vlan 420 ASIMOV
  2. ) 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
  3. ) 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

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

Topic attachments
I Attachment History Action Size Date Who Comment
JPEGjpg 10._Create_Table_proportionally.JPG r1 manage 1671.4 K 2017-10-02 - 10:56 CscfHelp Clonezilla help images
JPEGjpg 11._Skip_Check.JPG r1 manage 1584.6 K 2017-10-02 - 10:56 CscfHelp Clonezilla help images
JPEGjpg 12_Choose_Finish_option.JPG r1 manage 1638.5 K 2017-10-02 - 10:56 CscfHelp Clonezilla help images
JPEGjpg 13_Confirm_with_imaging.JPG r1 manage 2251.4 K 2017-10-02 - 10:56 CscfHelp Clonezilla help images
JPEGjpg 1_Start_Clonezilla.JPG r1 manage 1822.0 K 2017-10-12 - 11:41 CscfHelp Clonezilla help images
JPEGjpg 2._Disk_image.JPG r1 manage 1153.5 K 2017-09-27 - 15:02 CscfHelp Clonezilla help images
JPEGjpg 20160128_161353.jpg r1 manage 3890.1 K 2016-01-28 - 18:04 MikeGore PXE Boot Menu
JPEGjpg 20160128_161402.jpg r1 manage 1866.6 K 2016-01-28 - 18:05 MikeGore  
JPEGjpg 20160128_161430.jpg r1 manage 3600.4 K 2016-01-28 - 18:11 MikeGore PXE Boot Menu
JPEGjpg 20160128_161501.jpg r1 manage 2782.9 K 2016-01-28 - 18:16 MikeGore Navigating Images
JPEGjpg 20160128_161539.jpg r1 manage 2246.8 K 2016-01-28 - 18:16 MikeGore Clonezilla Loading
JPEGjpg 20160128_161559.jpg r1 manage 2081.8 K 2016-01-28 - 18:18 MikeGore Clonezilla - showing mount points prior to image restore
JPEGjpg 20160128_161633.jpg r1 manage 3369.6 K 2016-01-28 - 18:19 MikeGore Clonezilla image restore in progress
JPEGjpg 20160128_161744.jpg r1 manage 2321.2 K 2016-01-28 - 18:20 MikeGore PXE Clonezilla Manual Restore Menue
JPEGjpg 20160128_161800.jpg r1 manage 2542.8 K 2016-01-28 - 18:21 MikeGore Clonezilla Image Sellection
JPEGjpg 20160128_161840.jpg r1 manage 2220.2 K 2016-01-28 - 18:22 MikeGore Clonezilla Loading
JPEGjpg 20160128_161915.jpg r1 manage 1878.1 K 2016-01-28 - 18:23 MikeGore Clonezilla initial menu
JPEGjpg 20160128_161956.jpg r1 manage 1452.0 K 2016-01-28 - 18:23 MikeGore Clonezilla - showing mount points prior to image restore
JPEGjpg 20160128_162035.jpg r1 manage 1950.3 K 2016-01-28 - 18:24 MikeGore Clonezilla Restore DIsk Option
JPEGjpg 20160128_162044.jpg r1 manage 1849.6 K 2016-01-28 - 18:25 MikeGore Clonezilla Image chooser
JPEGjpg 20160128_162112.jpg r1 manage 2952.2 K 2016-01-28 - 18:26 MikeGore Clonezilla Ignore Disk size option
JPEGjpg 20160128_162126.jpg r1 manage 3156.6 K 2016-01-28 - 18:27 MikeGore K1 option - Create partition table proportionally
JPEGjpg 20160128_162131.jpg r1 manage 1877.0 K 2016-01-28 - 18:28 MikeGore Do nothing after image restore
JPEGjpg 20160128_162137.jpg r1 manage 1478.2 K 2016-01-28 - 18:29 MikeGore Restore command line options summary
JPEGjpg 20160128_162201.jpg r1 manage 1946.2 K 2016-01-28 - 18:30 MikeGore Image restore image summary
JPEGjpg 20160129_090756.jpg r1 manage 3132.6 K 2016-01-29 - 09:21 MikeGore Computer Boot Menu
JPEGjpg 20160129_090822.jpg r1 manage 2912.2 K 2016-01-29 - 09:21 MikeGore PXE Menu
JPEGjpg 20160129_090831.jpg r1 manage 3906.9 K 2016-01-29 - 09:22 MikeGore LIVE-RW Menu
JPEGjpg 20160129_090900.jpg r1 manage 2693.8 K 2016-01-29 - 09:22 MikeGore Clonezilla Loading
JPEGjpg 20160129_091016.jpg r1 manage 2954.8 K 2016-01-29 - 09:24 MikeGore Clonzilla - First Menu - Pick Begginer
JPEGjpg 20160129_091023.jpg r1 manage 2565.7 K 2016-01-29 - 09:24 MikeGore Pick Disk Image
JPEGjpg 20160129_091030.jpg r1 manage 1748.4 K 2016-01-29 - 09:53 MikeGore  
JPEGjpg 20160129_091152.jpg r1 manage 1575.4 K 2016-01-29 - 09:53 MikeGore  
JPEGjpg 20160129_091201.jpg r1 manage 2450.3 K 2016-01-29 - 09:53 MikeGore  
JPEGjpg 20160129_091318.jpg r1 manage 3244.4 K 2016-01-29 - 09:25 MikeGore Image Name
JPEGjpg 20160129_091402.jpg r1 manage 4209.8 K 2016-01-29 - 09:25 MikeGore Disk to Image
JPEGjpg 20160129_091407.jpg r1 manage 3191.1 K 2016-01-29 - 09:26 MikeGore Check Disks - optional
JPEGjpg 20160129_091415.jpg r1 manage 2315.5 K 2016-01-29 - 09:28 MikeGore Check Saved Image - optional
JPEGjpg 20160129_091418.jpg r1 manage 2529.6 K 2016-01-29 - 09:28 MikeGore Do Not Encrypt Drive
JPEGjpg 20160129_091438.jpg r1 manage 1231.4 K 2016-01-29 - 09:29 MikeGore Clonezilla Command Line summary
JPEGjpg 20160129_091449.jpg r1 manage 1520.3 K 2016-01-29 - 09:30 MikeGore Imaging in progress
JPEGjpg 20160129_091502.jpg r1 manage 2672.1 K 2016-01-29 - 09:30 MikeGore Imaging in progress
JPEGjpg 3._Skip_Mount_Clonezilla.JPG r1 manage 1085.3 K 2017-09-27 - 15:02 CscfHelp Clonezilla help images
JPEGjpg 4._Press_a_key_to_continue.JPG r1 manage 1119.1 K 2017-09-27 - 15:02 CscfHelp Clonezilla help images
JPEGjpg 5._Choose_Expert_mode.JPG r1 manage 2038.7 K 2017-09-27 - 15:02 CscfHelp Clonezilla help images
JPEGjpg 6._Restoreddisk.JPG r1 manage 1951.7 K 2017-09-27 - 15:02 CscfHelp Clonezilla help images
JPEGjpg 7._Reselect_image.JPG r1 manage 1946.7 K 2017-09-27 - 15:02 CscfHelp Clonezilla help images
JPEGjpg 8._Choose_Drive.JPG r1 manage 1509.3 K 2017-09-27 - 15:02 CscfHelp Clonezilla help images
JPEGjpg 9_ICDS.JPG r1 manage 2794.2 K 2017-10-12 - 11:41 CscfHelp  
JPEGjpg Start_1.JPG r1 manage 2636.7 K 2017-10-12 - 12:09 CscfHelp  
JPEGjpg Start_2.JPG r1 manage 3649.6 K 2017-10-12 - 11:41 CscfHelp  
JPEGjpg Start_3.JPG r1 manage 2941.6 K 2017-10-12 - 11:41 CscfHelp  
JPEGjpg Start_4.JPG r1 manage 1577.2 K 2017-10-12 - 11:41 CscfHelp  
Edit | Attach | Watch | Print version | History: r16 < r15 < r14 < r13 < r12 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r16 - 2020-08-25 - MikeGore
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback