From 4cf3e00d2866bcddea6f070ef0c86a2da8c28cec Mon Sep 17 00:00:00 2001 From: martin schmidt Date: Wed, 12 Jan 2022 15:43:00 +0000 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9f6037c..975767b 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,16 @@ _# Creates new GPT-partition table._ $ o _# Accept._ $ y -_# New partition._ +_# Create a new partition, accept default partition number 1 and first sector._ $ n -_# 512 MB should be plenty for /boot._ +_# Enter partition size (second sector), 512 MB should be plenty for /boot and accept._ $ +512M _# Mark as EFI._ $ ef00 _# New main partition, accept all the following using "y"._ $ n -**Print and check your partitions.** +**Print and check your partitions. There should be a 512 MiB EFI system partition and a Linux filesystem filling up the rest of the space** $ p **Write partitions to device.** @@ -34,9 +34,22 @@ $ y **Encrypt primary partition.** $ cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2 $ YES + +**Open encrypted partition and mount to container "lvm".** +$ cryptsetup luksOpen /dev/vda2 lvm + +**Create LVM physical volume.** +$ pvcreate /dev/mapper/lvm -**Open encrypted partition, map as "root" and create filesystem.** -$ cryptseup luksOpen /dev/sda2 root +**Create LVM volume group called "main".** +$ vgcreate main /dev/mapper/lvm + +**Create LVM logical volumes for /root and /home. +Your root volume should be 25-50 GB big, your home volume takes up the remaining space.** +$ lvcreate -L 25G -n root main +$ lvcreate -l 100%FREE -n home main + + $ mkfs.fat -F 32 -n UEFI /dev/sda1 **-F specifies the type of file allocation tables used (12, 16 or 32 bit).** **-n sets the volume name (label) of the filesystem to "UEFI".**