Table of Contents

Information

GPT, EFI, No LVM, No Encryption

gdisk

gdisk '/dev/sda'

Format

mkfs.fat -F32 '/dev/sda1'

XFS

mkfs.xfs '/dev/sda2'

F2FS

mkfs.f2fs '/dev/sda2'

Mount

mount '/dev/sda2' '/mnt'
mkdir -p '/mnt/boot'
mount '/dev/sda1' '/mnt/boot'

GPT, EFI, LVM

gdisk

gdisk '/dev/sda'

LVM

Encrypted

cryptsetup -v -c 'aes-xts-plain64' -s '512' -h 'sha512' -i '5000' --use-random luksFormat '/dev/sda2'
cryptsetup luksOpen '/dev/sda2' 'lvm'
pvcreate '/dev/mapper/lvm'
vgcreate 'arch' '/dev/mapper/lvm'
lvcreate -l 100%FREE 'arch' -n 'root'

Unencrypted

pvcreate '/dev/mapper/sda2'
vgcreate 'arch' '/dev/mapper/sda2'
lvcreate -l 100%FREE 'arch' -n 'root'

Format

mkfs.fat -F32 '/dev/sda1'

XFS

mkfs.xfs '/dev/mapper/arch-root'

F2FS

mkfs.f2fs '/dev/mapper/arch-root'

Mount

mount '/dev/mapper/arch-root' '/mnt'
mkdir -p '/mnt/boot'
mount '/dev/sda1' '/mnt/boot'

MBR, BIOS, No LVM, No Encryption

fdisk

fdisk '/dev/sda'

Format

mkfs.xfs '/dev/sda1'

Mount

mount '/dev/sda1' '/mnt'
1)
sda2 does work though