My apology for the delay but today I found time to finally attempt a fix.
- I booted into Live Garuda from usb.
sudo blkid
/dev/loop1: TYPE="squashfs"
/dev/sdb2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="4480-7804" BLOCK_SIZE="512" TYPE="vfat"
/dev/sdb1: BLOCK_SIZE="2048" UUID="2022-01-31-17-08-00-00" LABEL="GARUDA_XFCE_WHITETAILEDEAGLE" TYPE="iso9660"
/dev/loop2: TYPE="squashfs"
/dev/loop0: TYPE="squashfs"
/dev/nvme1n1p2: UUID="4f00be9f-88d0-4710-9d54-64b39bffd653" TYPE="crypto_LUKS" PARTLABEL="root" PARTUUID="ee4e9568-763a-b040-839f-ea70f9ed1bd4"
/dev/nvme1n1p1: LABEL_FATBOOT="NO_LABEL" LABEL="NO_LABEL" UUID="D7A5-0A70" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="140322bf-a2d2-d048-b250-a6f322679ad8"
/dev/sda1: LABEL="data" UUID="3e296ed7-73ee-4f95-9713-0e0dbb69c2a4" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="62dd0551-01"
/dev/zram0: LABEL="zram0" UUID="9440f2d6-edb4-4d45-a4fc-1000f45db867" TYPE="swap"
/dev/loop3: TYPE="squashfs"
/dev/nvme0n1: PTUUID="e1996a80" PTTYPE="dos"
/dev/mapper/mydrive: UUID="fe781c27-e3fe-49f6-896e-9611aa0f7838" UUID_SUB="97d2db13-5269-434e-b714-f993c1285a10" BLOCK_SIZE="4096" TYPE="btrfs"
I am able to mount the encrypted partition via thunar and was able to get the content of the current
/etc/fstab from the folder called @
@root
@home
are accessible and show my data. same for the other drive that is /dev/sda.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=D7A5-0A70 /boot/efi vfat umask=0077 0 2
/dev/mapper/luks-4f00be9f-88d0-4710-9d54-64b39bffd653 / btrfs subvol=/@,defaults,noatime,noautodefrag,compress=zstd 0 0 #Modified_by_garuda-hotfixes(1)
/dev/mapper/luks-4f00be9f-88d0-4710-9d54-64b39bffd653 /home btrfs subvol=/@home,defaults,noatime,noautodefrag,compress=zstd 0 0 #Modified_by_garuda-hotfixes(1)
/dev/mapper/luks-4f00be9f-88d0-4710-9d54-64b39bffd653 /root btrfs subvol=/@root,defaults,noatime,noautodefrag,compress=zstd 0 0 #Modified_by_garuda-hotfixes(1)
/dev/mapper/luks-4f00be9f-88d0-4710-9d54-64b39bffd653 /srv btrfs subvol=/@srv,defaults,noatime,noautodefrag,compress=zstd 0 0 #Modified_by_garuda-hotfixes(1)
/dev/mapper/luks-4f00be9f-88d0-4710-9d54-64b39bffd653 /var/cache btrfs subvol=/@cache,defaults,noatime,noautodefrag,compress=zstd 0 0 #Modified_by_garuda-hotfixes(1)
/dev/mapper/luks-4f00be9f-88d0-4710-9d54-64b39bffd653 /var/log btrfs subvol=/@log,defaults,noatime,noautodefrag,compress=zstd 0 0 #Modified_by_garuda-hotfixes(1)
/dev/mapper/luks-4f00be9f-88d0-4710-9d54-64b39bffd653 /var/tmp btrfs subvol=/@tmp,defaults,noatime,noautodefrag,compress=zstd 0 0 #Modified_by_garuda-hotfixes(1)
I tried the following now:
sudo cryptsetup luksOpen /dev/nvme1n1p2 mydrive
sudo mount /dev/mapper/mydrive /mnt/
sudo btrfs subvolume list /mnt
ID 257 gen 109297 top level 5 path @
ID 258 gen 109297 top level 5 path @home
ID 259 gen 109281 top level 5 path @root
ID 260 gen 109297 top level 5 path @srv
ID 261 gen 109297 top level 5 path @cache
ID 262 gen 109297 top level 5 path @log
ID 263 gen 109297 top level 5 path @tmp
ID 272 gen 109263 top level 257 path @/.snapshots
...
docker btrfs volumes
and more snapshots
...
cleaning up...
sudo umount /mnt
sudo mount -t btrfs -o subvol=@ /dev/mapper/mydrive /mnt/
ls /mnt/
bin boot crypto_keyfile.bin desktopfs-pkgs.txt dev etc home lib lib64 mnt opt proc root rootfs-pkgs.txt run sbin srv sys tmp usr var
cat /mnt/boot/grub/grub.cfg
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-fe781c27-e3fe-49f6-896e-9611aa0f7838' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha256
insmod btrfs
set root='cryptouuid/4f00be9f88d047109d5464b39bffd653'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/4f00be9f88d047109d5464b39bffd653' fe781c27-e3fe-49f6-896e-9611aa0f7838
else
search --no-floppy --fs-uuid --set=root fe781c27-e3fe-49f6-896e-9611aa0f7838
fi
echo 'Loading Linux linux-zen ...'
linux /@/boot/vmlinuz-linux-zen root=UUID=fe781c27-e3fe-49f6-896e-9611aa0f7838 rw rootflags=subvol=@ loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /@/boot/intel-ucode.img /@/boot/initramfs-linux-zen.img
}
The uuid of nvm1n1p2 is the same as in the first if block of grub.cfg.
It apparently does not find it and continues to the else block where a uuid is set that belongs to the luks mapper. It seems to be correct no?