Need help adding Clonezilla to grub2 menu
by Tem2 from LinuxQuestions.org on (#5P91E)
My ubuntu 20.04 system boots from my sda5 partition.
I have a folder called "clonezilla" on the root of that partition.
I have one file in that folder named: "clonezilla-live-2.7.1-22-amd64.iso"
I have the following 40_custom file in my /etc/grub.d folder:
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry "clonezilla" {
set isofile="/clonezilla/clonezilla-live-2.7.1-22-amd64.iso"
loopback loop (hd0,5)$isofile
linux (loop)/live/vmlinuz boot=live components config findiso=$isofile ip=frommedia toram=filesystem.squashfs union=overlay username=user
initrd (loop)/live/initrd.img
}
Question 1: When I run update-grub should output of the command show that it found "clonezilla" as a menu entry?
Question 2: What am I doing wrong? The clonezilla menu entry doesn't appear when I reboot.
Thank you.
I have a folder called "clonezilla" on the root of that partition.
I have one file in that folder named: "clonezilla-live-2.7.1-22-amd64.iso"
I have the following 40_custom file in my /etc/grub.d folder:
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry "clonezilla" {
set isofile="/clonezilla/clonezilla-live-2.7.1-22-amd64.iso"
loopback loop (hd0,5)$isofile
linux (loop)/live/vmlinuz boot=live components config findiso=$isofile ip=frommedia toram=filesystem.squashfs union=overlay username=user
initrd (loop)/live/initrd.img
}
Question 1: When I run update-grub should output of the command show that it found "clonezilla" as a menu entry?
Question 2: What am I doing wrong? The clonezilla menu entry doesn't appear when I reboot.
Thank you.