BIOS:
#1 /boot ext4 1024 MB: 5 % reserved blocks
#2 – crypto all_remaining_space
-> / ext4 all_remaining_space: 1 % reserved blocks (contains swap file, unless zram is used)

UEFI:
#1 /boot/efi EFI 512 MB
#2 /boot ext4 512 MB: 5 % reserved blocks
#3 – crypto all_remaining_space
-> / ext4 all_remaining_space: 1 % reserved blocks (contains swap file, unless zram is used)

Swap file (count=<sizeInMB>; should ideally be >= RAM size):
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile && sudo vi /etc/fstab
‘# /swapfile
/swapfile none swap defaults 0 0’

Advertisements