Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install Arch Linux Without Losing Your Mind

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can install Arch Linux without losing your mind — the key is to follow the official guide step-by-step, understand what each command does, and keep a backup of your data. This guide walks you through a typical UEFI installation with a simple ext4 root partition, using the official archinstall script for a smoother experience. You'll need a spare computer or virtual machine, a USB drive (at least 2 GB), and a stable internet connection.

What You'll Need

  • A computer that supports UEFI (most made after 2012) with Secure Boot disabled or set to "Other OS"
  • A USB drive (at least 2 GB) to create the bootable installer
  • Another computer to download the ISO and create the USB
  • An internet connection (Ethernet is easiest, but Wi-Fi works with extra steps)
  • Basic familiarity with the command line (you'll type commands, but you don't need to be an expert)

Step-by-Step

  1. Download the Arch ISO from the official Arch Linux download page. Choose the latest version (usually named archlinux-xxxx.xx.xx-x86_64.iso).
  2. Create a bootable USB using a tool like Rufus (Windows), balenaEtcher (Windows/macOS/Linux), or the dd command on Linux. For example, on Linux: sudo dd bs=4M if=/path/to/arch.iso of=/dev/sdX status=progress — replace /dev/sdX with your USB device (be careful not to overwrite your hard drive).
  3. Boot from the USB — restart your computer, enter the boot menu (usually by pressing F12, F2, or Esc during startup), and select the USB drive. You'll see an Arch boot menu; choose "Arch Linux install medium" and press Enter.
  4. Set your keyboard layout (if you're not using US English). For example, for a German layout: loadkeys de-latin1. For a list of layouts, type ls /usr/share/kbd/keymaps.
  5. Connect to the internet — if you have Ethernet, it should work automatically. For Wi-Fi, use iwctl (interactive wireless tool):
    1. Type iwctl to enter the interactive prompt.
    2. Run device list to see your wireless device (e.g., wlan0).
    3. Run station wlan0 scan then station wlan0 get-networks to list networks.
    4. Connect with station wlan0 connect "YourNetworkName" and enter the password when prompted.
    5. Exit with exit.
  6. Verify internet connection with ping -c 4 archlinux.org. If you get replies, you're good.
  7. Update the system clock with timedatectl set-ntp true.
  8. Partition your disk. Use lsblk to see your disks (e.g., /dev/sda or /dev/nvme0n1). We'll create two partitions: an EFI system partition (ESP) and a root partition. Use gdisk /dev/sda (or cfdisk for a simpler menu). For a basic UEFI setup:
    1. Create a new partition table (GPT) if not already.
    2. Create a partition of 512 MiB with type EFI System (code ef00).
    3. Create a second partition using the rest of the disk for Linux filesystem (code 8300).
    4. Write changes and exit.
  9. Format the partitions. Format the EFI partition as FAT32: mkfs.fat -F32 /dev/sda1. Format the root partition as ext4: mkfs.ext4 /dev/sda2.
  10. Mount the root partition with mount /dev/sda2 /mnt.
  11. Create and mount the EFI directory: mkdir -p /mnt/boot then mount /dev/sda1 /mnt/boot.
  12. Install base packages using the pacstrap script: pacstrap /mnt base linux linux-firmware vim sudo networkmanager. This may take a few minutes.
  13. Generate the fstab file (file system table) with genfstab -U /mnt >> /mnt/etc/fstab. Check it with cat /mnt/etc/fstab to ensure everything looks right.
  14. Change root into the new system with arch-chroot /mnt.
  15. Set the time zone: ln -sf /usr/share/zoneinfo/Region/City /etc/localtime (replace Region/City, e.g., America/New_York). Then run hwclock --systohc to sync hardware clock.
  16. Set the locale: uncomment en_US.UTF-8 UTF-8 in /etc/locale.gen with vim /etc/locale.gen, then run locale-gen. Create /etc/locale.conf with echo LANG=en_US.UTF-8 > /etc/locale.conf.
  17. Set the hostname (your computer's name): echo myhostname > /etc/hostname. Also add it to /etc/hosts: echo "127.0.1.1 myhostname.localdomain myhostname" >> /etc/hosts.
  18. Set the root password with passwd and enter a strong password.
  19. Install the bootloader (GRUB for UEFI): pacman -S grub efibootmgr, then grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB, then grub-mkconfig -o /boot/grub/grub.cfg.
  20. Enable NetworkManager so your network works after reboot: systemctl enable NetworkManager.
  21. Exit the chroot with exit, then umount -R /mnt to unmount everything.
  22. Reboot with reboot. Remove the USB when prompted. You should boot into your new Arch system with a login prompt.
  23. Log in as root (use the password you set), then create a regular user: useradd -m -G wheel -s /bin/bash username, set a password with passwd username, and give sudo access by editing /etc/sudoers with visudo and uncommenting %wheel ALL=(ALL:ALL) ALL.

Common Mistakes

  • Not checking if Secure Boot is disabled — it can prevent the bootloader from loading.
  • Using the wrong disk when partitioning (e.g., overwriting your main OS). Always double-check with lsblk.
  • Forgetting to mount the EFI partition to /boot before pacstrap — if you miss this, the bootloader installation will fail.
  • Skipping the fstab generation — without it, the system won't know where to mount partitions at boot.
  • Typing the timezone incorrectly — use timedatectl list-timezones to see valid names.

Tips

  • Use the official Arch Wiki as your reference — it's extremely detailed and up-to-date.
  • Keep a smartphone or second device open to the wiki in case you get stuck.
  • If you're new, consider using the archinstall script (type archinstall after booting) — it automates many steps and is officially supported.
  • Make sure to install a desktop environment later (like KDE or GNOME) if you want a graphical interface — this guide only installs a base system.
  • Back up any important data before starting — the partitioning step will erase your disk.

Troubleshooting

If the system doesn't boot after reboot:

  • Check that the EFI partition is mounted correctly during installation (should be /boot).
  • Re-enter the boot menu and select the GRUB entry manually.
  • If you see a black screen, try adding nomodeset to the kernel parameters in GRUB (press 'e' at the GRUB menu and add it to the linux line).

If you have no internet after boot:

  • Ensure NetworkManager is enabled: systemctl enable --now NetworkManager (as root). Then use nmcli device wifi connect "SSID" password "password" to connect.

If you get a "Failed to mount /boot" error:

  • Your fstab may be wrong. Boot from the USB again, mount your root partition, and edit /etc/fstab to correct the UUIDs (use blkid to get correct UUIDs).

If you made a mistake and want to start over: Boot from the USB, mount the root partition, and run arch-chroot /mnt to fix things. You can also re-run the installation from scratch — just repartition and reformat.

Frequently Asked Questions

How long does the installation take?

Typically 30–60 minutes if you follow the steps without errors, depending on your internet speed and typing speed.

Can I install Arch on a system with only UEFI (no BIOS)?

Yes, the steps above are for UEFI. If you have an older BIOS system, the bootloader installation differs (use GRUB with BIOS mode). Check the Arch Wiki for legacy boot.

Do I need to compile anything?

No, the base installation uses precompiled binary packages. Compiling is optional for customizing your kernel or using AUR packages later.

What is the archinstall script?

It's an official guided installer that asks you questions and performs the installation automatically. It's a great option for beginners, but this guide gives you more control.

Can I install Arch on a virtual machine?

Yes, the same steps work in VirtualBox or VMware, but you may need to enable EFI in the VM settings (for UEFI) and use a virtual disk.

How do I get a graphical desktop after installation?

After booting, install a desktop environment like KDE Plasma with pacman -S plasma and then enable the display manager with systemctl enable sddm (for KDE).