Download Article Download Article

Do you want to install Arch Linux, but you don't want to give your current operating system? Not all programs work for Linux. You may want to keep a copy of your current operating system for the most flexibility. Arch Linux is an extremely lightweight Linux distribution intended for advanced users. Installing and using Arch Linux requires a little bit of time and familiarity with Linux commands. However, going through the process is very rewarding and you will likely learn a lot about how Linux is structured. This wikiHow teaches you how to install an Arch Linux dual boot.

Part 1
Part 1 of 10:

Checking the System Specs

Download Article
  1. Arch Linux is an incredibly lightweight system that doesn't need a lot to run. However, it does have a few system requirements. You can check your system specs using one of the following steps: [1] [2] [3]
    • Windows: Open the Windows Start menu. Then click the Settings/Gear icon. Click the System option. Then click About .
    • Mac: Click the Apple Icon in the menu bar at the top. Then click About this Mac .
    • Linux: Open the Terminal or command line and type "hwinfo" and press Enter .
  2. Most modern computers have UEFI motherboards. However, if you are using a particularly old computer, your motherboard may only be using legacy BIOS. If this is the case, you can still install Arch Linux, but the process may be different than what is covered in this wikiHow article.
    Advertisement
  3. Arch Linux is designed to work with x86-64 architectures. Make sure you have a 64-bit processor. [4]
  4. Arch Linux only needs 512 MB of RAM to run. However, you will need more than 512 MB of RAM to run the bootable Live media disk needed to install Arch Linux.
  5. The Arch Linux install is less than 2 GB. However, you will want to allow some extra space to install apps and programs. You will need to partition your hard drive to create space to install Arch Linux. It is recommended you allocate at least 10 GB of hard drive space for Arch Linux.
  6. In addition to a standard partition for your Linux installation and file system, Linux also uses swap space when your memory gets full. The amount of swap space you need depends on how much RAM your computer has.
    • If you have less than 2GB of RAM, it is recommended you allocate double the amount of RAM you have for your swap space. If you have between 2 - 8 GB of RAM, you can allocate swap space that is equal to the amount of RAM you have. If you have greater than 8 GB of RAM, it is recommended you allocate a minimum of 4GB of RAM for swap space. Enter the amount of swap space you want to allocate (i.e. "4G") and press Enter .
  7. It is crucial that you have an internet connection when installing Linux. You can use a Wi-Fi connection, but a wired connection will be much easier to use during the installation process.
  8. Advertisement
Part 2
Part 2 of 10:

Creating a Bootable Install Disk

Download Article
  1. It is recommended you use a USB drive that has at least 4 GB of storage space on it.
    • Note: Formatting the USB drive will erase all data on the USB drive. So make sure you back up all data you wanna keep before formatting the hard drive.
  2. Alternatively, if you want an easier way to install Arch Linux, you can download the Calam Arch installer from here . The Calam Arch installer uses a graphical user interface and allows you to pick your own packages and desktop environment. More advanced users can use the following steps to download the official Arch Linux ISO file.
  3. Balena Etcher is a free program that can write an ISO file to a USB disk to create a bootable USB drive. Use the following steps to download Balena Etcher:
    • Go to https://www.balena.io/etcher/ in a web browser.
    • Click the green download button to download Etcher for your operating system.
    • Open the BalenaEtcher setup file in your web browser or Downloads folder.
    • Click I Agree to agree to the license agreement.
  4. This is the USB drive you will use to install Arch Linux. Insert it into any free USB port on your computer.
  5. It has an icon that resembles a green cube. Click the Balena Etcher icon to open Balena Etcher.
    • Alternatively, you can use Rufus to flash a USB drive.
  6. It's the blue button on the left. Click this option to select an ISO file.
  7. You can select the Arch Linux file or the Calam Arch installer file. They are most likely in your Downloads folder. Select the file and click Open .
  8. It's the blue button in the middle. This allows you to select a USB drive.
  9. Click your USB drive in the menu and click the blue button that says "Select" in the lower-right corner.
  10. It's the blue button on the right. This starts flashing the ISO file to your USB drive. Allow a few minutes for the process to complete. Once the process is complete. you can use the USB drive to boot your PC.
  11. Advertisement
