Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Having live media that can boot both ways can be a problem when installing Ubuntu onto currently available Windows 8 computers.

In other words the key advantage to creating UEFI-only bootable USB live media is: You know that it definitely booted and installed via UEFI.

Since Valve has already been doing UEFI-only booting USB installers with their Steam OS and UNetbootin — the top voted alternative to Ubuntu's Startup Disk Creator — isn't UEFI compatible and therefore misleading, I think we should have a separate topic for creating UEFI-only bootable USB live media.

share|improve this question
    
Where the heck is Ubuntu 12.04 .iso should be located for this instruction, then? –  KOTYAR Jun 16 at 19:23
    
@KOTYAR Excuse me, what is you problem? The question was definitely not about how to browse and download from the Ubunutu.com website. –  LiveWireBT Jun 16 at 19:47

2 Answers 2

up vote 4 down vote accepted

Instructions on how to add an overlay filesystem are very much welcome.


Creating the media

Creating UEFI-only booting USB live media is pretty straight forward. Just copy the files to your FAT-formatted USB drive. That's it!

Remember that you may still need to explicitly tell your computer to boot the media via UEFI and that a GPT partition table is recommended .


1. Example via terminal

You can do something like the following if 604A-00EA is your USB drive and you already have p7zip installed:

$ 7z x ubuntu-12.04-desktop-amd64.iso -o/media/$USER/604A-00EA/

You're done if you have only one partition on this USB drive, otherwise you need to flag the partition as bootable e.g. via parted:

# parted /dev/sdX set 1 boot on

Where /dev/sdX would be your USB stick and 1 the partition number that should be used to boot.

2. Example via GUI

  1. Mount the .iso-file and copy the contents over to your USB drive. Press Ctrl+H in Nautilus to display and copy hidden files as well.

    nautilus showing Disk Image Mounter in context menu when .iso-file is selected

  2. Add the boot flag via GParted.

    GParted showing how to manage partition flags

3. Example on Windows

  1. Same as above, just copy files.
  2. Press Windows/Super+X, go to diskmanagement and check if the partition is marked as active.

    Please stop using pre-WWI grade operating systems like XP or 7 for usability's sake.

share|improve this answer

Using dd worked for me, for some reason, the GUI version did not work. So, first, you might want to monitor the progess of dd

Then:

sudo dd if=path/to/image/file | pv | dd of=/dev/device_you_want_to_use

(/dev/device_you_want_to_use will typically be /dev/sdb, but check with df!)

share|improve this answer
    
Creating media this way does not result in UEFI-only bootable media. Emphasis is on the last paragraph of the question: "There is also one advantage to creating UEFI-only booting USB live media: You know that it definitely booted via UEFI." Having media that can boot both ways is a problem when trying to understand and setup a UEFI-bootable Ubuntu installation. –  LiveWireBT Jul 27 at 21:14
    
I see. The weird thing is that this way, I was able to produce a image that booted in UEFI mode (I know that, since the laptop was set to allow only uefi boot and also because of the inital screen). The preffered answer did not work for me, the computer would just not boot with an image created by just copying the files. –  sup Jul 28 at 7:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.