Skip to content

Instantly share code, notes, and snippets.

@icchy
Last active Nov 27, 2018
Embed
What would you like to do?
ArchLinux installation memo

partitioning (GPT, EFI)

  • /boot 200MB fat32 (EFI System)
    • mkfs.fat -F32 /dev/sdX1
  • / rest xfs (Linux filesystem)
    • mkfs.xfs /dev/sdX2
    • xfs_admin -L "arch_os" /dev/sdX2 # label partition

install base system

mkdir -p /mnt/boot
mount /dev/sda1 /mnt/boot
mount /dev/sda2 /mnt
pacstrap /mnt base base-devel

initial configuration

arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
hwclock --systohc --utc
locale-gen # with uncommented en_US.UTF-8, ja_JP.UTF-8 in `/etc/locale.gen`
echo LANG=en_US.UTF-8 > /etc/locale.conf
vi /etc/hostname
vi /etc/hosts
passwd

install EFI

bootctl --path=/boot install

/boot/loader/loader.conf

default  arch
timeout  4
editor   no

/boot/loader/entries/arch.conf

title   Arch Linux
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options root=LABEL=arch_os rw

TODO

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