I use the following when I do partitions..
(x representing your drive. mine is sda)
commands x then z then y y
after that
example partition list
-sda1 (our boot partition)
-sda2 (our swap partition)
-sda3 (our root partition)
-sda4 (our home partition)
I’m going to create my boot partition first. I am using EFI, so EF00 will be our hex code (NOT EF02. I’ve racked my brain over this error before trying to figure out why EFI system wouldn’t boot). I generally dedicate 1Gb (1024MiB) of space to the boot sector so that I have room to breathe in case I need to change anything or add multiple boot kernels, although arch wiki recommends only 200-300Mb. I also will name it “boot”.
Code:
[New] Press Enter
First Sector: Leave this blank ->press Enter
Size in sectors: 1024MiB ->press Enter
Hex Code: EF00 press Enter
Enter new partition name: boot ->press Enter
Now, arrow down to the next free space available, then go to [New] again.
-Creating swap partition, the swap debate, choosing a swap size, and the swap 8200 hex code I chose 8GiB
Code:
[New] Press Enter
First Sector: Leave this blank ->press Enter
Size in sectors: 8GiB ->press Enter
Hex Code: 8200 ->press Enter
Enter new partition name: swap ->press Enter
-Creating root partition, either separate /home or add it to root. Personally, I have home separate other options is to separate /var/www which will be your server. Noticed how I used /var/www instead of /var. That is because /var is needed by logs, kernels, etc and have it seperate can cause issues booting. If you want a separate root then anywhere from 15-32gb should be sufficient.
Separate root
Code:
[New] Press Enter
First Sector: Leave this blank ->press Enter
Size in sectors: 32GiB ->press Enter
Hex Code: Leave this blank ->press Enter
Enter new partition name: root ->press Enter
if not separate root
Code:
[New] Press Enter
First Sector: Leave this blank ->press Enter
Size in sectors: Leave this blank ->press Enter
Hex Code: Leave this blank ->press Enter
Enter new partition name: root ->press Enter
Then other partitions if wanted needed. I hope this helps.