Update README.md

This commit is contained in:
martin schmidt 2022-01-12 15:43:00 +00:00
parent 1dd649973d
commit 4cf3e00d28
1 changed files with 18 additions and 5 deletions

View File

@ -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.**
@ -35,8 +35,21 @@ $ y
$ cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2
$ YES
**Open encrypted partition, map as "root" and create filesystem.**
$ cryptseup luksOpen /dev/sda2 root
**Open encrypted partition and mount to container "lvm".**
$ cryptsetup luksOpen /dev/vda2 lvm
**Create LVM physical volume.**
$ pvcreate /dev/mapper/lvm
**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".**