Part 3
Part 3 of 10:

Partitioning your Hard Drive

Download Article
  1. Arch Linux needs a minimum of 2 GB to install. You will probably want to create some extra hard drive space for apps and files. It is recommended you allocate at least 10 GB of hard drive space for Arch Linux. Also, keep in mind that you will be creating a separate swap space partition during the installation process. Make sure you include the amount of swap space you need in your Linux partition. Partitioning is one of the crucial steps when you are setting up a system for dual boot. Make sure you know how the new operating system is going to be installed.
  2. In Windows, you can do so using the Disk Management utility. Do not partition the EFI System partition or the Recovery partition. Use the following steps to partition your hard drive in Windows:
    • Click the Windows Start menu.
    • Type "Disk Management".
    • Click Create and format hard disk partitions .
    • Right-click your Windows partition.
    • Click Shrink Volume and wait for it to query your hard drive.
    • Enter the amount of space you want to allocate in MB (i.e. 10000 for 10 GB) in the third box down.
    • Click Shrink
  3. On Mac, you can partition your hard drive using Disk Utility. You will also need to select " ext4 " as the file system. Use the following steps to partition your hard drive on Mac: [5]
    • Click the magnifying glass icon in the upper-right corner.
    • Type "Disk Utility" in the search bar.
    • Click Disk Utility.app .
    • Select your main hard drive in the menu to the left.
    • Click the plus (+) icon below the pie chart.
    • Click Add Partition .
    • Type a name for the partition.
    • Click the Format pop-up menu and select " ext4 " as the format.
    • Enter the size of the partition or click and drag the control dot in the pie chart.
    • Click Apply
    • Click Continue .
    • Click Done .
  4. In Linux, you will need to use the Terminal or command line to partition a disk drive. You will need to identify which hard drive you want to partition. Then you will need to create a label for the partition and then enter the command to partition the hard drive. Use the following steps to partition a hard drive in Linux: [6]
    • Press Ctrl + Alt + T to open the Terminal or command line.
    • Type sudo parted -l and press Enter to display a list of hard drives.
    • Identify which hard drive you want to partition.
    • Note the path next to "Disk" (i.e. "/dev/sda").
    • Type sudo parted [path to disk] and press Enter (i.e. "sudo parted /dev/sda")
    • Type mklabel gpt and press Enter to set a disk label as "gpt."
    • Type {{kbd|mkpart primary ext4 1 MB xx GB]] and press Enter . Replace "xx" with the number of GB you want to allocate to the new partition.
  5. Advertisement
Part 4
Part 4 of 10:

Booting from a USB Drive

Download Article
  1. To boot into the BIOS, start by rebooting your PC. You'll need to press one of the function keys on your keyboard as your computer reboots. Which button you need to press varies between different computer models. It will usually say which button to press in the lower-right comer. If your computer boots up too fast, you can use the following steps to boot into the BIOS in Windows:
    • Click the Windows Start menu.
    • Click the Settings/Gear icon.
    • Click Update & Security .
    • Click Recovery in the menu to the left.
    • Click Restart under "Advanced Setup."
    • Click Troubleshoot .
    • Click Advanced Options .
    • Click UEFI Firmware Settings .
    • Click Restart .
  2. The BIOS menu is arranged differently depending on the make and model of your motherboard. Use the arrow keys on the keyboard to navigate the BIOS menu. Press Enter to make a selection. The boot order section is usually listed under "Boot" or something similar. Locate the boot order options in the BIOS menu.
  3. This ensures your computer will attempt to boot from the USB drive before booting into your main operating system. If no USB drive is inserted, your computer will boot into your operating system as normal. Follow the instructions on your BIOS menus to change the boot order of your drives.
  4. After changing the boot order, locate the option to Save your BIOS Settings and exit. It will usually say Save and Exit or something similar.
  5. Now that your BIOS is set to boot from a USB drive first, your system will boot Arch Linux live from the USB drive instead of booting into your normal operating system.
    • Mac Users: If you are using a Mac, restart your Mac. When you hear the startup sound, press and hold the Option key. The Startup Manager will start scanning for other devices it can boot from.
  6. Advertisement
