- 1 year ago
Clonezilla automated Boot
Clonezilla is an open-source disk cloning and imaging software that can be used to backup and restore disk images. Clonezilla can be used in an automated boot mode, which allows you to create custom bootable media that automatically runs Clonezilla and performs a backup or restore operation without user intervention.
Here are the steps to create a custom Clonezilla boot image and configure it for automated boot:
Download the latest Clonezilla ISO image from the Clonezilla website.
Use a tool like Rufus or Unetbootin to create a bootable USB drive or CD/DVD from the Clonezilla ISO image.
Create a configuration file called
ocs-automated-boot.cfg
in the root directory of the bootable media. This file will contain the options and settings for the automated Clonezilla boot. Here's an exampleocs-automated-boot.cfg
file that performs a disk backup and saves the image to a network share:makefile# Clonezilla ocs-automated-boot configuration file
# Choose language
lang en_US
# Set keyboard layout
kmap us
# Start Clonezilla automatically
autonuke=yes
ocs_prerun="sudo mount -t cifs //server/share /mnt -o username=user,password=pass"
ocs_live_run="ocs-sr -q2 -c -j2 -z1p -i 2000 -p true savedisk backup.img sda"
ocs_postrun="sudo umount /mnt"
# Reboot the system when done
reboot
In this example, the
autonuke
option tells Clonezilla to skip the confirmation prompt and start the backup process automatically. Theocs_prerun
andocs_postrun
options are used to mount and unmount a network share where the backup image will be saved. Theocs_live_run
option specifies the backup command and options.Save the
ocs-automated-boot.cfg
file in the root directory of the bootable media.Boot the target system from the Clonezilla bootable media. The automated backup process should start automatically without any user intervention.
Note that this is just a basic example, and you may need to modify the configuration file to suit your specific requirements, such as using different backup options or saving the image to a different location. It's important to test the automated backup process thoroughly and ensure that the backup image is saved correctly and can be restored if necessary.