Menu

Modify Clonezilla iso to partially automate backups

GlennPM
2025-08-29
2025-09-03
  • GlennPM

    GlennPM - 2025-08-29

    I have a dual boot laptop and want to simplify backups of the entire laptop disk to an external drive. I boot the clonezilla.iso using a Ventoy modified external hard drive. I believe that since I am not using grub to boot the clonezilla ive iso, that I will be modifying "Z:\boot\grub\grub.cfg". I have the iso mounted on Z:\ in windows.
    I have done number of searched but most were too complicated for me and none used Ventoy, https://www.ventoy.net/en/index.html to boot the image.

    The last two times I backed up with the live iso, I got this set of commands "to use the next time ..."

    /usr/sbin/ocs-sr -q2 -c -j2 -z9p -i 0 -sfsck -scs -senc -p reboot savedisk 2025-08-17-09-img sda

    • I will be backing up the entire /dev/sda hard drive sda1 through sda8 which boots either Ubuntu or Windows 10.
    • I'm booting Ventoy-Clonezilla from a hard drive /dev/sdb via Ventoy.
    • I want to use /dev/sdc1 as the mnt location for Clonezilla for this operation, i.e. /home/partimag
    • I want the backups to be located also on the sdc external drive on an ntfs file system partition at /media/WS4TB-Dell/clone-bak/
    • No incription, no fsck checking and using fast compression options.

    Thanks

     
  • Steven Shiau

    Steven Shiau - 2025-08-31

    I do not quite understand... So what's your question or issue there?

     

    Last edit: Steven Shiau 2025-08-31
  • GlennPM

    GlennPM - 2025-08-31

    It's most likely a very simple solution. If I boot the live Clonezilla image, I don't understand how I can copy my script into the virtual booted live environment.

    "Mount a working space as /home/partimag. You can use the command "prep-ocsroot" to help you to do that, or use mount command to mount that. E.g. run "mount /dev/sda1 /home/partimag" to use /dev/sda1 as the working dir.
    Copy the custom-ocs to dir /home/partimag."

     
  • Steven Shiau

    Steven Shiau - 2025-08-31

    There are many ways you can do that, e.g.,
    1. First put your script in your USB flash drive.
    2. Setup the network configuration, e.g.,
    sudo ocs-live-netcfg
    then start ssh service by:
    sudo systemctl start ssh
    With that, you can scp the script to your Clonezilla live box.

     
  • GlennPM

    GlennPM - 2025-08-31

    Thanks Steven, I'll try that.

     
  • GlennPM

    GlennPM - 2025-08-31

    I was able to do it by booting Live using Ventoy on one connected USB hard drive, /dev/sdb.
    I then copied my custom-ocs to the root of another USB harddrive, /dev/sdc1

    • mount /dev/sdc1 /home/partimg
    • cd /home/partimag
    • ocs-iso -g en_US.UTF-8 -k NONE -s -m ./custom-ocs

    This created the backup img in the root of /dev/sdc1.
    How could I sym link or --bind? , within my custom-ocs so the image is created in a folder of the device such as:
    /WD4TB-DELL/DELL_BAKS/CloneZ ?

    Thanks!

     
  • GlennPM

    GlennPM - 2025-08-31

    maybe //192..168.?.???/WD4TB-DELL/DELL_BAKS/CloneZ ?

     
  • Steven Shiau

    Steven Shiau - 2025-09-01

    "How could I sym link or --bind?" -> What did you mean by this?

     
  • GlennPM

    GlennPM - 2025-09-01

    I'm trying to direct the backup iso to an ntfs folder location. My attempt at using a UNC path as I posted above, did not work. The image was still created in the root of /dev/hdb1.

    Thanks Steven

     
  • Steven Shiau

    Steven Shiau - 2025-09-02

    " the image is created in a folder of the device such as:
    /WD4TB-DELL/DELL_BAKS/CloneZ ?"
    If /WD4TB-DELL/DELL_BAKS/CloneZ is the samba file server you want to save, then you should use something like:
    mount -t cifs /WD4TB-DELL/DELL_BAKS/CloneZ/ /home/partimag -o user="YOURACCOUNT"

     
  • GlennPM

    GlennPM - 2025-09-03

    Hi Steve, appreciate your help, but this isn't working for me. I've decided to just save the images to the root of my drive and then move it after the operation has completed.

    Thanks

     
    👍
    1

Log in to post a comment.