Skip to content

Instantly share code, notes, and snippets.

@Silica163
Last active August 14, 2023 14:26
Show Gist options
  • Select an option

  • Save Silica163/dfe7d26f3ac521fbe6dc9697d88e6db9 to your computer and use it in GitHub Desktop.

Select an option

Save Silica163/dfe7d26f3ac521fbe6dc9697d88e6db9 to your computer and use it in GitHub Desktop.
Arch on a USB

Install Arch Linux on USB drive

remember RUN AS ROOT

format disk

fdisk /dev/sdb
  1. EFI FAT32 500MiB /boot
  2. file system EXT4 4GiB /
  3. normal data storage FAT32

install

# mount first 2 part of disk
# base package
pacstrap -K linux-lts linux-lts-headers linux-firmware base base-devel polkit neovim

change root to /mnt

setup root and normal user account

install and config bootloader

pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --removable
grub-mkconfig -o /boot/grub/grub.cfg

enable networking

systemctl enable systemd-networkd
systemctl enable systemd-resolved

back to host

genfstab -U /mnt > /mnt/etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment