I'm running a home server, Lubuntu 15.10 that I want to backup monthly through clonezilla.
To do this, I want to load clonezilla from an iso to ram (monthly with cron, through the installed grub bootloader at /boot), run a script in clonezilla and then reboot to Lubuntu. For now, I just wanted to test this by loading in Clonezilla normally, without a script.
Things I've done so far:
Downloaded clonezilla iso
Change /etc/default/grub
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=false
Changed /etc/grub.d/40_custom (taken from the clonezilla website, isofile path changed & added savedefault)
sudo grub-set-default Ubuntu (also tried with grub-set-default 0)
sudo update-grub
sudo grub-reboot Clonezilla
The system reboots into Clonezilla, but when I choose the reboot option, it reboots back into Clonezilla.
No matter how many times I reboot, it always reboots back to clonezilla. The only way to fix this, is that I go into the clonezilla command line, mount my hdd, chroot into it and then do grub-set-default Ubuntu.
So somehow, Clonezilla ignores the grub-set-default option in reboot.
Anything that I missed? Need to do differently?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
UPDATE
I can now also say that grub-reboot does not work even when booted from a seperate partition instead of an iso. I followed instructions from clonezilla website and put all clonezilla files on a seperate partition, edited grub config files with new menu entry to boot from this partition. But same effect: grub-reboot does not reset.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm running a home server, Lubuntu 15.10 that I want to backup monthly through clonezilla.
To do this, I want to load clonezilla from an iso to ram (monthly with cron, through the installed grub bootloader at /boot), run a script in clonezilla and then reboot to Lubuntu. For now, I just wanted to test this by loading in Clonezilla normally, without a script.
Things I've done so far:
The system reboots into Clonezilla, but when I choose the reboot option, it reboots back into Clonezilla.
No matter how many times I reboot, it always reboots back to clonezilla. The only way to fix this, is that I go into the clonezilla command line, mount my hdd, chroot into it and then do grub-set-default Ubuntu.
So somehow, Clonezilla ignores the grub-set-default option in reboot.
Anything that I missed? Need to do differently?
UPDATE
I can now also say that grub-reboot does not work even when booted from a seperate partition instead of an iso. I followed instructions from clonezilla website and put all clonezilla files on a seperate partition, edited grub config files with new menu entry to boot from this partition. But same effect: grub-reboot does not reset.
I believe it's because Clonezilla live uses its own live system, and that's why it ignores your grub settings on your existing GNU/Linux system.
Steven.