If you are here, then
Welcome !
You are interested in experiencing the world of Arch Linux in all its glory. Arch Linux is a Rolling Release distribution with a rich learning experience that follows a simple the K.I.S.S. philosophy. K.I.S.S being an anagram for "Keep it Simple, Stupid". I'm here to go in depth with the basic tools you need to install Arch Linux on your laptop or your PC.
However, playing with Linux there is always some hurdles so before you do decide to install it, For my fellow laptop users.. if you have a Laptop with replaceable hardware. I recommend you invest onto these things. they will make the installation of Arch Linux less painful, and for Future distributions you decide to run with in the Future.
Also It's worth noting that you should look into the Wi-Fi card on your system and just make sure it works out the box with the Linux Kernel. if not invest onto a Intel Wi-Fi card for your laptop. these Wi-Fi cards have drivers built into the kernel and will work on all future distros.
Let's Begin.
First Download the iso from the website and if you are on Windows download this free utility callled Rufus to install the ISO on your Flashdrive. you will need at least an 8GiG Flash Drive. though 16GiBs
Arch ISO: https://www.archlinux.org/download/
Rufus: https://rufus.akeo.ie/downloads/rufus-2.10p.exe
if you wish to install it via UEFI then continue on, I will separate the part of the installation for UEFI and Legacy Users. to load up the ISO you MUST have SECURE BOOT turned off. and you must have your BiOS set to UEFI or Legacy Mode depending on how you wish to install this. however in all honesty Legacy is the easiest to install. I'm going to go somewhat indepth so you'll see what I mean.
Now Let's REALLY begin.
Load up the UEFI or Legacy mode whatever you wish to install.
Now if you don't know if you are in UEFI mode or not type in
ls being the command for "List" in BASH. if this directory is populated, you are in UEFI mode. if not, you are in Legacy mode.
once you get into the command line, before we even do anything we must make sure we have connection to the internet.
so type in
if it works you can select your access point and connect to it.
to test your internet and see if it works we must first ping google.
type in
if you get 3 packets back Congratulations! you have internet. this will make the installation much more simpler.
Now the default keyboard layout is US. but if you wish to load up something else, type in
now whatever you wish to use then type in
X being whatever layout you want.
Now update the system clock type in
Now this section is somewhat controversial. the Block Device (Hard drive) Partition Section of the install. the reason I say it's controversial is because to make my life simpler, for Legacy Installs I personally make 2 partitions a Swap Partition and a ROOT partition in my legacy installs.. (A Swap Partition is only beneficial for laptops if you are just installing this on a desktop don't make a swap partition) if you are installing this on a UEFI mode, you must have two partitions, your ROOT partition and your EFI System Partition. (Now if you are installing Arch on a laptop in UEFI mode then you must have 3 partitions, your SWAP, ROOT, and EFI partition)
I use cfdisk for my partitioning. now before you do anything I must advise you RIGHT NOW. if you are doing this on a second hard drive and you already have a Windows installed on another disc, unplug your windows HDD / SDD from your motherboard.. it will save you the headache of accidentally deleting your Windows install and blaming me. I take no responsibility if you delete your Windows install by accident.
now let's begin. to check which hard drive are plugged in type in,
this command will list the block devices (Hard drives) detected by Linux. to know which is which in all honesty the Linux Flash drive that is running Arch will already be mounted. to know which hard drive is which you will know by the storage size.
now for the partitioning. if you are using UEFI mode you must have 3 partitions (3 if you are using a laptop, 2 if you are using a desktop) so type in
X being the letter of the hard drive you wish to partition.
now a GUI will pop up in the command line. now use the arrow keys to navigate through this GUI.
click on NEW. for your partition size, for a UEFI install you must have an EFI System Parition, and the minimum you can parition for it is 512 Mega-Bytes. so type in
now click on TYPE, and select 'EFI System' then click on WRITE then type in 'yes'. your EFI System Partition has been made. if you are in Legacy mode (AN EFI SYSTEM PARTITION ISN'T REQUIRED you will just have to make an ROOT PARTITION AND A SWAP [IF YOU ARE USING A LAPTOP] )
Now we must repeat this process and make a ROOT partition.
NEW >> You can partition it however you want in size if you just want to use up the rest of your hard drive space just press Enter >> by default it's going to make it a Linux Filesystem parition (Which is what you want) then >> WRITE and type in 'Yes' your Root Parition has been made.
OPTIONAL FOR LAPTOP USERS
SWAP PARTITION
repeat the process. if you are using your laptop to install Arch before you even make your ROOT partition make the swap partition. NEW >> the Size of your Swap should be double the amount of RAM you have) >> Click TYPE then >> Linux Swap >> Write >> type in 'yes' then click quit. now let me reiterate,
if you are installing Arch via UEFI on your laptop you should have a total of 3 partitions, 2 if you are on a desktop, your EFI Parition and your ROOT.
- EFI System Partition - 512 MIBs
- (Optional for Laptop users) Swap Parition - should be the size of twice your RAM. if you have 4GiBs of RAM your Swap should be 8GiBs)
- ROOT parition (the left over space you have on your drive)
If you are installing Arch via Legacy you should have one partition, TWO if you are on a laptop
- (OPTIONAL FOR LAPTOP USERS) SWAP Parition (once again Double your RAM)
- ROOT Parition (Left over space)
Now we must format the reformat the partitions and make the file systems for each drive.
for EFI System Paritions they must use the FAT-32 File System.
to do this we must type in
x being the hard drive letter you are doing this on, y being the partition, once again to know which partition is which, type in lsblk you will know which is which by the storage sizes.
now for the ROOT partition we wish to use the EXT4 file system.
once again x being the hard drive letter you got from the lsblk command, y being the partition number.
OPTIONAL (LAPTOP USERS)
we must make our swap partition filesystem.
(x being your hard drive y being your swap partition)
WE'RE ALMOST GONE GUISE!
for UEFI Users your EFI parition MUST have a /boot directory to do this, type in
then we must mount the EFI system partition by typing in
(last time x being your hard drive y being your the parition of your EFI system partition)
