I'm going to put this here because for those of you like me that may not want to jump straight into arch, but want the arch experience, may need a little help installing Manjaro on a UEFI machine. I installed it on my laptop as well (a BIOS machine) and I'll leave that out because even the graphical installer can get the job done, there is no need for a guide on that.
I've spent the last few days scouring for answers to a few minor annoyances that make Manjaro uninstallable (without having to do some manual tweaking) if you have a UEFI machine. In order to save some of you some time if you want to try it out I figured I'd put this together.
First download your Manjaro distribution. I'll recommend using the 3 main ones (XFCE, Openbox, KDE, etc, because I had more headaches with the community ones).
- Burn the .iso to a usb/cd: If you're on linux, just use the "dd" command. If you're on windows I haven't found a reliable way to burn the .iso with UEFI boot other than using Rufus (google it) or installing Cygwin and using "dd" as well.
- Insert flash drive into computer and boot into your UEFI. For ease of use make sure that secure boot is disabled and that UEFI/Legacy or some option thereof is enabled. Now go to your boot options and pick the "UEFI: usb" or your Live CD.
- Once you're booted in, you'll have to use the CLI installer that comes with Manjaro. As of right now its the only one that will allow you to do an EFI install.
- Select "Testing Installer" so that you can do a EFI install
- Go through the install process, its pretty straight forward, and if you can't follow it I'd advise leaving now because fixing the minor problems is more in-depth than the simple installation.
- Now when you get to the "Install Bootloader" option. Make sure that you change to the correct CPU configuration that you have. I run a x86_64 system so I used that option.
- Choose GRUB(2) as the bootloader. [I tried EFIstub instead but had no luck getting it to boot correctly, maybe I'll figure that out later and update this then]
- Don't worry if you get errors, you'll get them every time because the installer doesn't do everything that it should be doing, that's what we're going to have to fix. We do this just so that the correct file system is set in place to make the next steps easier.
- Now go to this web page. There are a few corrections that need to be made to this procedure though, so don't start it yet.
- Do the mounting of your partitions just as it says. When you get to the mounting in order to change your root directory, you need to add:
mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivarsbefore you chroot in. This is one of the issues that will cause issues when installing Manjaro, the directories that are needed to boot EFI don't get loaded during the install (even though its an EFI installer).
- Now chroot into the actual install.
- Before you do any of the "Restoring the bootloader" steps, run: "pacman -S efibootmgr grub dosfstools". You'll be asked to first update the package list (I believe, I kind of didn't pay attention) just say yes, wait for that to be done and run the command again. This is done to make sure that everything that is needed, for these last few steps, is up to date.
- Now follow the "For UEFI" instructions under restoring the bootloader. This should successfully fix the issues that grub has when being installed with the installer and you should be able to exit chroot, exit su, and then reboot the machine.
- Hopefully this is the part where you boot into Grub, choose Manjaro, and start to have your Arch experience.
Since these are really only small corrections to an already existing Manjaro wiki page I'm going to see if I can get these added to the install guide, or the restoring grub guide itself. These EFI problems happen with more than just grub as well, so I might just submit a bug report or something to the Manjaro team to see if they can get those few mounting/binding issues sorted out.
Hopefully that was clear enough to follow. If there are questions I'll try to answer them but I'm new to this as well. I just figured I should share my experience for those who may have issues like I did, and not have to spend days searching the internet to find this stuff.
Links to the webpages that made my install possible:
- Manjaro.org: http://manjaro.org/
- Restoring Grub Bootloader: http://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader
- Fixing the efivars binding: http://superuser.com/questions/678976/installing-arch-linux-issue-with-modprobe-efivars