0

I just bought a new laptop "Asus Zenbook UX32L". I had Windows8 preinstalled. But I needed Ubuntu. So I tried to install Ubuntu 14.04 LTS. I totally cleared my HDD and I just clicked Install Ubuntu. After some time I got an error Installer crashed. I didnt understand whats happening so I tried to install Ubuntu 12.04 LTS. This installation crashed too. I had pretty same error, but here, in Ubuntu 12, I was able to see where the installation crashed. It has crashed when it was trying to install grub2. Its new laptop so it had UEFI. Seems like this grub is not appropriate for UEFI. (Although, when installation crashed, it destroyed my Win8, and before Installation Ubuntu didnt see her.)

I have searched a bit and looks like I need to change grub or UEFI, but I didnt get how. And I dont want to break whole computer while changing UEFI.

How can I solve it? As I understand I need at least to upgrade grub to grub-efi on my liveUSB, but dont know how.

11
  • make a efi capable ubuntu usb by using rufus "rufus.akeo.ie" and make sure you use "GPT partiton scheme for uefi computers" for the computer type when creating the usb
    – Prasad RD
    Dec 2, 2014 at 10:25
  • @Dima agree with comment above...use rufus from a windows machine and also go ahead and get 14.04 lts...make sure that you have your bios configured properly for uefi and make sure your HD is formatted for GPT partitioning...you will also need to know the specific keyboard shortcut for your bios to select ubuntu during uefi boot....
    – user175999
    Dec 2, 2014 at 10:56
  • @user175999 I dont have windows anymore. I accedently deleted it. (after crash it somehow cleared all my HDD) I, as I know, its MBR instead of GPT.
    – PepeHands
    Dec 2, 2014 at 11:28
  • I guess we're assuming you used something like unetbootin that didn't preserve the EFI information on the disk. You've got a couple options here, but you'll need a) another computer, b) another flash drive and either enough space on the original drive to store another Ubuntu ISO or enough RAM to hold it, or c) a DVD and a DVD writer. Got any of those handy? Heck, it might be possible with one flash drive and enough RAM to store the ISO, but I make no guarantees if you want to go that way.
    – Chuck R
    Dec 2, 2014 at 11:32
  • @Githlar , yeah, I used exactly unetbootin. Yes, I have another computer and I have 2 and 16 GB flash drives. I have no CD/DVD, so cant use it. I have 8GB RAM on damaged computer
    – PepeHands
    Dec 2, 2014 at 11:49

1 Answer 1

2

Using unetbootin to create a boot disk for a UEFI (I tend to use the term EFI, though it's technically incorrect) system is a common mistake. unetbootin, last I checked is not EFI-aware and only makes BIOS-type boot disks. This is where the problem originates. Since unetbootin creates BIOS-type boots disks, you had to enabled BIOS mode in your EFI in order to boot it, forcing Ubuntu to install in BIOS mode, rather than EFI mode.

So, how do you fix this?

Given your information from the comments, we're going to use your second flash drive as it should be easiest.

  1. Back up your second USB to your other computer. This process will destroy everything on the second drive.
  2. Boot up the Ubuntu drive you've already created, and tell it "Try Ubuntu", we'll be working from the LiveUSB.
  3. Re-download the Ubuntu ISO from releases.ubuntu.com (it will be saved in RAM). Alternatively, if you've got Linux and the ISO on your other PC, you can do this process form there as well.
  4. Once the download is completed, open a terminal.
  5. cd ~/Downloads
  6. Type mount
  7. Now, plug in the second drive and once it shows up as plugged in, run mount again. We're trying to find the device name of the newly-plugged device. You will see a new entry in the second output that didn't exist in the first. It will start with something like this:

    /dev/sdX# on /media/ubuntu/[...]
    

    where X is a letter, # is a number and [...] may be the label of the drive or a random set of characters and dashes. It'll look something like /dev/sdc1, /dev/sdd1, /dev/sde1, etc. This is your second flash drive, hopefully. Take note of the /dev/sdX# part, we'll need it later in step 11.

  8. To verify that it is, in fact your second drive, enter the command ls /media/ubuntu/[...] (The /media/ubuntu/[...] part is what shows up from the second mount command in step 6-7). If it's not the right drive, unplug the second USB again and repeat steps 6-7 again until you're sure you have the right drive and device name (i.e., /dev/sda1).
  9. If the output of the ls command shows the file structure of your second USB drive (the one you're not booting off and the one that you don't mind wiping) then we're ready to go!
  10. At this point, we're going to write this ISO directly to the second USB drive. This next command WILL destroy all data on your drive, so make sure you have backed up the drive and that you have selected the correct device (the /dev/sdX# part).
  11. sudo dd if=ubuntu-14.04-desktop-amd64.iso of=/dev/sdX bs=1M (Note: drop the # off the /dev/sdX# above and just use the /dev/sdX part -- replacing the 'X' with the actual letter of course. /dev/sdc1 becomes /dev/sdc, /dev/sdd1 becomes /dev/sdd, etc.). After this you will have a fully bootable Ubuntu USB drive (both EFI and BIOS).
  12. Now, reboot the computer and change the EFI settings back to EFI mode (i.e., not BIOS/Legacy/CSM mode).
  13. Plug in the newly formatted USB drive and boot off it. That should be all there is to it, Ubuntu should boot and install in UEFI/EFI mode.
20
  • Once I tried to use dd on my second computer, but the new one even didnt see this usb (I mean, it did, but could not start booting from it, but it was in the list of BIOS bootable devices But my second comp saw it, and I could start installing Ubuntu
    – PepeHands
    Dec 2, 2014 at 12:21
  • May be its because I havent done number 11. but I dont inderstand it. Can u explain it more clearly?
    – PepeHands
    Dec 2, 2014 at 12:22
  • And does it matter which Ubuntu I use? Will 14.04 suit?
    – PepeHands
    Dec 2, 2014 at 12:23
  • The dd'ing of the ISO is a fairly new thing. It used to not work like this and required tools such as unetbootin. However, that's no longer the case. And when you did it before it may have been that that particular ISO you were using didn't have EFI capability.
    – Chuck R
    Dec 2, 2014 at 12:24
  • The Ubuntu version doesn't matter.
    – Chuck R
    Dec 2, 2014 at 12:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .