Create file systems and mount devices (UEFI/GPT)
Now we need to format the file system. The UEFI partition must be formatted as FAT32
# mkfs.fat -F32 /dev/sdxY
Root must be formatted as ext4:
# mkfs.ext4 /dev/sdxY
Activate swap
# mkswap /dev/sdxY # swapon /dev/sdxY
(Please replace sdxY with partition you created for swap, in my case it was sda3)
# mkswap /dev/sda3 # swapon /dev/sda3
It’s time to mount boot and root partitions. First, we mount root:
# mount /dev/sdxY /mnt
In my case it was sda2:
# mount /dev/sda2 /mnt
Create ‘boot’ directory to mount the UEFI partition:
# mkdir -p /mnt/boot
Mount the ESP to boot:
# mount /dev/sdxY /mnt/boot
In my case it will be:
# mount /dev/sda1 /mnt/boot
We are all set to proceed to installation.






