Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Automatic clonezilla recovery
#3
Thanks a lot for the answer, I have already reached the point of editing the .iso file myself, but I thought there was an option without editing.iso but in principle, if it works, then why not Smile

True, I tried to perform automatic recovery, and you gave an example with automatic cloning, but okay, this will also come in handy. I'll give you my example of the menu, maybe it will be useful to someone.

grub cfg
menuentry "auto restore SSD" {
search --set -f /live/vmlinuz
$linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 noprompt ocs_prerun="mount /dev/sdb3 /mnt" ocs_prerun1="mount --bind /mnt/images /home/partimag/" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -r -j2 -k1 -icds -scr -batch -p reboot restoredisk xubuntu-efi sda" keyboard-layouts="en" ocs_live_batch="yes" locales=en_US.UTF-8 vga=788 ip= nosplash net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
$initrd_cmd /live/initrd.img
}

menuentry "auto restore nvme" {
search --set -f /live/vmlinuz
$linux_cmd /live/vmlinuz boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 noprompt ocs_prerun="mount /dev/sda3 /mnt" ocs_prerun1="mount --bind /mnt/images /home/partimag/" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -r -j2 -k1 -icds -scr -batch -p reboot restoredisk ask_user nvme0n1" keyboard-layouts="en" ocs_live_batch="yes" locales=en_US.UTF-8 vga=788 ip= nosplash net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
$initrd_cmd /live/initrd.img
}

--------------------------------------------------------
isolinux.cfg

label auto restore SSD
MENU DEFAULT
MENU LABEL auto restore SSD
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 noprompt ocs_prerun="mount /dev/sdb3 /mnt" ocs_prerun1="mount --bind /mnt/images /home/partimag/" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -r -j2 -k1 -icds -scr -batch -p reboot restoredisk xubuntu-efi sda" keyboard-layouts="en" ocs_live_batch="yes" locales=en_US.UTF-8 vga=788 ip= nosplash net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
TEXT HELP
* Boot menu for BIOS machine
* Clonezilla live version: 20240408-noble-amd64. © 2003-2024, NCHC, Taiwan
* Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
ENDTEXT

label auto restore nvme
#MENU DEFAULT
MENU LABEL auto restore nvme
# MENU PASSWD
kernel /live/vmlinuz
append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet loglevel=0 noswap edd=on nomodeset enforcing=0 noprompt ocs_prerun="mount /dev/sda3 /mnt" ocs_prerun1="mount --bind /mnt/images /home/partimag/" ocs_live_run="ocs-sr -g auto -e1 auto -e2 -r -j2 -k1 -icds -scr -batch -p reboot restoredisk ask_user nvme0n1" keyboard-layouts="en" ocs_live_batch="yes" locales=en_US.UTF-8 vga=788 ip= nosplash net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
TEXT HELP
* Boot menu for BIOS machine
* Clonezilla live version: 20240408-noble-amd64. © 2003-2024, NCHC, Taiwan
* Disclaimer: Clonezilla comes with ABSOLUTELY NO WARRANTY
ENDTEXT

In this example, xubuntu-efi is the name of the folder with the image files.

!!!Be careful with this approach, the image is restored automatically without asking anything!!!

I apologize for my poor English, I am writing through a translator.
Reply


Messages In This Thread
Automatic clonezilla recovery - by SnowSimba - 05-12-2024, 05:33 AM
RE: Automatic clonezilla recovery - by jmax - 05-13-2024, 03:15 PM
RE: Automatic clonezilla recovery - by SnowSimba - 05-14-2024, 05:24 AM
RE: Automatic clonezilla recovery - by SnowSimba - 05-15-2024, 07:20 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)