Menu

Clonezilla booted from iso makes grub-reboot permanent

Help
2016-01-26
2016-02-07
  • Timo Verbrugghe

    Timo Verbrugghe - 2016-01-26

    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)
    menuentry "Clonezilla" { 
    set isofile="/home/fileserver/clonezilla.iso"
    loopback loop $isofile 
    linux (loop)/live/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset nodmraid ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts= ocs_live_batch=\"no\" locales= vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile
    initrd (loop)/live/initrd.img
    }
    
    • 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?

     
  • Timo Verbrugghe

    Timo Verbrugghe - 2016-01-27

    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.

     
  • Steven Shiau

    Steven Shiau - 2016-02-07

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.