My own notes for USB arch setups. Will update as more things happen or whatever.
arch-install-scripts
or live usbgdisk
f2fs-tools
dosfstools
# gdisk /dev/sdX
- 2MB EF02
- 500MB EFI
- Maybe some 0700 data (assuming we will have this as sdX3)
- Rest as 8300
- Set this to 0700, then set attribute hidden in expert menu if don't want Windows popup
We won't be using LVM as probably too small drive to really care for partitioning.
# cryptsetup -y -v luksFormat /dev/sdX4
# cryptsetup open /dev/sda2 archusb
- EFI:
# mkfs.fat -F32 /dev/sdX2
- Data:
# mkfs.fat -F32 /dev/sdX3
- Linux:
# mkfs.f2fs /dev/mapper/archusb
mkdir /mnt/usb
mount /dev/mapper/archusb /mnt/usb
mkdir /mnt/usb/boot
mount /dev/sdX2 /mnt/usb/boot
- (optional)
mkdir -p /mnt/usb/mnt/data && mount /dev/sdX3 /mnt/usb/mnt/data
# pacstrap /mnt base base-devel linux linux-firmware vim
Ensure /etc/mkinitcpio.conf
, HOOKS
has keyboard keymap
before autodetect
. Also, make sure udev block filesystems
is all together in a block as written - this will ensure USB devices are loaded properly.