• HOW TO: Dual Boot Antergos & Windows UEFI (Expanded)


    I’m primarily posting this more for my own benefit as I have installed two systems with dual boot and if I need to do this procedure again I will have all the information I used compiled into 1 web page rather than 3 or 4.

    Primary Reference (I take no credit for this info simply posting it here for reference and will be editing/expanding upon already known information):
    http://itsfoss.com/dual-boot-antergos-windows-uefi/
    PS: sorry for no screenshots didn’t have time to add them so refer back to this reference for pictures.

    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 of full version of Antergos Linux (which is around 1.6 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 two versions of Antergos Linux ISO. 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 as the name suggests, it comes with minimal packages. Both versions have 32 bit and 64 bit builds. You can download Antergos from the link below:
      https://antergos.com/try-it/

    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.

    Expansion:
    I personally use the following command 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)

    1. 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
    Source:
    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

    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: (Reference link for photos)

    • Now when 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.

    • If you have trouble check out this screenshot tutorial on turning off fast startup in Windows. (see Reference link)

    1. Disable secure boot
      This is a must to do thing for installing any Linux with UEFI boot system. If you won’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, read this article to see how to disable secure boot in Acer laptops. (REFERENCE LINK or quick summary below)

    Expansion:
    I have an Acer and a Lenovo. Getting into BIOS to disable secure boot is different with each manufacturer. With Lenovo 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
      Since 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: Sometimes. Lol. 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 (Possible Bug?):
    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 langauge

    • 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. I have chosen GNOME because it looks awesome when coupled with Numix theme.

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

    • When you come at the screen, here 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. (Reference link photo)

    Side note:
    Using a mb to gb converter is an awesome 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. In here, create a Root partition. Root partition is where the operating system will be installed and so will be the applications. An amount of 15-20 GB should be sufficient for it. But if you could give it more, it will be better.

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

    • Next is to create the /boot/efi partition. Actually, we don’t need to create it. Windows already have 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? (No, so go to reference link) 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 of 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.

    1. 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 su
      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

    1. 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 and enjoy to your heart’s content. 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!
    1. Re-installing Antergos on a Dual Boot System
      This is for anyone with a Antergos/Windows or even 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 even 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, however, 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 else 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.

    Hope this helps! If you have any questions or if there is anything I need to change/add let me know!

  • @linuxhelmet , nice work. It would be a pity if you didn t post it in the wiki…:thumbsup:

    1.Antergos Linux KDE plasma / Gnome 2.Ubuntu 17.10 64bit Unity
    Intel Core2 Duo CPU P8400 2.26GHz‖ RAM 3908 MiB ‖ Dell Inc. 0F328M - Dell Inc. Latitude E6500
    Intel Mobile 4 Series Chipset Integrated Graphics [8086:2a42] {i915

  • @anarch I can’t even figure out how to get into the Wiki much less post anything in it lol. It says auth.0 isn’t configured yet and to do so manually. I don’t even know where to begin on that. Please message me or let me know how to go about posting as I currently don’t know how. :(

  • Yes, I saw the problem to login to the Wiki reported, a little ago. I m afraid we ll have to be waiting for a fix…

    1.Antergos Linux KDE plasma / Gnome 2.Ubuntu 17.10 64bit Unity
    Intel Core2 Duo CPU P8400 2.26GHz‖ RAM 3908 MiB ‖ Dell Inc. 0F328M - Dell Inc. Latitude E6500
    Intel Mobile 4 Series Chipset Integrated Graphics [8086:2a42] {i915

  • Let the wait begin :D Didn’t want to put this how-to as (unsolved) but I guess until the wiki is back up I will.

  • @anarch @linuxhelmet Thank you guys for helping me with the /arch/boot/vmlinuz issue. I have posted a wiki dedicated to the problem, and has not yet had time to work on the details and elaborate on stuff. It would be a great pleasure if you could help build up the wiki page. I’ve also posted an issue on github. I hope this will gain the dev team’s attention and finally solve the problem.

  • @LibreMichael , it s d:+1: one!

    1.Antergos Linux KDE plasma / Gnome 2.Ubuntu 17.10 64bit Unity
    Intel Core2 Duo CPU P8400 2.26GHz‖ RAM 3908 MiB ‖ Dell Inc. 0F328M - Dell Inc. Latitude E6500
    Intel Mobile 4 Series Chipset Integrated Graphics [8086:2a42] {i915

  • I’m so glad everyone has enjoyed the “how-to.” It really makes me happy seeing that my hours of research don’t go to waste. Glad to see your problems worked out @LibreMichael :)

  • Sorry to bump this, but I wanted to make a few corrections/additions for future readers.

    • Do NOT use cat to create a boot image. The proper tool is dd. Set a blocksize based on the device. For most devices 4K is good. You should use something like:
    dd if=antergos.img of=/dev/sda bs=4096
    
    • You may want to sync up the IO system before removing the destination device
    sudo sync
    
    • The drive numbers are partition numbers. You don’t specify a partition because you are writing a disk image (rather than a partition image) and the disk image has a partition table inside it. Also, be very careful using using the old drive identification system since it wasn’t designed for removable devices. You should start using /dev/disk/by-id or /dev/disk/by-label and these names survive a plugging and replugging rather than changing based on what order you plug something in. It can be real easy to have 3 or 4 devices plugged in and write to the wrong one using the old /dev/sd* convention.
    • This is a must to do thing for installing any Linux with UEFI boot system.” – totally incorrect. There are Linux distributions that ship with UEFI keys. You only need to add them as valid - although the process for doing so is dependant on your BIOS. I don’t think Antergos has such an option, but don’t say any Linux!
    • Disk Management Tool? Ughh … we run Linux now! Use GNU Parted to shrink the Windows NTFS partition. That’s why it’s on the Antergos liveCD. Don’t trust Windows to do anything useful!
    • Swap - If you have a ton of RAM (the machine I’m on right now has 192GB of RAM) and SSD storage, then swap will only hurt your SSD. Generally, don’t put swap on SSD drives because you have limited write cycles to SSD and you’ll be replacing the drive much quicker. Buy more RAM or swap to a spinning disk, or make sure you don’t mind replacing the drive (be mindful of what partitions are on your swap disk if its an SSD).
    • Don’t ever turn something off an on. Find out what’s wrong and fix it. Power cycling a system doesn’t fix problems, it just ignores them. More than likely, you just need to be more patient while the system does it’s thing. That Windows mindset is killing the computer industry because people keep rebooting systems rather than fixing bugs.
  • Sorry for the late response uudruid74 but dead thread is long dead. I made this when I was freshly switching from Windows so yes I had a “Windows” mindset and this was also an expansion of someone else’s tutorial. If you want to add/change the wiki be my guest. Just know beforehand this was a SIMPLE tutorial made for people SWITCHING OVER from Windows made to be as EASY to understand as possible. Here’s the link for the wiki. Fix it if it’s such a problem:
    https://antergos.com/wiki/install/how-to-dual-boot-antergos-windows-uefi-expanded-by-linuxhat/

    As for your points I always found cat easier to use, used it for a long time without dire consequences so I see no problem in it. If you see otherwise message me. Yes the wording was a bit off. Fix it in the wiki. Sometimes programs DO force something into swap and if there is NO swap I’ve seen system melt-downs as a result. Yes I’m talking from an SSD build. Had one in a system that had soldered ram and a program decided to use more than it had available ram. The system generally only uses swap when it needs it/runs out of ram anyways so if you have a bunch it doesn’t matter either way. SSDs also now have such long read/write cycles the amount of “harm” is minimal at best. Last I checked they have a 10 year read/write lifespan. That’s nonstop 24/7 10 year writing cycle. Also I have fixed things by turning them off/on again. Had an update bug from Arch/Antergos that caused the screen to freeze and nothing worked. No ttyl, no keyboard, no mouse, no input, nothing. Only by turning it off/on was I able to regain control and fix the broken update.

    Message me if you want to continue this discussion. Don’t continue this thread.

    /rant
    /pointless discussions
    /thread

dual-boot11 re-install1 windows 109 Posts 10Views 5799
Log in to reply