Part 5
Part 5 of 10:

Verifying your System Requirements

Download Article
  1. It's the first option in the Arch Linux startup menu. Use the arrow keys to navigate the menu. Press Enter to make a selection. It do a brief system check and then it will display the command line.
  2. This should display a list of items in the EFI firmware directory. This confirms that you are using a UEFI motherboard. If you receive an error message that the directory does not exist, you are not using a UEFI motherboard and you will need to use a different installation process.
  3. This will ping the Google server several times and display the time it took to connect. This confirms that you have an internet connection. Press Ctrl +C to stop pinging. If you are not connected to the internet, you can connect to your modem or router directly using an Ethernet cable, or you can use the following steps to connect to Wi-Fi: [7]
    • Type iwctl and press Enter .
    • Type device list and press Enter to display a list of network interfaces.
    • Type station [interface name] scan to scan for Wi-Fi networks. Replace "[interface name]" with the interface you want to use (i.e. "station wlan0 scan".)
    • Type station [interface name] get-networks and press Enter to display a list of networks.
    • Type station [interface name] connect [Wi-Fi Network Name] and press Enter . Replace "[Wi-Fi Network Name]" with your network SSID.
    • Enter your Wi-Fi password and press Enter .
    • Type station [interface name] show and press enter to confirm you are connected to Wi-Fi.
    • Type exit and press Enter to exit iwctl.
  4. This updates and sets the system time and date.
    • You can confirm the system time and date by typing timedatectl status and pressing Enter .
  5. Advertisement
Part 6
Part 6 of 10:

Partitioning Your Hard Drive for the Linux Installation

Download Article
  1. This displays a list of all disks and partitions along with the partitions for your other operating system.
  2. Use the keys on the keyboard to navigate the list of partitions. Press Enter to select a hard disk partition. It should say what each partition is being used for. The partition you made for Arch Linux will most likely be called "Free Space."
    • If you are asked to select a label for the hard disk, select "GPT."
  3. This creates a new Partition.
  4. This allocates 512 MB for your Linux root installation.
  5. Use the keys on the keyboard to navigate the menu at the bottom. Select Type and press Enter .
  6. It's near the top of the List menu. This sets the type as EFI so that your computer can boot from this hard drive installation.
  7. This drive should contain the remaining free space available after allocating 512 MB for the root file system. Select the remaining free space partition and press Enter.
  8. The amount of swap space you need depends on how much RAM your computer has. Enter the amount of swap space you need (i.e. 4G) and press Enter .
    • If you have less than 2GB of RAM, it is recommended you allocate double the amount of RAM you have for your swap space. If you have between 2 - 8 GB of RAM, you can allocate swap space that is equal to the amount of RAM you have. If you have greater than 8 GB of RAM, it is recommended you allocate a minimum of 4GB of RAM for swap space. Enter the amount of swap space you want to allocate (i.e. "4G") and press Enter .
  9. Use the keys on the keyboard to navigate the menu at the bottom. Select Type and press Enter .
  10. This creates a new partition for your Linux Swap.
  11. You can do so using the same method as above. Select the remaining "Free Space" partition and select Type at the bottom. Then select Linux Filesystem as the type.
  12. It's the second to last button at the bottom of the screen. Select it and press Enter . This writes your partitions in the format you specified.
    • You will be asked if you are sure you want to write the disk partitions. To confirm, type "yes" and press Enter . Once you write your disk partitions, you cannot undo that change. Be sure to double-check your system partitions to make sure they are correct. If you write to the wrong disk drive, you could mess up the installation for your other operating system.
  13. This exits the cfdisk utility.
  14. Advertisement
Part 7
Part 7 of 10:

