3

After downloading Ubuntu 14.04, I would run it from a bootable USB stick.

I already have the bootable USB stick with grub4dos, and I was looking for a 'guide post' with the command to boot Ubuntu 14.04. But I do not found.

My linux.lst (called by menu.lst) contains:

title Run Ubuntu 14.04
find --set-root /BOOT/Linux/ubuntu-14.04.1-desktop-amd64.iso
map /BOOT/Linux/ubuntu-14.04.1-desktop-amd64.iso (0xff) || map --mem /BOOT/Linux/ubuntu-14.04.1-desktop-amd64.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz.efi  file=/cdrom/ubuntu.seed noprompt boot=casper iso-scan/filename=/BOOT/Linux/ubuntu-14.04.1-desktop-amd64.iso quiet splash --
initrd /casper/initrd.lz

Error at Grub console:
Error 15: File not found

Why it not works? What is wrong?

Thnk you all.

[Edited March 9, 2015 as @bummy guided me - Translated from Portuguese with Google Translate]

Ron
  • 20,938
Matt Mello
  • 433
  • 1
  • 5
  • 13

5 Answers5

2

Both do not work. Works only this variant:

title Install Ubuntu 14.04 amd64
find --set-root /iso/ubuntu-14.04-desktop-amd64.iso
map --unmap=0:0xff
map --unhook
root (hd0,0)
map /iso/ubuntu-14.04-desktop-amd64.iso (0xff) || map --mem /iso/ubuntu-14.04-desktop-amd64.iso (0xff) || map --mem --heads=0 --sectors-per-track=0 /iso/ubuntu-14.04-desktop-amd64.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=/iso/ubuntu-14.04-desktop-amd64.iso quiet splash --
errorcheck off
initrd /casper/initrd.lz
errorcheck on
map --unmap=0:0xff
Ron
  • 20,938
2

Looking for a solution, I finally found the error and the correct code to boot it (it still works for me):

title Run Ubuntu 14.04
find --set-root /BOOT/Linux/ubuntu-14.04.1-desktop-amd64.iso
map /BOOT/Linux/ubuntu-14.04.1-desktop-amd64.iso (0xff) || map --mem /BOOT/Linux/ubuntu-14.04.1-desktop-amd64.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz.efi  file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=/BOOT/Linux/ubuntu-14.04.1-desktop-amd64.iso quiet splash --
initrd /casper/initrd.lz

The mistake was the path to ubuntu.seed. The correct path is /preseed (rather than /cdrom).

Notes:

  • It had not worked with an Ubuntu 12.04 (non-LTS) that I had here.

  • Do not forget to change the path "/BOOT/Linux/ubuntu14.04.iso" to the path where your "ISO" file actually is.

References: http://www.rmprepusb.com/tutorials/grub4dos

Thank u all ;)

Matt Mello
  • 433
  • 1
  • 5
  • 13
1

For the record, the below menu.lst starts Ubuntu 16.04 (Xenial) on a 32-bit machine:

title Run Ubuntu 16.04 32-bit
find --set-root /ubuntu-16.04-desktop-i386.iso
map --heads=0 --sectors-per-track=0 /ubuntu-16.04-desktop-i386.iso (0xff) || map --mem /ubuntu-16.04-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz  file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=/ubuntu-16.04-desktop-i386.iso quiet splash --
initrd /casper/initrd.lz

title supergrub2disk iso
map --heads=0 --sectors-per-track=0 (hd0,0)/super_grub2_disk_hybrid_2.02s3.iso (hd32)
map --hook
chainloader (hd32)
boot
dzmanto
  • 371
0

this works for me with grub4dos

kernel /casper/vmlinuz.efi  file=/preseed/ubuntu.seed noprompt boot=casper iso-scan/filename=/ubuntu-14.04.1-desktop-amd64.iso quiet splash --

initrd /casper/initrd.lz

seems similar to use - is ISO your corrupt?

Ron
  • 20,938
SteveSi
  • 11
0

copy .disk, casper, preseed to flashdrive.

gedit menu.lst

title Try Ubuntu without installing
kernel /casper/vmlinuz file=/preseed/ubuntu.seed boot=casper 
initrd /casper/initrd.lz 

title Ubuntu installing
kernel /casper/vmlinuz file=/preseed/ubuntu.seed only-ubiquity boot=casper 
initrd /casper/initrd.lz`

tested on Ubuntu 10.10

Fabby
  • 35,017
darno
  • 1