5

I want to use the most current Clonezilla iso file to backup the partition that contains the Ubuntu operating system that is stored on partition one of my computer's hard drive and I want to be able to boot the iso file from the Grub2 menu.

How would I set this up?

JJ Avila
  • 71
  • 1
  • 4

2 Answers2

2
  1. Put Clonezilla ISO file in root / directory.

  2. Open the terminal and run:

    sudo nano /etc/grub.d/40_custom
    
  3. Insert the following text at the end of the file:

    menuentry "Clonezilla Live" {
     set isofile="/clonezilla-live-2.2.3-10-amd64.iso"
    loopback loop (hd0,1)$isofile
    linux (loop)/live/vmlinuz boot=live live-config nolocales edd=on nomodeset
    ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\"   ocs_live_keymap=\"\" ocs_live_batch=\"no\" ocs_lang=\"\" vga=788   ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile
    initrd (loop)/live/initrd.img
    }
    
  4. Save file, exit and open GRUB's config file:

    sudo nano /etc/default/grub
    

Comment out the line GRUB_HIDDEN_TIMEOUT=0 so it looks like:

#GRUB_HIDDEN_TIMEOUT=0

Make sure that the line GRUB_TIMEOUT=[some number] has a number >0, for example, 10

  1. Save file and exit and run

    sudo update-grub2
    

ADDITIONAL NOTES:

⠀- /clonezilla-live-2.2.3.10-amd64.iso -- change the name of iso file to match the one you have.

⠀- (hd0,1) may be different for you depending on how you installed Ubuntu.

(hdX,Y) X = hard drive #, Y = partition.

⠀You can also see my YouTube video for the above procedure: Boot Clonezilla ISO from Grub2 Menu.

Zanna
  • 70,465
JJ Avila
  • 71
  • 1
  • 4
1

I tried the solution provided by JJ Avila but modification in /etc/grub.d/40_custom didn't worked for me. This what i've done.

  1. Copy clonezilla iso to / (root) directory

    sudo cp /path/to/your_clonezilla_iso /

  2. Run sudo gedit /etc/grub.d/40_custom

EDIT:

menuentry "Clonezilla live" {
set isofile="/clonezilla-live-20160503-xenial-i386.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
} 

save & exit.

  1. Run sudo update-grub2

NOTE: iso in root directory that's why

set isofile="/clonezilla-live-20160503-xenial-i386.iso" 

(Here change name of your iso)

REFERENCE: Clonezilla Live on Hard Drive

d a i s y
  • 5,511