Formating Your Linux Partitions

Download Article
  1. This displays all the drives and partitions on your computer. Note the path of the entire disk drive next to "Disk" at the top. Also note the path of each partition listed below "Device." You can see the partition type listed below "Type."
    • Use this command any time you review the path to a partition.
  2. To do so, type mkfs.fat -F32 [path to partition] and press Enter . Replace "[path to partition]" with the path to your root installation drive (i.e. "mkfs.fat -F32 /dev/sda1").
  3. To do so, type mkfs.ext4 [path to partition] and press Enter . Replace "[path to partition]" with the path to your Linux File system drive (i.e. "mkfs.ext4 /dev/sda2").
  4. To do so type mkswap [path to swap space] and press Enter . Replace "[path to swap space]" with the path to the swap space partition (i.e. "mkswap /dev/sda2").
  5. To do so, type swapon [path to swap space]" and press enter. Replace "[path to swap space]" with the path to the swap space partition (i.e. "swapon /dev/sda2")
  6. To do so type mount [path to file system] /mnt and press Enter . Replace "[path to file system]" with the path to the file system partition (i.e "mount /dev/sda3 /mnt").
  7. To do so, type mkdir /mnt/boot and press Enter .
  8. To do so, type mount [path to EFI system] /mnt/boot and press Enter . Replace "[path to EFI system]" with the path to the EFI partition.
  9. Advertisement
Part 8
Part 8 of 10:

Installing Arch Linux

