Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettle/4a15e12d8779c3041a3f71b10d205b88 to your computer and use it in GitHub Desktop.
Save brettle/4a15e12d8779c3041a3f71b10d205b88 to your computer and use it in GitHub Desktop.
Creating a bootable usb stick containing a direct install of Ubuntu 14.04 from Fedora 23

Instructions

  1. Download the Ubuntu 14.04 Live Desktop (64-bit) iso.
  2. Enable virtualization in the BIOS.
  3. sudo dnf install qemu-kvm
  4. Install the UEFI bios images.
  5. As root, boot the ISO in a virtual machine:
isopath=/path/to/ubuntu-14.04.3-desktop-amd64.iso
stickdev=/dev/sdX # Make sure this is set to the device for your usb stick
qemu-kvm -drive file=$stickdev,format=raw -m 2048 -pflash /usr/share/edk2.git/ovmf-x64/OVMF-pure-efi.fd -cdrom $isopath
  1. Select "Install Ubuntu"
  2. Install to the USB stick, overwriting everything that is there (after making sure it is the USB stick and not your hard drive). It should be only drive available and will probably show up as /dev/sda in qemu even though it is a different device on your physical machine.
  3. When the installation finishes, the disk will probably still not be bootable under (presumably due to an installer bug). To fix, follow the instructions here under "Adding an ESP or GRUB-BBP to an installation with GPT" to add both an UEFI System Partition (ESP) and a legacy Bootable BIOS Partition (BPP).

Other references

https://help.ubuntu.com/community/UEFI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment