ReekyMarko’s no-nonsense installation guide for Arch Linux (UEFI)

Create an installation medium and boot to it. Make sure you have internet access. When I’m referring to /dev/sdx1, it’s the ESP partition and /dev/sdx2 is the root partition. Let’s get started.

 

Create a 500 megabyte ESP partition with a boot flag using the partitioning tool of your choice (I use cfdisk). It has to be in the same drive as the root partition. Then proceed to format and mount the partitions

mkfs.fat -F32 /dev/sdx1
mkfs.ext4 /dev/sdx2
mkdir /mnt
mount /dev/sdx2 /mnt
mkdir /mnt/boot
mount /dev/sdx1 /mnt/boot

 

Install base and chroot into it

pacstrap -i /mnt base
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt

 

Uncomment your language in /etc/locale.gen and then set your timezone

nano /etc/locale.gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
locale-gen
timedatectl set-timezone Europe/Helsinki
timedatectl set-ntp true
hwclock --systohc --utc

 

Uncomment [multilib] in /etc/pacman.conf if you’re running a 64-bit system. Then update the repository list and install sudo.

nano /etc/pacman.conf
pacman -Syy sudo

 

Set the root password and create another user

passwd
useradd -m -g users -G wheel,storage,power -s /bin/bash myusername
passwd myusername

 

Setup sudo rights for your new user by uncommenting %wheel ALL=(ALL) ALL in visudo

EDITOR=nano visudo

 

Install your bootloader

bootctl --path=/boot install
nano /boot/loader/loader.conf

 

Here’s some good defaults to loader.conf

default arch
timeout 4
editor 0

 

Also create an entry in /boot/loader/entries/arch.conf. Here’s an example file

title          Arch Linux
linux          /vmlinuz-linux
initrd         /initramfs-linux.img
options        root=PARTUUID=56eb211d-324f-487b-9594-4554ff40ba5e rw

The only thing you need to change is the root partuuid. You can get it by running ls -l /dev/disk/by-partuuid
 

Exit chroot, unmount the drives and reboot to your new installation

exit
umount /mnt/esp
umount /mnt
reboot

 

Now, if everything went smoothly, you have a working Arch Linux installation. Now it’s time to install video drivers and a graphical desktop enviroment or a window manager of your choice. If you have any problems, you can email me at reekymarko@reekynet.com and I will try to help you. Thanks for sticking around, your choice of operating systems is rock solid 😉