- Unlock FileVault
- Part your Drive
diskutil list
disutil unmount /dev/diskX
sudo dd if=/path/to/arch.iso of=/dev/rdiskX bs=4M status=progress
//Dont forget the r in rdisk
wifi-menu -o
fisdk -l
// We'll assume /dev/sda4, so sub that for yours
mkfs.ext2 /dev/sda4
cryptsetup -c aes-xts-plain64 -y --use-random luksFormat /dev/sda4
cryptsetup luksOpen /dev/sdX3 arch
pvcreate /dev/mapper/arch
vgcreate arch /dev/mapper/arch
lvcreate --size 1024M arch --name swap
lvcreate --size 500M arch --name boot
lvcreate -l +100%FREE arch --name root
ls /dev/mapper/
mkfs.ext4 /dev/mapper/arch-root -m 1 -L ROOT
mkswap /dev/mapper/arch-swap -L SWAP
mount /dev/mapper/arch-root /mnt
# /mnt is the installed system
mkdir /mnt/boot
mount /dev/mapper/arch-boot /mnt/boot
mkdir /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
swapon /dev/mapper/arch-swap
# Not needed but a good thing to test
Install the system also includes stuff needed for starting wifi when first booting into the newly installed system Unless vim and zsh are desired these can be removed from the command
pacstrap /mnt base base-devel grub-efi-x86_64 zsh vim git efibootmgr dialog \
genfstab -pU /mnt >> /mnt/etc/fstab
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
(Change relatime on all non-boot partitions to noatime (reduces wear if using an SSD))
arch-chroot /mnt /bin/bash
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
echo BUTTBLOOD > /etc/hostname
echo LANG=en_US.UTF-8 >> /etc/locale.conf
###edit /etc/locale.gen
and uncomment en_US.UTF-8
locale-gen -a
passwd
useradd -m -g users -G wheel -s /bin/zsh MYUSERNAME
passwd MYUSERNAM
vim /etc/mkinitcpio.conf
Add 'ext4' to MODULES
Add 'encrypt' and 'lvm2' to HOOKS before filesystems
mkinitcpio -p linux
grub-install
In /etc/default/grub
edit the line GRUB_CMDLINE_LINUX
to GRUB_CMDLINE_LINUX="cryptdevice=/dev/sdX3:luks:allow-discards"
then run:
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
swapoff -a
reboot