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 $ o
_# Accept._ _# Accept._
$ y $ y
_# New partition._ _# Create a new partition, accept default partition number 1 and first sector._
$ n $ n
_# 512 MB should be plenty for /boot._ _# Enter partition size (second sector), 512 MB should be plenty for /boot and accept._
$ +512M $ +512M
_# Mark as EFI._ _# Mark as EFI._
$ ef00 $ ef00
_# New main partition, accept all the following using "y"._ _# New main partition, accept all the following using "y"._
$ n $ 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 $ p
**Write partitions to device.** **Write partitions to device.**
@ -34,9 +34,22 @@ $ y
**Encrypt primary partition.** **Encrypt primary partition.**
$ cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2 $ cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2
$ YES $ 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.** **Create LVM volume group called "main".**
$ cryptseup luksOpen /dev/sda2 root $ 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 $ mkfs.fat -F 32 -n UEFI /dev/sda1
**-F specifies the type of file allocation tables used (12, 16 or 32 bit).** **-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".** **-n sets the volume name (label) of the filesystem to "UEFI".**