You are not logged in.

#1 2022-08-04 19:09:27

vodd
Member
Registered: 2022-07-31
Posts: 4

[SOLVED] btrfs, encrypted boot, GRUB error: no such device

Hello,

I'm trying to encrypt everything except the EFI partition with LUKS 1 and get GRUB decrypt my two drives, which use btrfs as a filesystem.
All I get after an reboot is this:

error: no such device: d680acec-77a9-425a-8f4f-3b6cbb9d645f 
error: unknown filesystem
Entering rescue mode...
grub rescue>

Any ideas?
Thanks!

my lsblk:

[root@archiso /]# lsblk
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0           7:0    0 689.8M  1 loop  
sda             8:0    0    20G  0 disk  
├─sda1          8:1    0   488M  0 part  /esp
└─sda2          8:2    0  19.5G  0 part  
  └─cryptroot 253:0    0  19.5G  0 crypt /.snapshots
                                         /var/cache
                                         /var/log
                                         /srv
                                         /var/tmp
                                         /var/abs
                                         /
sdb             8:16   0    20G  0 disk  
└─crypthome   253:1    0    20G  0 crypt /home

subvolumes sda2

[root@archiso /]# btrfs sub list /
ID 256 gen 67 top level 5 path @
ID 257 gen 8 top level 5 path @abs
ID 258 gen 21 top level 5 path @tmp
ID 259 gen 17 top level 5 path @srv
ID 260 gen 11 top level 5 path @snapshots
ID 262 gen 26 top level 5 path @log
ID 263 gen 26 top level 5 path @cache

subvolumes sdb

ID 256 gen 9 top level 5 path @home

blkid:

/dev/mapper/crypthome: LABEL="Home" UUID="4a64c1bf-724d-42b7-af62-600f816d9cc4" UUID_SUB="ff887b0a-d912-4e8f-b40a-e3aa4650f050" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/sdb: UUID="efc44057-ec77-444d-9544-2addd0a76f1b" TYPE="crypto_LUKS"
/dev/sr0: BLOCK_SIZE="2048" UUID="2022-07-01-13-20-00-00" LABEL="ARCH_202207" TYPE="iso9660" PTUUID="2a588529" PTTYPE="dos"
/dev/loop0: TYPE="squashfs"
/dev/mapper/cryptroot: LABEL="Root" UUID="d680acec-77a9-425a-8f4f-3b6cbb9d645f" UUID_SUB="7fe1df2d-ffe3-47fe-aca3-c78f31a1d25d" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/sda2: UUID="0c29a23d-3e49-4fd1-ac1e-33b5aa5821a6" TYPE="crypto_LUKS" PARTUUID="79d8b729-d1f0-554e-84b4-0e0b16c916cb"
/dev/sda1: LABEL_FATBOOT="EFI" LABEL="EFI" UUID="BE6D-C3FD" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="167a711f-e22b-5747-8db2-89e7c17b2ccb"

/etc/defaut/grub

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet cryptdevice=UUID=0c29a23d-3e49-4fd1-ac1e-33b5aa5821a6:cryptroot root=/dev/mapper/cryptroot rootflags=subvol=@"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
GRUB_ENABLE_CRYPTODISK=y

mkinitcpio.conf

BINARIES=("/usr/bin/btrfs")
HOOKS=(base udev autodetect keyboard keymap block encrypt btrfs filesystems fsck)

Last edited by vodd (2022-08-06 20:17:12)

Offline

#2 2022-08-06 20:16:56

vodd
Member
Registered: 2022-07-31
Posts: 4

Re: [SOLVED] btrfs, encrypted boot, GRUB error: no such device

Ok I didn't really have an LUKS1 device, for some reason it was LUKS2.
Now my system boots nicely!

Last edited by vodd (2022-08-06 20:17:41)

Offline

Board footer

Powered by FluxBB