Open /etc/grub.d/40_custom in an editor (as root)
| sudo xed /etc/grub.d/40_custom &
|
Open /boot/grub/grub.cfg in an editor (as non-root user)
| xed /boot/grub/grub.cfg &
|
Copy over the "Linux part".
Copy over the "Windows part". Then close grub.cfg, we don't need that file anymore.
Add "empty menu" entry.
Copy this text to paste later on.
| menuentry 'Restore CLEAN INSTALL' {
set isofile="/home/guru/Downloads/ISO/clonezilla-live-20230426-lunar-amd64.iso"
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset ocs_prerun=\"mount /dev/sda7 /home/partimag\" ocs_live_run=\"/usr/sbin/ocs-sr --batch -e1 auto -e2 -t -r -j2 -k -scr -p poweroff restoreparts win-lin sda1 sda2 sda3 sda4 sda5 sda6\" ocs_live_extra_param=\"\" keyboard-layouts=\"NONE \" ocs_live_batch=\"yes\" locales= vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile
initrd (loop)/live/initrd.img
}
|
Add "Clonezilla restore" entry.