After downloading the image and PGP Signature verify it's integrity with sha1sum
and gpg
$ echo '<SHA1SUM> archlinux-x.x.x-x86_64.iso' | sha1sum -c -
archlinux-x.x.x-x86_64.iso:OK
$ gpg --verify archlinux-x.x.x-x86_64.iso.sig archlinux-x.x.x-x86_64.iso
should yield good signature
$ sudo dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync
where /dev/sdx
is the device name of usb. This can be found by dmesg
.
Note: To restore the USB drive as an empty, usable storage device after using the Arch ISO image, the
iso9660 filesystem signature needs to be removed by running wipefs --all /dev/sdx
as root,
before repartitioning and reformating the USB drive.
Boot from the installer disk
# efivar -l
it will spits out a list of uefi varibales if EFI mode is enabled
# wifi-menu
follow the menu and choose access point
# ping -c 3 archlinux.org
Keep closest mirrors at the top by editing /etc/pacman.d/mirrorlist
Ensure the system clock is accurate
# timedatectl set-ntp true
Identify the disk
# lsblk -f
Partition 128GB SSD into 512MB ESP, and the rest for root partition
# cgdisk /dev/sda
TYPE | Size | HEX CODE | NAME |
---|---|---|---|
ESP | 100MiB | ef00 | boot |
[SWAP] | 512MiB | 8200 | |
Linux | rest | 8300 | root |
Format the partitions for appropriate file systems
assuming /dev/sda1 is the boot partition
# mkfs.fat -F32 /dev/sda1
assuming /dev/sda3 is the root partition
# mkfs.ext4 /dev/sda3
Mount the file system on the root partition to /mnt
# mount /dev/sda3 /mnt
# mkdir /mnt/boot
# mount /dev/sda1 /mnt/boot
# mkswap /dev/sda2
# swapon /dev/sda2