Re: LUKS encrypted System with UEFI: How to partition?
Reply #4 –
Okay, i have searched a lot and there are a LOT of wrong informations about that. I have enabled "UEFI only" in my BIOS. Thats why i need to make parted -s /dev/sdX mklabel gpt
parted -s -a optimal /dev/sdX mkpart "primary" "fat16" "0%" "512MiB"
parted -s /dev/sdX set 1 esp on
mkfs.fat -n ESP /dev/sdX1
The OLD BIOS starts the first sectors of an hdd, also called mbr. The MBR (Master boot Record) only got 512 Bytes so GRUB only stores the "stage 1" part there - and linked to a small partition (earlier known as the /boot partition) , where the rest of GRUB was saved. The old grub only news a few and small file systems, so you have to create the /boot partition, because some people use another file system like ext4 or ReiserFS or have to big harddrives (partitions) - so GRUB couldn't start.
NOW (...i am old and...) we have UEFI, the (inofficial!) successor for BIOS. He doesn't use a MBR, now it's a GPT (GUID Partition Table) which can handle (very) big harddrives and more than 4 primary partitions. Now there is a ESP (EFI System Partition), where informations about bootloaders and operating systems are stored. So GRUB (now: GRUB2) has more space and can support BIG harddrives and a lot of filesystems: Thats the reason we don't need the /boot partition anymore.
AND: If i have understood this topic correctly, GRUB2 can decode the LUKS&cryptsetup stuff. So i don't need the /boot partition, too. I am sorry for my bad english, but i want to explain that, so the next user who is confused like me and searching for the topic will find correct informations. I have found a great site with informations, but it's only aviable in german:
https://www.happycoders.eu/de/devops/manjaro-tutorial-linux-bios-uefi-mbr-gpt-grub-sed-luks/
The Autor explains the differences very well ... even he is a java software developer ... (Sorry )