Arch Linux based distro installation guide step by step for beginners to avoid common mistakes and ensure a smooth setup process

Introduction
Arch Linux is a powerful, lightweight, and highly customizable Linux distribution. However, its installation process is famously manual, which can be intimidating for beginners. This guide will walk you through the installation of an Arch Linux-based distribution step by step, focusing on avoiding common mistakes and ensuring a smooth setup. We’ll cover everything from preparation to post-installation steps, with detailed explanations and examples.
Prerequisites
Before starting, ensure you have the following:
A computer with UEFI firmware (most modern systems).
A USB drive (at least 8GB).
A stable internet connection (Ethernet is recommended over Wi-Fi for the installation).
Basic knowledge of terminal commands (we’ll explain everything).
Common Mistake to Avoid: Skipping Preparation
Many beginners jump straight into installation without checking hardware compatibility or backing up data. This can lead to data loss or a failed installation. Always back up important data and verify that your hardware is compatible with Arch Linux.
Step 1: Download the Arch Linux ISO
The first step is to download the official Arch Linux ISO from the
Arch Linux website
. Verify the checksum to ensure the file is not corrupted.
Example: Verifying the ISO Checksum
On Linux or macOS, you can use the terminal:
sha256sum archlinux-*.iso
On Windows, you can use PowerShell:
Get-FileHash -Algorithm SHA256 archlinux-*.iso
Compare the output with the checksum provided on the Arch Linux download page.
Step 2: Create a Bootable USB Drive
Use a tool like
Balena Etcher
or
dd
(on Linux/macOS) to write the ISO to your USB drive.
Example: Using
dd
on Linux/macOS
First, identify your USB drive’s device name (e.g.,
/dev/sdX
). Be very careful here—wrong device can wipe your main drive.
lsblk
Then, write the ISO (replace
/dev/sdX
with your actual device):
sudo dd if=archlinux-*.iso of=/dev/sdX bs=4M status=progress && sync
Common Mistake to Avoid: Wrong Device Path
Using the wrong device path in
dd
can permanently erase data. Double-check with
lsblk
before proceeding.
Step 1: Booting from the USB Drive
Insert the USB drive and reboot your computer.
Enter your BIOS/UEFI settings (usually by pressing F2, F10, F12, or Del during boot).
Disable Secure Boot (Arch Linux doesn’t support it).
Set the USB drive as the first boot device.
Save and exit.
You should see the Arch Linux boot menu. Select “Arch Linux archiso x86_64 USB” and press Enter.
Step 2: Verify Boot Mode
Once booted, verify that you’re in UEFI mode:
ls /sys/firmware/efi/efivars
If this directory exists, you’re in UEFI mode. If not, you may need to restart and enable UEFI in your BIOS settings.
Common Mistake to Avoid: Legacy BIOS Mode
Arch Linux works best with UEFI. If you’re in Legacy BIOS mode, the installation will be more complicated. Always use UEFI.
Step 3: Connect to the Internet
For the installation, a wired connection is recommended. If you’re using Wi-Fi, use
iwd
(iNet wireless daemon) to connect.
Example: Connecting to Wi-Fi with
iwd
# Start iwd
sudo systemctl start iwd

# Use iwctl to connect
iwctl
[iwd]# station wlan0 scan
[iwd]# station wlan0 get-networks
[idW]# station wlan0 connect SSID
Enter your Wi-Fi password when prompted.
[iwd]# exit
Verify the connection:
ping archlinux.org -c 4
Common Mistake to Avoid: Not Checking Internet Connection
A failed installation is often due to no internet connection. Always verify with
ping
.
Step 4: Update System Clock
Use
timedatectl
to ensure the system clock is synchronized:
timedatectl set-ntp true
Step 5: Partitioning the Disk
This is the most critical step. We’ll use
fdisk
for partitioning. For UEFI, you need at least two partitions: EFI System Partition (ESP) and root partition.
Example: Partitioning with
fdisk
Assume your disk is
/dev/sda
. Replace with your actual disk.
sudo fdisk /dev/sda
Inside
fdisk
:
Type
g
to create a new empty GPT partition table.
Type
n
to create a new partition.
For the EFI partition: Partition number: 1, First sector: (press Enter for default), Last sector: +512M.
Type
t
and select partition 1, then type
1
for EFI System.
Type
n
to create a new partition for root.
Partition number: 2, First sector: (press Enter), Last sector: (press Enter for rest of disk).
Type
w
to write changes and exit.
After partitioning, format the partitions:
# Format EFI partition as FAT32
sudo mkfs.fat -F32 /dev/sda1

# Format root partition as ext4
sudo mkfs.ext4 /dev/sda2
Common Mistake to Avoid: Partitioning Errors
Beginners often forget to set the partition type for ESP or format partitions incorrectly. Always double-check partition types and formats.
Step 6: Mounting the Partitions
Mount the root partition first, then the EFI partition:
sudo mount /dev/sda2 /mnt
sudo mkdir /mnt/boot
sudo mount /dev/sda1 /mnt/boot
Step 7: Install Base System
Use
pacstrap
to install the base system and other essential packages:
sudo pacstrap /mnt base linux linux-firmware vim sudo
Common Mistake to Avoid: Forgetting Essential Packages
Beginners often forget to install
sudo
or a text editor like
vim
. This can make post-installation configuration difficult.
Step 8: Generate fstab
Generate an fstab file to define how disk partitions are mounted at boot:
sudo genfstab -U /mnt >> /mnt/etc/fstab
Verify the generated fstab:
cat /mnt/etc/fstab
Step 9: Chroot into the New System
Change root into the newly installed system:
sudo arch-chroot /mnt
Step 10: Configure Time Zone and Locale
Set your time zone:
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock –systohc
Generate locales:
# Edit /etc/locale.gen and uncomment your desired locale, e.g., en_US.UTF-8
vim /etc/locale.gen

# Generate the locale
locale-gen

# Set the system language
echo “LANG=en_US.UTF-8” > /etc/locale.conf
Step 11: Configure Network
Set a hostname:
echo “myarch” > /etc/hostname
Create hosts file:
cat > /etc/hosts <> /mnt/etc/fstab
Verify the generated fstab:
cat /mnt/etc/fstab
Step 9: Chroot into the New System
Change root into the newly installed system:
sudo arch-chroot /mnt
Step 10: Configure Time Zone and Locale
Set your time zone:
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock –systohc
Generate locales:
# Edit /etc/locale.gen and uncomment your desired locale, e.g., en_US.UTF-8
vim /etc/locale.gen

# Generate the locale
locale-gen

# Set the system language
echo “LANG=en_US.UTF-8” > /etc/locale.conf
Step 11: Configure Network
Set a hostname:
echo “myarch” > /etc/hostname
Create hosts file:
cat > /etc/hosts <