Install to USB
Pre-installation
pacman -Syu arch-install-scripts
mkfs.ext4 -O "^has_journal" /dev/sdxx
tune2fs -O ^has_journal /dev/sdxx # to change existing partition
initial RAM disk
/etc/mkinitcpio.conf
move "block" "keyboard" ahead of autodetect
mkinitcpio -p linux
disk system Packages
pacman -Syu dosfstools ntfs-3g
after installation
# check /etc/fstab use UUID for disk
sudo blkid
less /etc/fstab
#configure systemd journal to store its journals in RAM
/etc/systemd/journald.conf.d/usbstick.conf
[Journal]
Storage=volatile
RuntimeMaxUse=30M
# disable fsync and related system calls in web browser
pacman -Syu libeatmydata
eatmydata firefox
# other way of using eatmydata
# /usr/local/bin is ahead of /usr/bin
ln -s /usr/bin/eatmydata /usr/local/bin/firefox