2

I can't boot to the Ubuntu 14.10 ISO I have on my drive (running Ubuntu 14.04 as my main OS btw). I added these lines to the bottom of /etc/grub.d/40_custom:

menuentry 'ubuntu-iso' {
    set isofile="/boot/ubuntu-14.10-desktop-amd64.iso"
    loopback loop (hd0,1)$isofile
    linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject
    initrd (loop)/casper/initrd.lz
}

The Ubuntu ISO is at /boot/ubuntu-14.10-desktop-amd64.iso, and I've verified its checksum. /dev/sda1 is mounted at /boot, which is why I've done (hd0,1)$isofile above.

Then I run sudo update-grub. The new menu entries show up in the grub menu screen, but when I select it and try to boot it just boots to my existing OS instead of the ISO.

A.B.
  • 90,397
user779159
  • 421
  • 2
  • 6
  • 13
  • I followed the instructions at https://help.ubuntu.com/community/Grub2/ISOBoot to find the steps I tried above. – user779159 Mar 30 '15 at 12:34
  • Just an idea. menuentry "ubuntu-iso" { – A.B. Mar 30 '15 at 12:42
  • Is vmlinuz.efi correct? – A.B. Mar 30 '15 at 12:45
  • 1
    Please [edit] your question and clarify where your /boot is mounted. Is it a separate partition? Is it on /dev/sda1? ALso, please post the generated /boot/grub/grub.cfg file or at least the relevant menu entry. – terdon Mar 30 '15 at 13:07
  • 2
    Grub is before anything is mounted by operating system. So is /boot a mount point or an existing folder in sda1. If a folder it should work. If a mount point then you need to remove the /boot and just use path you see from an external drive without /media/$USER portion. – oldfred Mar 30 '15 at 15:51

1 Answers1

1

Forgive me if I'm wrong, but if /dev/sda1 is already mounted at /boot, wouldnt you get a redundant /boot in your path when you're also specifying it in the $isofile variable? I think GRUB is looking for the image in /boot/boot/, so maybe try changing to:

set isofile="ubuntu-14.10-desktop-amd64.iso"

Snorer
  • 26