HOW TO: Dual Boot Antergos & Windows UEFI (Expanded) – by linuxhelmet

HOW TO: Dual Boot Antergos & Windows UEFI (Expanded) – by linuxhelmet

Primary Reference (I take no credit for this info simply posting it here for reference and will be editing/expanding upon already known information from here):

Prerequisites

  1. Back up your data: Most common and often ignored advice. Usually, I keep my documents backed up in Dropbox and pictures and music backed up in Copy cloud storage. It is up to you to decide how to backup your data. Just do not keep important stuff on your system’s hard disk.

  2. Have at least two USB drives: One of live Windows version and the other with live Antergos on it. This will ensure that in case something goes wrong, you can repair or re-install either of the two operating systems.
    Have a very good internet speed: Even if you download the ISO full version of Antergos (around 1.7 GB in size), you’ll still need to have a good internet speed because it requires to download the packages for the installation. The download and the installation take some time. Keep around 30-45 minutes free just for the installation.

Once you have the prerequisites, let’s see how to install Antergos on top of Windows.
Dual boot Windows and Antergos Linux

Let’s go one by one over the steps to dual boot Antergos and Windows.

  1. Backup [optional]


    Always good to have backups. If you want, you can read this article in detail on how to backup data in Windows.

  2. Download Antergos Linux ISO


    There are four versions of Antergos Linux ISO when installing the system. However, no matter which ISO is used, the end result will be the same. One is Antergos Live, around 1.7 GB in size. It comes preinstalled with a number of packages. If you could, prefer to download this one. The second version is Anergos Minimal which is around 450 MB in size and comes with minimal packages. The first two versions can be found here. The third version is here, and it offers an easy way to install Antergos with the latest Nvidia card. The fourth version is here, and it offers additional DE's available in the installer. 

  3. Create a live USB


    Since the article is about dual booting with Windows, you can easily create a live USB in Windows using Rufus or Etcher. To do so, simply download either of the tools and then, for Rufus simply follow the instructions here. For Etcher, simply select the desired ISO and the drive, and then hit "Flash!"

    Rufus

    Rufus

     

    Etcher

Another option is to use the following commands in terminal to create the live USB of Antergos:

sudo su
cd Downloads   (Downloads is where I saved my Antergos ISO)

cat antergos.iso > /dev/sdX

sdX is just a placeholder. Replace the X with your proper location for your flashdrive (in my case this was /dev/sdb)
antergos.iso is also a placeholder. You can right click on the iso and go to “Rename” where you can just copy the name into terminal.

To find out where your flashdrive is located use the following command:
lsblk

 
This will spit out all of your sda/sdb/sdc ect. outputs. Find your usb then replace that with sdX
(As far as I know you won’t need the drive numbers only the drive letters Ex: sdb NOT sdb1)

Create a backup of Windows


Also create a live USB of Windows. It is optional but if you have a spare USB key, better to have a live Windows USB ready. This gives a fall back option.

Expansion:
You can find the Recovery drive creator by opening Control Panel (Windows key + X)
Open Recovery
Click Create Recovery drive
This is where a second USB flashdrive comes in handy for making a backup for Windows 10

  1. Make free space for installing Antergos
    The next thing you need to do is to free up some space where you would install Antergos. Anything above 30 GB should be good. The more, the merrier.
    If you already have several partitions on your hard drive, delete one of them
    (prefer to delete the last one i.e if you have C, D, E and F drives, delete F),
    if you do not have important data on it because all the data on the aid partition will be lost.
    If you have only one drive i.e. C drive, you need to shrink it to free some space.
  • Go to Disk Management tool. You can find disk management tool by searching for ‘disk’ in Control Panel.

  • In the Disk Management tool, right click on the drive which you want to partition and select shrink volume. In my case, I shrank the C drive to make some free space:

  • Now you have some free space to install Antergos. Don’t rush. We still need to do a few things before dual booting Antergos with Windows.

  1. Disable fast startup

    An advisable thing to do before installing Antergos is to disable fast boot in Windows.
  • To disable fast startup, go to Control Panel > Hardware and Sound > Power Options > System Setting > Choose what the power buttons do and uncheck the "Turn on fast startup" box.

  1. Disable secure boot

    This is a must to do thing for installing any Linux with UEFI boot system. If you don’t do this, you might end up with with "no bootable device found" or similar booting issue. Go to UEFI firmware settings and look for Secure Boot option under the Boot tab. Change the value to disable it.
  • disabling secure boot option in UEFI

  • If you do not know where to access it, refer to this tutorial to know how to disable secure boot. If you are using Acer laptops like me, continue reading to see how to disable secure boot in Acer laptops. 

