All commands and the written guide: https://mutschler.dev/linux/install-g...
If you want to support the creation of such videos: https://buymeacoff.ee/mutschler
In the following I will show how to install Pop!_OS 20.04 with the following structure:
A btrfs-LVM-inside-luks partition for the root filesystem on two hard disks in a RAID1 settings managed by btrfs. The btrfs logical volume contains a subvolume `@` for `/` and a subvolume `@home` for `/home`. Note that the POP!_OS installer does not create subvolumes on btrfs besides the top-level one.
an encrypted swap partition
an unencrypted EFI partition for the systemd boot manager duplicated on both disks
an unencrypted partition for the POP!_OS recovery system duplicated on both disks
Timeshift is set up to automatically create snapshots of the system
I also show what to do if your RAID1 is broken
Also note my blatherings on some cool stuff with BTRFS and why I use it: https://mutschler.eu/linux/btrfs
Check out my fork of the following utility which automatically takes snapshots of your system after any APT command and also rsyncs your boot and/or efi partition: https://github.com/wmutschl/timeshift...
If you do not need a RAID1, follow this guide: https://mutschler.eu/linux/install-gu...
*Timestamps*
0:01 Step 1: Boot the install, check UEFI mode and open interactive root shell
2:00 Step 2: Prepare partitions manually
3:20 - Create partition table and layout
8:23 - Create luks partitions
11:30 Step 3: Install POP!_OS using the graphical installer
13:45 Step 4: Post-Installation steps
14:18 - Mount the btrfs top-level root filesystem
16:37 - Create RAID 1 for root filesystem using btrfs balance
19:30 - Create btrfs subvolumes @ and @home
21:51 - Adjust your fstab
23:58 - Create a chroot environment and enter your system
25:48 - Adjust options for crypttab, systemd boot, kernelstub
29:35 Step 5: Reboot, some checks, and update system
32:50 Step 6: Create degraded boot entry
34:20 Step 7: Make duplicate of recovery and add boot entries
37:12 Step 8: Make duplicate of EFI
41:35 Install Timeshift and configure auto-snapshots
44:20 Enable fstrim timer
45:00 Emergency scenario: RAID1 is broken
---------------------------------------------
If you want to support the creation of such videos: https://buymeacoff.ee/mutschler