Menu

Run Clonezilla's ISO in GRUB2

Help
Vampy
2010-05-24
2013-04-05
  • Vampy

    Vampy - 2010-05-24

    I would like to run Clonezilla's ISO with GRUB2 but I can't find out what I'm doing wrong.
    I followed the instructions at http://clonezilla.org/clonezilla-live/livehd.php and I added in my "/etc/grub.d/40_custom" file the following:
    "
    menuentry "Clonezilla live (Backup)" {
    set isofile="/home/alain/Isos/clonezilla-live-1.2.5-17-amd64.iso"
    loopback loop $isofile
    linux (loop)/live/vmlinuz boot=live union=aufs nolocales noprompt vga=788 ip=frommedia toram=filesystem.squashfs findiso=$isofile
    initrd (loop)/live/initrd.img
    }
    "
    Then I run "update-grub2" to update your grub2 config, but when GRUB2 loads there's no Clonezilla entry (but only the Ubuntu 10.04 and Windows OS installed).

    I installed clonezilla-live-1.2.5-17-amd64.iso since I have a 64bit processor (Intel E8500) which is located in "/home/alain/Isos/"

    Thanks.

     
  • Vampy

    Vampy - 2010-05-25

    No one? :)

     
  • Steven Shiau

    Steven Shiau - 2010-05-25

    So what's the content of /boot/grub/grub.cfg?

    Steven.

     
  • Vampy

    Vampy - 2010-05-25

    I really don't know why, but now it works (I'm blushing, but I don't even know what was wrong).

    Anyhow, even if it's of no use now, I am posting grub.cfg anyway.

    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      load_env
    fi
    set default="0"
    if [ ${prev_saved_entry} ]; then
      set saved_entry=${prev_saved_entry}
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    function savedefault {
      if [ -z ${boot_once} ]; then
        saved_entry=${chosen}
        save_env saved_entry
      fi
    }
    function recordfail {
      set recordfail=1
      if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
    }
    insmod ext2
    set root='(hd1,7)'
    search --no-floppy --fs-uuid --set cd1b2614-9f2f-4a10-8b11-926c6d55d9c0
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=1024x768
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    insmod ext2
    set root='(hd1,7)'
    search --no-floppy --fs-uuid --set cd1b2614-9f2f-4a10-8b11-926c6d55d9c0
    set locale_dir=($root)/boot/grub/locale
    set lang=it
    insmod gettext
    if [ ${recordfail} = 1 ]; then
      set timeout=-1
    else
      set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/05_debian_theme ###
    insmod ext2
    set root='(hd1,7)'
    search --no-floppy --fs-uuid --set cd1b2614-9f2f-4a10-8b11-926c6d55d9c0
    insmod tga
    if background_image /boot/grub/amazing-black_1024x768.tga ; then
      set color_normal=white/black
      set color_highlight=magenta/black
    else
      set menu_color_normal=white/black
      set menu_color_highlight=black/light-gray
    fi
    ### END /etc/grub.d/05_debian_theme ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    echo "Adding Windows Operating Systems to GRUB 2 menu" >&2
    cat << EOF
    menuentry "Windows Operating Systems (XP & Seven)" {
    set root=(hd0,1)
    chainloader (hd0,1)+1
    }
    menuentry 'Ubuntu 10.04 - Linux' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd1,7)'
        search --no-floppy --fs-uuid --set cd1b2614-9f2f-4a10-8b11-926c6d55d9c0
        linux   /boot/vmlinuz-2.6.32-22-generic root=UUID=cd1b2614-9f2f-4a10-8b11-926c6d55d9c0 ro   quiet splash
        initrd  /boot/initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu 10.04 - Linux (modalità ripristino)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd1,7)'
        search --no-floppy --fs-uuid --set cd1b2614-9f2f-4a10-8b11-926c6d55d9c0
        echo    'Caricamento Linux 2.6.32-22-generic...'
        linux   /boot/vmlinuz-2.6.32-22-generic root=UUID=cd1b2614-9f2f-4a10-8b11-926c6d55d9c0 ro single 
        echo    'Caricamento ramdisk iniziale...'
        initrd  /boot/initrd.img-2.6.32-22-generic
    }
    menuentry "Clonezilla live (Backup)" {
        set isofile="/home/alain/Isos/clonezilla-live-1.2.5-17-amd64.iso"
        loopback loop $isofile
        linux (loop)/live/vmlinuz boot=live union=aufs nolocales noprompt vga=788 ip=frommedia toram=filesystem.squashfs findiso=$isofile
        initrd (loop)/live/initrd.img
    }
    EOF
    ### END /etc/grub.d/40_custom ###
    

    Thanks for your time and I'm sorry that I made you waste some time reading this thread.
    Have a great day.

     
  • Steven Shiau

    Steven Shiau - 2010-05-25

    No problem. Please let us know if you encounter the problem again.
    Enjoy!

    Steven.

     
  • Vampy

    Vampy - 2010-05-26

    Sure, I will.

    Thanks again.

     

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.