-- MikeGore - 2015-06-04

Clonezilla

Documents

Grad PC Documentation

Basic Overview

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