Skip to content

Instantly share code, notes, and snippets.

@indeedwatson
Created September 28, 2018 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indeedwatson/c369c6e7de6320db66b4131e24bd9cc5 to your computer and use it in GitHub Desktop.
Save indeedwatson/c369c6e7de6320db66b4131e24bd9cc5 to your computer and use it in GitHub Desktop.
  1. verify the boot mode: ls /sys/firmware/efi/efivars
  2. verify internet ping archlinux.org
  3. update system clock timedatectl set-ntp true
  4. wipe the disk:
    1. cryptsetup open --type plain -d /dev/urandom /dev/sda to_be_wiped
    2. dd if=/dev/zero of=/dev/mapper/to_be_wiped status=progress
    3. cryptsetup close to_be_wiped
  5. partition the disk, with cfdisk:
    1. EFI/boot partition 512M (sda1), partition type EF00 on gdisk
    2. root partition, rest of the space, with LVM format (sda2)
  6. create LVM volumes:
    1. list capable devices lvmdiskscan
    2. create physical volume pvcreate /dev/sda2
    3. create volume groups vgcreate MyVol /dev/sda2
    4. create logical volumes lvcreate -L 8G MyVol -n swap and lvcreate -L 100%FREE MyVol -n root
  7. format:
    1. format boot mkfs.fat -F32 /dev/sda1
    2. format root mkfs.ext4 /dev/MyVol/root
    3. mkswap /dev/MyVol/swap
    4. mount /dev/MyVol/root /mnt & swapon /dev/MyVol/swap
    5. mkdir /mnt/boot & mount /dev/sda1 /mnt/boot
  8. installation: pacstrap /mnt base
  9. Fstab genfstab -L /mnt >> /mnt/etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment