Installing Elementary OS Freya on PC with UEFI

Not long ago we learned about the release of the first beta of Elementary OS FreyaAs expected (it is a system that I love) I immediately set about installing it on my laptop (with UEFI) together with Windows but I was pleasantly surprised that I couldn't even boot from my usb (I made a copy of the image with dd). So I had to turn to other alternatives.

Freya

How to install Elementary Freya with EUFI

Before this, in case you do not know the dd command, it is very easy to use, from the terminal we type:

sudo dd if="ubicación de la imagen iso" of="memoria" bs=4M

In general, if we do not have another hard disk or usb connected other than the one we are going to use, this is in "/ dev / sdb", the common block size is 4mb.

We proceed to disable UEFI of the Bios and leave it in Legacy mode, we save and restart booting from memory again, now this time we have to start, and we install like any other. Once installed we activate UEFI again from the Bios, and we started playing.

The easiest thing is to create a bootable memory with a distribution that has support for UEFI that we have out there, in my case I used Linux Mint 17, we are not going to install it or anything we just need to use grub from the usb. We can create it just as we did with the previous one and start from it with UEFI enabled, at the moment grub appears (where it tells us something about installing, testing and other things) we press the «keyC»To enter the console and thus start Elementary.

We indicate the partition where Elementary Freya is installed:

set root=(hd0,gpt6)

If we do not know in which partition we have it installed (first line) we can verify the content of a partition with the command ¨ls¨, for example, in my case my partition is (hd0, gpt6) and by writing:

ls (hd0,gpt6)

It shows me the folders boot, usr, home, etc, which is undoubtedly the content of our partition with Linux. If we just type "ls" it shows us the partitions we have.

Then we load the kernel image with:

linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1

and later:

initrd /boot/initrd.img-3.13.0-29-generic

We can also see what kernel image we have installed with:

ls (hd0,gpt6)/boot

Or simply if we already assign to the variable "root" our partition we can use:

ls /boot

Now we only have to start, and for this we write:

boot

Started Elementary we create a folder named "efi" in "/ boot":

sudo mkdir /boot/efi

And we mount the EFI partition there, this partition is the second on my hard drive:

sudo mount /dev/sda2 /boot/efi

Finally we install "grub-efi" or "grub-efi-amd64" depending on the architecture we have:

sudo apt-get install grub-efi-amd64

We install grub on our partition:

sudo grub-install /dev/sda

And finally, we update grub:

sudo update-grub

It is important that the EFI partition is mounted in "/ boot / efi" or it will mark errors. And voila we can restart and check grub on our boot.

References:

http://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux

https://help.ubuntu.com/community/Grub2/Installing


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

28 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Cristian said

    bios >> security or boot >>
    1. Disable boot security
    2. or enable Other legacy OS and EUFI

    and it is over…

    1.    Esau said

      Hello, I did not know that there was an option to activate both modes at the same time, but many bios configuration by the user is very limited by the manufacturer, at least in my laptop (a vaio) that option does not come 🙂

      1.    23youtinYT said

        My vaio does bring that option ...: v 🙂

    2.    elav said

      It is not so simple. That depends on the computer, for example, with my Lenovo Laptop I activate Legacy mode and I can install any distro without problem. However, I have a friend with a Dell Laptop that even if you put it in Legacy mode, you have to install with UEFI YES or YES. From what I repeat, it depends on the PC that is.

      1.    Jorge said

        That's true. What's more, it doesn't even let you install Windows if you don't have EFI or UEFI enabled, as it happens with some PCs or Laptops. I recently had to see a case like this, therefore, I had to format everything, including the rescue partitions (yes, at that level).

        Imagine if you had to install Windows and Linux on the same PC. A big headache.

      2.    gnulinuxc said

        I think that the most problematic in that sense are the ASUS, I have many friends with asus and some have not been able to install linux no matter how much they keep going

      3.    ramon said

        fuck it's not that simple, tell me. All the versions of 2013 more or less in its v.x86_64 in any distro, putting the example of: fedora 20, opensuse 13.1 (I don't know if 12.3), chakra discards, delicates all with uefi / boot or without acpi, just me leave the 2012 ones behind.

      4.    Cristian said

        That of having to format everything, it is not because of the eufi bios, nor the secure boot, it is because of the gpt: silvando2

    3.    mario said

      Boot security is from MS and is added by manufacturers to notebooks, it has nothing to do with UEFI (intel), which is found on any modern motherboard. If disabled, the benefits of GPT and the 64-bit bootloader are lost, and it will use MBR, with the limit of 2 TB and four primary partitions.

      1.    Esau said

        Maybe I forgot to clarify some things, as I mentioned above I did it because Elementary OS Freya did not boot on my laptop (Sony Vaio Fit 14E SVF14215CLB), I don't know if it is my laptop or the distro, so what I did was install it on With the bios in legacy mode, it is evident that when changing the bios with UEFI it would not be recognized and it would start windows automatically, so I recover the system so that grub can do its work and place the corresponding files in the EFI partition and be recognized. Because of the secure Boot issue, I have it disabled. As they said above, it is worth mentioning that UEFI and Secure Boot are not the same, ("Secure Boot" the headache of many D:)

      2.    Daniel Guerrero said

        This is very wrong, in fact installing windows and linux in gpt is possible (with uefi activated and others) by configuring the dual boot in grub. To show my laptop 😀

      3.    mario said

        Daniel Guerrero no one doubts that a dual boot is possible, you can even add OSX if you have a Gigabyte motherboard. I said that if UEFI is disabled, the GPT advantages are lost, and in fact it will read as an unknown primary partition, and it will be necessary to delete everything as Jorgicio said above. The EFI boot system is separate from grub, it is embedded in the firmware and aided by the EFI partition.

  2.   Cocolium said

    Yo

    1.    Cocolium said

      I want the link to the wallpaper, damn it, you can't edit what I wrote before, greetings.

  3.   androbit said

    That of the EUFI is a nuisance without a doubt, and especially that pre-installed windows 8 comes with a lot of unnecessary partitions, I don't know what the hell they thought when they implemented that.

    1.    Cristian said

      on the contrary, it is a great improvement [the secure boot, the bios eufi, it only means that it has a cool interface] windows from vista has eliminated viruses, although there are people who take care to let them pass by deactivating account control, the same as in linux, emulating sudo or root mode, and having said this, the other security link was the beginning, so blocking this was the other security breach they needed ...

      I remember that nowadays an updated windows has no virus, but if it may be full of malware, the same as linux or android, someone has ever stopped to fill the list of permissions that an insignificant android app asks us ... like if to use the calculator you must give it permission to scan your contact list: spla

      1.    Esau said

        I do not see how it is linked, the "Windows 8 pre-installed comes with a lot of unnecessary partitions" with "Windows from Vista has eliminated viruses." In my opinion, I agree that the extra Windows recovery partitions are not useful to me, but beware "they are not useful to me" but I am not saying that they are useless for everyone, for a user without much knowledge of the subject they can be of great help If your system is corrupted, with a few simple clicks you can return it to its original state without requiring a technician to fix your problem, which many times call themselves technicians just because they know how to click more than a normal user and they also charge you for clicked D: (I don't globalize, there are those who have all my respect, they know how to do their job and well).

        I don't have much to talk about secure boot, I'm not saying that validating the software that starts on a computer is a bad idea, but coming from Microsoft and the way it has been used (I mean in technical and marketing fields) leaves a lot to think about.

        "... the eufi bios, it just means it has a cool interface", I don't want him to bother or anything, but I think we can't make comments like this without having valid and good arguments to support them. Perhaps for the end user this could be true, some changes could not mean more than a new interface and way of operating with it, but for people who are dedicated to continuous development and research, let them see how that certain feature is operating and working Inside, that they work with it, the advantages and disadvantages that its implementation entails both now and in the future, mean much more, the evolution of a new technology or its retrogression.

        It seems to me that this article explains a little about how UEFI works and what it comes to improve:

        http://logica10mobile.blogspot.mx/2012/10/la-revolucion-silenciosa-uefi-y-el.html

  4.   Oscar said

    Hi, I don't know if you can help me with a problem, install Elementary OS Luna and everything is fine, but now I can't enter the bios, when I turn it on I press F2 to enter and nothing, it keeps loading Elementary I don't know what to do.

    1.    let's use linux said

      Hello!
      The ideal place to ask these types of questions and get the whole community to help you is here: http://ask.desdelinux.net
      A hug, Pablo.

    2.    Renato said

      try to use the arrows or if you have a num pad too
      sometimes it changes to F8
      in any case reformat with the same OS Luna Live CD and it would fix only

  5.   Renato said

    brother I want to have Freya in the UEFI
    I am willing to remove the windows
    mi pregunta es
    the Freya can run in the UEFI? and if you can, how to do it?
    my laptop is a lenovo z500

  6.   Gerson said

    Hello everyone; Do you know of any way to dual boot on computers with UEFI and W8.1 x64 pre-installed?
    I have downloaded the thousands of tutorials that are on the internet and the hundreds of videos, I am not a newbie in the subject and with none I have been able to make me install Kubuntu or OpenSUSe or KAOS in dual boot.
    I have modified the UEFI to Legacy, I do the partitions, boot with DVD or USB to see if I achieve something but nothing.
    From Windows I do it with Wubi and when it goes to 95% it tells me that the necessary permissions were not granted.
    Before I had 2 machines with BIOS and I had dual boot due to work issues, especially MSOffice, which with LibreOffice was out of date on Windows machines and by programs of my profession that only exist for Windows.
    The computers are a Lenovo G40-30 80FY and an HP Pavilion x360 (2-in-1 with touchscreen) both with 500GB SATA drives and 3GB low-latency DDR4 RAM.
    I don't want to stay in Windows, but with the UEFI I will have to resign myself.
    Thanks if you can think of any help.

  7.   Kevin Reyes Espinoza (El Kevo) said

    Excellent! Just what I was looking for. We will immediately test with that one that the stable version is already there.

    Greetings from Huajuapan de León, Oaxaca!

  8.   Ezekiel said

    Excellent article!!! a question: what is the conky you use on your desktop? it is very cute !!! I want it!!! haha

  9.   roperez19 said

    I just installed Elementary Os Freya on my lenovo z400 laptop with UEFI enabled and it didn't give me any problems at all, I just changed the boot order by putting the linux system - which appears as Ubuntu - first so that it boots with Grub2 and detects the others operating systems, which in my case are Windows 8.1 and Mint, detecting them perfectly in the UEFI.

  10.   logos said

    I do not understand, and it is not that it is gross but I think this is explained for those who already know more about the basics in Linux, or at least already know the basics, because when starting the steps I already lost, you say we open terminal and do this What terminal will we open if we are in windows and we have created bootable usb with all the existing tools but nevertheless we cannot boot from the usb because it simply does not boot, the usb is taken as the first to start in the order of the bios, etc etc etc , it just won't boot, my problem seems to be with UEFI, but as I say this guide doesn't explain in detail, you just say let's go to terminal to do this.
    Do you mean that we must go to terminal in Linux to start doing these steps?

  11.   Fabian said

    Thank you! this tutorial was the only thing that rescued my Elementary !!