Expansion:
I have an Acer and a Lenovo. Getting into BIOS to disable secure boot is different with each manufacturer. With Lenovo and Dell I believe it is F2 and then you just turn secure boot OFF. In Acer I believe it is F10 and then you have to set a password for your BIOS before it will give you permission to turn secure boot OFF. (Yes it is sometimes a pain to do this as manufacturers don’t like users in the BIOS.)

  1. Change boot order to boot from USB


    By this time you should know how to access UEFI firmware settings. Just go to UEFI boot settings and under the Boot tab, change the boot order to USB or removable disk. This way when you plug in the USB, you will be booted from USB first instead of the hard disk.

  2. Install Antergos

    We have everything set now for the installation. Insert the live USB of Antergos and reboot the system. Since you have changed the boot order to USB, you should be able to boot from Antergos live.

  • FYI, if you see that Antergos live session is not booting in to GUI and you only see commands running, turn it off and on again. I know it’s cliche but it actually works.

Expansion: I have ran into this issue a number of times. I also know that sometimes the cat command you performed earlier ONLY finishes when your terminal looks like this (with no blinking cursor or any commands running):
[[email protected] ~]$ [_]

If it doesn’t you will have to run the command AGAIN and re-install the live USB. I also have found that reformatting the drive to fat32 sometimes helps.

  • Once you are in the live session (default session is GNOME), you’ll be presented with the option to install Antergos.

Expansion:
I have found with the current install process (2/2016) you are presented with Antergos USB for UEFI and Antergos CD/DVD. If you select USB you may get this error:
“antergos error loading \arch\boot\vmlinuz not found”
In which case selecting Antergos CD/DVD should fix the issue.
If you continue to experience an issue feel free to report the bug in these forums.

  • You’ll be presented with a number of screens afterward. You just have to click next in most of them.

    Choose Language

    Some preinstall checks

    Location preference

    Timezone selection

    Keyboard layout

  • At one point, it will ask which desktop environment you want to install. There are six choices. Choose the one you prefer. 

  • Next it will give you the option to install some additional software. You can choose to install them or skip them for the moment. Your choice.

  • Partitioning

    When you come at the screen, select the second option (Choose EXACTLY Where Antergos is Installed). If you choose the first option, you’ll lose Windows. In the second option, we’ll manually edit the partition and tell the system where to install Antergos.

Side note:
Using a mb to gb converter is an great way to calculate how much you want to shrink and define all your partitions.

  • You’ll see a partition table, something like the one below. If you have already made some free space, you should be able to see it. If you have not, just delete some partition (except C drive).

  • Select the free space partition and click on + New. Now, create a Root partition. Root partition is where the operating system and the applications will be installed . An amount of 15-20 GB should be sufficient for it. But if you could give it more, it would be better.

  • The root partition will be type ext4 and type Primary.

  • Next is to create the /boot/efi partition. Actually, we don’t need to create it! Windows already has it. We can just specify the path to it. Just make sure to NOT format it.

Expansion:
Even if you are re-installing Antergos on a dual boot DO NOT format the /boot/efi partition. Only edit it.

  • In the screenshot of partition table, see the /dev/sda2 partition? This is where UEFI settings are and this where the system decides how to boot. The sda number could be different for you, but the label should be ESP and the type fat32. Select it and just add the mount point as /boot/efi

  • So, we have root, we have boot. Now make Swap partition around the size of your system’s RAM. If you have more than 4 GB of RAM, swap memory size should be half of the size of RAM.

