From 6e3f45dac7793b25df4c3a20538e7e28690537a8 Mon Sep 17 00:00:00 2001 From: Sandro Keil Date: Fri, 13 Jul 2018 00:24:12 +0200 Subject: [PATCH] Add partition table example --- book/arch/02-prepare-disk.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/book/arch/02-prepare-disk.md b/book/arch/02-prepare-disk.md index d63594a..df46649 100644 --- a/book/arch/02-prepare-disk.md +++ b/book/arch/02-prepare-disk.md @@ -10,12 +10,20 @@ List your disks with `lsblk` and run `gdisk /dev/[your disk]` e.g. `gdisk /dev/n > It's crucial to use `gdisk` because GPT is needed for UEFI boot. Please create 4 partition like described in the Arch Wiki above with `gdisk`. Use the codes for the partition type. -Don't format the partitions at this time, we will do it later with the YubiKey. +Don't format the partitions at this time, we will do it later with the YubiKey. It should look similar like this. + +``` +Number Start (sector) End (sector) Size Code Name + 1 2048 4095 1024.0 KiB EF02 BIOS boot partition + 2 4096 1232895 600.0 MiB EF00 EFI System + 3 1232896 2461695 600.0 MiB 8300 Linux filesystem + 4 2461696 2000409230 952.7 GiB 8E00 Linux LVM +``` The second partition contains the EFI System and must be of type FAT32. Format the second partition e.g. `/dev/nvme0n1p2` with: ``` -mkfs.fat -F32 /dev/[your disk partition 2] +mkfs.fat -F32 /dev/[disk 2nd partition] ``` The next chapter describes how to prepare the YubiKey.