To fix your Btrfs + LUKS layout that isn't booting, follow these steps exactly:
Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites
To fix your Btrfs + LUKS layout that isn't booting, follow these steps exactly:
Use a Gentoo/Ubuntu live ISO to boot into a live environment.
(Adjust device if needed)
cryptsetup luksOpen /dev/sda3 cryptrootYour layout shows:
- `@` → root
- `@home`, `@log`, etc.
Mount the root subvolume first:
mount -o subvol=@ /dev/mapper/cryptroot /mntMount the other subvolumes:
mkdir -p /mnt/{boot,home,var/log}
mount -o subvol=@home /dev/mapper/cryptroot /mnt/home
mount -o subvol=@log /dev/mapper/cryptroot /mnt/var/logIf you have EFI:
mount /dev/sda1 /mnt/boot # adjust if neededmount --types proc /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --make-rslave /mnt/sys
mount --rbind /dev /mnt/dev
mount --make-rslave /mnt/devchroot /mnt /bin/bash
source /etc/profileEnsure it uses subvolumes: Example:
/dev/mapper/cryptroot / btrfs subvol=@,defaults 0 0
/dev/mapper/cryptroot /home btrfs subvol=@home 0 0Ensure it exists:
cryptroot UUID=<UUID-of-sda3> none luksGet the UUID of `/dev/sda3`:
blkid /dev/sda3Quality, Reliability & Service Consultancy for Mainframes, Desktops & Web Sites