Expansion:
Swap is an important part of any system. Without swap memory certain programs can crash or cause errors without it. Swap is a good practice but NOT required. You may go without this step AT YOUR OWN RISK. I always dedicate at least 2-4gb of swap to keep things from going haywire. But to each his/her own.

  • And in the similar fashion, create a Home directory. Home directory is where your documents, downloaded files and music will go.

  • That’s it. We have root, boot, swap and home. We are good to go. Hit on Install now to proceed with the installation:

  • Rest of the things are again a walk in the park. You’ll be asked to enter a username and password. I presume that you know what to do here.

 

Expansion:
There were a few elements I found that the author did forget to mention is after you install Antergos. I will add these steps as well as how to re-install Antergos should something go wrong.

Finding Windows 10 for Grub

Once you are inside your nice new Antergos OS, you may notice that on boot up you are given an option for Antergos or Troubleshooting in grub but NO option for Windows. Don’t freak out your Windows should NOT be gone.

  • Go into Antergos, find terminal and type in the following command:
    sudo os-prober

    (if you don’t have os-prober install it using the following: sudo pacman -S os-prober)

  • Once this is done it should list something similar to what I have below:/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi

     

  • Great! You found it. Now to update your grub so that it can see it.
    Update grub:
    grub-mkconfig -o /boot/grub/grub.cfg

  • Reboot

    Final OPTIONAL Tweaks

Now you should see both Antergos and Windows 10 on /dev/sda2 when you start your machine. You can now use the arrows to select either option. But wait…what if you need longer to decide or you don’t want to have to wait 5 seconds for it to automatically select Antergos?

  • Go to terminal and edit grub for faster/slower countdown:sudo nano /etc/default/grub Your grub file should show up. In nano you can use CTRL + O to save and CTRL + X to exit. Be CAREFUL with this file. To edit your countdown time look for the following lines:

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=“Antergos”

  • You can now change the GRUB_TIMEOUT to the number in seconds you desire. (Don’t use 0 seconds unless you don’t want to be able to select an option!) I personally like a 1 second countdown due to rarely using Windows. My grub looks like the following:

GRUB_DEFAULT=0
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=“Antergos”

  • CTRL + O to Save the document then CTRL + X to exit back into terminal. Next you want to update your grub file by using the following:grub-mkconfig -o /boot/grub/grub.cfg Reboot and your done!

    Re-installing Antergos on a Dual Boot System

This is for anyone with an Antergos/Windows or multi-boot situation in which you need to re-install Antergos. You will need to go back to your live USB you made for Antergos and get into the live desktop. There may be troubleshooting tools with the live media so if you can use those if there is a system problem with Antergos or the troubleshooting options available at grub boot up. If not keep reading.

  • Boot into live media and go through the steps for installing Antergos again.

  • Select the option for:
    “Choose exactly where Antergos is installed”

  • This time, go in and wipe out all of the partitions you created from the earlier steps until you have the same amount of hard drive space that you originally allocated for Antergos.

  • DO NOT delete/format the /boot/efi, Only edit it again.

  • Everything should work the same from here on out. Just follow the instructions above for installing and you should be back up and running in no time.

  • EDIT:  Some Skylake processors (6th generation) have been noted to have issues with the dual boot sequence referred to above.  It is speculated this issue is due to a kernel problem and should be fixed by kernel 4.6.

Sources:
http://answers.microsoft.com/en-us/windows/wiki/windows_10-win_upgrade/how-to-create-a-recovery-drive-for-reinstalling/58df9c7d-84de-4652-9952-8bac34abc6c5

http://www.techrepublic.com/article/be-prepared-create-a-windows-10-recovery-drive/

http://www.fosslinux.com/1234/how-to-create-a-antergos-live-usb-drive-in-windows.htm

https://linuxundich.de/gnu-linux/anwendungen-stuerzen-unter-antergos-ab-adwaita-workaround/

 

Issues with Cnchi

If your problem isn't here, please ask on the Forum

 

*** The above HOWTO is a copy/paste  of linuxhelmet sole work, whom I wish to thank for his contribution.

***Edit 06/06/2016:  linuxhelmet here fixing a few typos and other things.  Thanks anarch for posting this in my behalf!

 

(Visited 57,283 times, 265 visits today)

Pin It on Pinterest

Share This