1 (edited by rv0987@aol.com 2012-01-12 11:25:31)

Topic: [SOLVED] Boot directly from iso file on usb stick

Hi,

I want to create a usb-drive with multiple iso files on them and be able to boot from these directly using grub2.

So I have copied the gparted-iso to the usb and created a grub2 entry like this:

menuentry "Gparted 0.3.9.4" {
        loopback loop /boot/iso/gparted-live-0.3.9-4.iso
        linux (loop)/live/vmlinuz1 boot=live  union=aufs
        initrd (loop)/live/initrd1.img
}

But when I boot this option it fails. The kernels tries to boot and then fails after several retries with this message:

    "unable to find medium containing the live file"

Which boot entry should I use to be able to boot directly from the iso file using grub2?

2

Re: [SOLVED] Boot directly from iso file on usb stick

GParted Live 0.3.9-4 is very old if that version number is correct.  We highly recommend that you use the latest version (currently 0.11.0-7).

Also, check the Live HD web page.  At one time GParted Live had the number "1" appended (e.g., vmlinuz1), but no longer.

3

Re: [SOLVED] Boot directly from iso file on usb stick

Thank you, Using a newer version and following the remakrs on the Live HD page worked for me.

4

Re: [SOLVED] Boot directly from iso file on usb stick

Thanks for reporting back with your success.

And thank you also for editing the initial post to prefix "SOLVED" in front of the title.  This helps others searching for answers to questions.

5

Re: [SOLVED] Boot directly from iso file on usb stick

I got a problem trying to configure 0.11.0-7 from debian wheezy:

menuentry "Gparted Live" {
   set root=(hd0,8)
   set isofile="/ronoaldo/gparted/isos/gparted-0.11.0-7.iso"
   loopback loop $isofile
   linux (loop)/live/vmlinuz boot=live config union=aufs noswap noprompt vga=788 ip=frommedia toram=filesystem.squashfs findiso=$isofile
   initrd (loop)/live/initrd.img
}

"unable to read kernel header"
"you have to load kernel first"

6

Re: [SOLVED] Boot directly from iso file on usb stick

ronoaldo, please create a new post for the problem you are experiencing.