Download Article
  1. To do so, type pacstrap /mnt base linux linux-firmware and press Enter . This may take a while. Now might be a good time to take a break.
  2. You will need this program to edit a few files during the installation process. To install the VI text editor, type pacman -Sy vi and press Enter
  3. This generates a new UUID file which gives a unique identifier to the file system. To generate the fstab file type genfstab -U /mnt >> /mnt/etc/fstab and press Enter .
    • You can check the resulting fstab file by typing vi /mnt/etc/fstab and pressing Enter . You should see some new UUIDs being generated for each file system. To exit out of the VI text editor, type :q! and press Enter .
  4. To do so, type arch-chroot /mnt and press Enter .
  5. You can use the following steps to set your local time zone:
    • Type ln -sf /usr/share/zoneinfo/ and press Tab to display a list of all possible regions.
    • Add your region to the end of the command as listed in the list of regions and press Tab .
    • Type Y and press Enter to list all locations in your region.
    • Add the location nearest to you as listed in the list of locations to the end of the command.
    • Add a space followed by /etc/localtime to the end of the command and press Enter . The entire command should look something like ln -sf /usr/share/zoneinfo/America/Denver /etc/localtime
  6. To do so, type hwclock --systohc and press Enter .
  7. To do this, you will need to open the "locale.gen" file which lists all possible language variables. Uncomment the language locales you want to use by deleting the hash (#) in front of them. You will also need to write down the locales you want to use. The locale for American English is "en_US.UTF-8 UTF-8." Use the following steps to set yoru language variable:
    • Type vi /etc/locale.gen and press Enter .
    • Scroll down and find the locale(s) you want to use.
    • Highlight the hash in front of it and press Delete (not backspace).
    • Write down the locale(s) you want to use.
    • Type :x and press Enter to save the locate file.
    • Type locale-gen and press Enter to run the locale file. It should list the locales you uncommented.
  8. You will be creating a new locale configuration file in the "/etc" directory. Use the following steps to do so.
    • Type vi /etc/locale.conf and press Enter to create a new file.
    • Press "i" to switch to Insert mode.
    • Type LANG= followed by your locale(s) (i.e. "LANG=en_US.UTF-8").
    • Press "Esc" to return to Command mode.
    • Type :x and press Enter to save and exit VI.
  9. By default, Arch Linux uses a standard US keyboard layout. If you want to set a different keyboard layout, you can use the following steps to do so:
    • Type ls /usr/share/kbd/keymaps/**/*.map.gz and press Enter to list all possible keyboard layouts.
    • Identify which keyboard layout you want to use before the ".map.gz" file extension (i.e. "de-latin1" for German).
    • Type vi /etc/vconsole.conf and press Enter to create a new vconsole configuration file.
    • Press "i" to switch to Insert mode.
    • Type keymap= followed by the keymap you want to use (i.e. "keymap=amiga-us").
    • Press "Esc" to switch to command mode.
    • Type :x and press Enter to save and exit VI.
  10. This will be your computer's name on a network. Use the following steps to create a new hostname for your computer:
    • Type vi /etc/hostname and press Enter .
    • Press "i" to enter Insert Mode.
    • Type a hostname for your computer. It can your computer name, or anything you want.
    • Press "Esc" to enter Command mode.
    • Type :x and press Enter to save and exit.
  11. After creating a local host name, you will need to update the host file. Use the following steps to do so. Replace "[Tab]" with a Tab press on the keyboard and replace "[hostname]" with the hostname you chose for your computer. Use the following steps to update your host file:
    • Type vi /etc/hosts and press Enter to open the Hosts file.
    • Press "i" to enter Insert mode.
    • Type 127.0.0.1 [Tab] localhost just below the first 2 lines at the top of the file.
    • Type ::1 [Tab] [Tab] localhost in the next line down.
    • Type 127.0.1.1 [Tab] hostname.localhost [Tab] hostname on the next line down. If you have a static IP address replace "127.0.1.1" with your static IP address.
    • Press "Esc" to enter Command mode.
    • Type :x and press Enter to save and exit.
  12. Advertisement
Part 9
Part 9 of 10:

Adding New Users

Download Article
  1. To do so, type passwd and press Enter . Then type your root user password and press Enter . Then type your password again and press Enter .
  2. To do so, type useradd -m [username] and press Enter . Replace "[username]" with the user's username they will use to log in to Arch Linux. [8]
    • The "-m" option creates a separate home directory for the user.
    • If you want to add the user to a group, you can add "-G" followed by the group name after the "useradd" command.
    • If you want to create a custom home directory for the user type "-d" followed by te path to the user's home directory after the "useradd" command.
  3. To do so, type passwd followed by the user's username and press Enter . Then type the user's password and press Enter . Retype the user's password and press Enter .
  4. Advertisement
Part 10
Part 10 of 10:

Settings Up a Dual-Boot Manager

Download Article
  1. This allows you to boot back into Arch Linux upon rebooting. To install the GRUB bootloader, type pacman -S grub efibootmgr and press Enter . Then press "y" when prompted and press Enter .
  2. This allows you to find the Windows setup so that you can create a dual-boot system. To install OS prober, type pacman -S os-prober and press Enter . Type "y" when prompted and press Enter .
    • To test if OS Prober is properly installed, simply type "os-prober" after the installation is complete. If you get no error messages, it is properly installed.
  3. To do so, type grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=GRUB and press Enter . This command installs GRUB using x86_64 architecture. It also specifies the boot directory.
  4. To do so, simply type mkdir /mnt2 and press Enter . This creates a new directory called "mnt2" which will be used to mount the partition with the other operating system you want to dual-boot.
  5. To do so, type mount [path to partition] /mnt2 and press Enter Replace "[path to partition]" with the path to drive that your other operating system is installed on (i.e. "mount /dev/sda2 /mnt2). This mounts that partition to the newly created "mnt2" folder.
  6. To do so, type mkconfig -o /boot/grub/grub.cfg and press Enter . This will generate the GRUB configuration file automatically. OS-Prober should detect the other operating system you are dual-booting and report that it found that operating system.
  7. This exits back to the root user.
  8. This reboots your computer. Upon rebooting, you should boot into the GRUB menu. You should see Arch Linux as your first selection, Advanced Options as your second option, and your other operating system as your third option. Select which operating system you want to use. When you boot into Arch Linux, you will be asked to log in with your username and password. [9] [10]
  9. Advertisement


Expert Q&A

Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 52,170 times.

      Is this article up to date?

      Advertisement