Skip to content

Instantly share code, notes, and snippets.

@mikilian
Last active July 23, 2020 13:01
Show Gist options
  • Select an option

  • Save mikilian/57c1b13c0ff2ef9c177a47ed8037fac3 to your computer and use it in GitHub Desktop.

Select an option

Save mikilian/57c1b13c0ff2ef9c177a47ed8037fac3 to your computer and use it in GitHub Desktop.
Arch Linux UEFI setup (64 Bit)

Arch Linus UEFI setup

Since I live in germany, I set my time zone and keyboard layout to it. This does not apply to the system language!

Preconfigure

I am writing this guide while installing Arch in a virtual machine. Therefore my hard disk is /dev/sda and the hostname arch-vm.

  1. Change the keyboard layout temporarily: loadkeys de-latin1
  2. Update the system clock: timedatectl set-ntp true
  3. Check where your disk lives: fdisk -l
    • For IDE controllers: /dev/hda, /dev/hdb, /dev/hdc
    • For SATA controllers: /dev/sda, /dev/sdb, /dev/sdc
    • For NVMe controllers: /dev/nvme0, /dev/nvme1
  4. Create new partitions on your target drive: fdisk /dev/sda
    1. enter g to create a new GPT partition table
    2. enter n for a new partition and set the last vector to: +512M -> efi
    3. enter n for a new partition and set the last vector to : +8192M -> swap
    4. enter n for a new partition and leave everything blank (default) -> root
  5. Change the partition types
    1. enter t followed by 1 to select the efi partition and enter 1 to set the EFI System type
    2. enter t followed by 2 to select the swap partition and enter 19 to set the Linux swap type
    3. enter t followed by 3 to select the root partition and enter 24 to set the Linux root (x86-64) type
  6. Enter w to write the partitions and exit fdisk.

Configure

tba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment