Installation and configuration documentation of my Arch Linux setup in GitHub Pages.
This page describes how to install a fresh and minimal Arch Linux system for x86_64 machines on a single drive (SSD or HDD).
This installation method has the least amount of dependencies by using systemd-boot as UEFI boot manager and ext4 as file system for the root partition.
Only an EFI configuration is supported.
You can check in which mode you’ve booted: If the folder
/sys/firmware/efi
exists, the kernel has booted in EFI mode, else it’s booted in BIOS mode.
Go to https://www.archlinux.org/download/ and download the most recent iso file
You can use lsblk -f
to determine the drive to write the iso file to.
When the drive is determined as i.e. /dev/sdX
do:
dd if=<isofile> of=/dev/sdX bs=4M
… boot the device from the USB stick
You can use lsblk -f
to determine the drive to install to.
When the drive is determined as i.e. /dev/sdX
do:
export DRIVE=/dev/sdX # or i.e. /dev/mmcblk0 for eMMC devices
BOOT=${DRIVE}1 # or ${DRIVE}p1 for eMMC devices
ROOT=${DRIVE}2 # or ${DRIVE}p2 for eMMC devices
Call:
gdisk $DRIVE
… and configure as follows:
o
n
n
w
mkfs.ext4 -L ROOT $ROOT
mount -o noatime $ROOT /mnt
mkdir /mnt/boot
mkfs.fat -F32 $BOOT
mount -o noatime $BOOT /mnt/boot
pacstrap -c /mnt base linux
genfstab -Up /mnt >> /mnt/etc/fstab
bootctl install --path=/mnt/boot
tee /mnt/boot/loader/loader.conf <<EOF
default arch
EOF
tee /mnt/boot/loader/entries/arch.conf <<EOF
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=LABEL=ROOT rootfstype=ext4 rw init=/usr/lib/systemd/systemd
EOF
reboot
For configuration of installation essentials, please see Installation Essentials